TS_CONF_GET(3)
πΈ TS_CONF_GET(3) πΈ
okay so real talk, bestie β this is a page from the tslib manual, and the header card up top literally says TS_CONF_GET(3) while the whole page is about ts_conf_set. iconic mismatched-title energy, we love her anyway π
. buckle up, because we're about to write a config file and rebuild the whole world (or like, the touchscreen modules). π¦
β¨ NAME β¨
ts_conf_set β write a new TSLIB_CONFFILE config file and reload it. no cap. π
β¨ SYNOPSIS β¨
#include <tslib.h>
int ts_conf_set(struct ts_module_conf *conf);
β¨ DESCRIPTION β¨
so ts_conf_set() takes a pointer to a struct ts_module_conf. bestie it reads data from all the linked structs in the list β like, through the next and prev pointers, the whole lil chain β and then it writes a brand new TSLIB_CONFFILE. π
the ordering is giving very much "first come, first line": the first struct in the list, the one where prev is NULL, becomes the first line of the file, and so on down the chain. π
β οΈ after writing, you have to call ts_reconfig() so the new modules and parameters actually get reloaded and applied to the program that's currently running. writing the file alone is not the vibe, okay? you gotta reload. π₯
also, heads up: the given set of ts_module_conf structs is freed and destroyed right here. like, gone gone. so after calling ts_conf_set() you have to use ts_conf_get() again if you want to make a different change. don't be out here touching freed structs, that's not the move π.
here's the struct, look at her:
struct ts_module_conf {
char *name;
char *params;
int raw;
int nr;
struct ts_module_conf *next;
struct ts_module_conf *prev;
};
β¨ RETURN VALUE β¨
this function returns zero on success and a negative integer on failure. so like, zero is the slay, negative is the "we don't talk about it". π
β¨ SEE ALSO β¨
kay bye bestie, that's the whole page!! π«Ά this was the TS_CONF_GET(3) page from the tslib manual β same name on the header and the footer, she's consistent at least β¨ go forth and reconfigure, ily, mwah π
π¦ where this page comes from
- alpine 3.24: tslib-doc 1.24-r0 Β· LGPL-2.0-or-later
- arch rolling: tslib 1.24-1 Β· LGPL-2.1-only
- debian bookworm: libts0 1.22-1+b1 Β· LGPL-2.0-or-later
- debian trixie: libts0t64 1.22-1.1+b1 Β· LGPL-2.0-or-later
- epel 10: tslib 1.23-2.el10_2 Β· LGPL-2.1-only
- epel 9: tslib 1.22-5.el9 Β· LGPLv2
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- nixos 26.05: tslib 1.24
- nixpkgs unstable: tslib 1.24
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- ubuntu jammy: libts0 1.22-1 Β· LGPL-2.0-or-later
- ubuntu noble: libts0t64 1.22-1.1build1 Β· LGPL-2.0-or-later
- ubuntu questing: libts0t64 1.22-1.1build1
- ubuntu resolute: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- ubuntu stonking: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- Copyright (c) 2018, Martin Kepplinger <martink@posteo.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms