Man page - ts_conf_set(3)
Packages contas this manual
- ts_config(3)
- ts_conf_get(3)
- ts_open(3)
- ts_read_raw(3)
- ts_setup(3)
- ts_read(3)
- ts_close(3)
- ts_libversion(3)
- ts_uinput(1)
- ts_finddev(1)
- ts_read_raw_mt(3)
- ts.conf(5)
- ts_verify(1)
- ts_test(1)
- ts_conf_set(3)
- ts_error_fn(3)
- ts_read_mt(3)
- ts_open_restricted(3)
- ts_harvest(1)
- ts_get_eventpath(3)
- ts_fd(3)
- ts_print_raw(1)
- ts_print_mt(1)
- ts_print(1)
- ts_test_mt(1)
- ts_calibrate(1)
- ts_conf(1)
- ts_close_restricted(3)
apt-get install libts0t64
Manual
| TS_CONF_GET(3) | tslib | TS_CONF_GET(3) |
NAME
ts_conf_set - write a new TSLIB_CONFFILE config file and reload it.
SYNOPSIS
#include <tslib.h> int ts_conf_set(struct ts_module_conf *conf);
DESCRIPTION
ts_conf_set() This function takes a pointer to a struct ts_module_conf. It reads data from all linked structs in the list (next and prev pointers) and writes a new TSLIB_CONFFILE. The first struct in the list (where prev is NULL) is the first line and so on. After writing, ts_reconfig() has to be called so the new modules and parameters are reloaded and applied to the currently running program.
The given set of ts_module_conf structs is freed and destroyed here. After calling ts_conf_set() one has to use ts_conf_get() again, for a different change.
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.
SEE ALSO
ts_conf_get(3), ts_config(3), ts.conf(5)