1TS_CONF_GET(3)                       tslib                      TS_CONF_GET(3)
2
3
4

NAME

6       ts_conf_set - write a new TSLIB_CONFFILE config file and reload it.
7

SYNOPSIS

9       #include <tslib.h>
10
11       int ts_conf_set(struct ts_module_conf *conf);
12
13
14

DESCRIPTION

16       ts_conf_set() This function takes a pointer to a struct ts_module_conf.
17       It reads data from all linked structs in the list (next and prev point‐
18       ers)  and  writes  a  new  TSLIB_CONFFILE. The first struct in the list
19       (where prev is NULL) is the  first  line  and  so  on.  After  writing,
20       ts_reconfig()  has  to  be called so the new modules and parameters are
21       reloaded and applied to the currently running program.
22
23       The given set of ts_module_conf structs is freed  and  destroyed  here.
24       After  calling  ts_conf_set() one has to use ts_conf_get() again, for a
25       different change.
26
27       struct ts_module_conf {
28            char *name;
29            char *params;
30            int raw;
31            int nr;
32
33            struct ts_module_conf *next;
34            struct ts_module_conf *prev;
35       };
36
37

RETURN VALUE

39       This function returns zero on success and a negative integer  on  fail‐
40       ure.
41
42

SEE ALSO

44       ts_conf_get(3), ts_config(3), ts.conf(5)
45
46
47
48                                                                TS_CONF_GET(3)
Impressum