TS_CONFIG(3)

πŸ’– TS_CONFIG(3) β€” the tslib girlies' guide πŸ’–

okay so bestie, welcome to tslib, section 3 of the manual (that's the library-functions girlies, not the commands, iykyk) πŸ’… this page is all about ts_config and ts_reconfig β€” the two functions that go read tslib's own configuration. no cap. πŸŽ€


✨ NAME ✨

ts_config, ts_reconfig β€” read tslib's configuration πŸ¦‹


🌸 SYNOPSIS 🌸

#include <tslib.h>

int ts_config(struct tsdev *dev);

int ts_reconfig(struct tsdev *dev);

like… that's it. two little functions. two little icons. πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

so ts_config() loads and initialises every single module that's configured in the tslib configuration file TSLIB_CONFFILE β€” and yes, the details of that file live over in ts.conf(5), go look, it's giving very important. 🌈

then there's ts_reconfig(), which is basically the glow-up button: it re-runs ts_config and updates the configuration if the configuration file has changed. not me checking if the config file changed and refreshing accordingly, obsessed. 😭✨


⭐ RETURN VALUE ⭐

  • Zero gets returned on success β€” slay, we ate. 🫢
  • A negative value gets returned in case of an error β€” and that's the vibe check failing, bestie, sorry. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • ts_read(3)
  • ts_open(3)
  • ts_setup(3)
  • ts_close(3)
  • ts.conf(5)

and that's the whole page, periodt. this came to you straight from the <b>tslib</b> manual, and yeah, it's <b>TS_CONFIG(3)</b> β€” so when you're deep in the group chat arguing about touchscreen config, you know exactly where to point. mwah. πŸ’–πŸŽ€πŸ¦‹