Lines Matching refs:rcfile
46 SLIST_HEAD(rcfile_head, rcfile);
48 static struct rcsection *rc_findsect(struct rcfile *rcp,
50 static struct rcsection *rc_addsect(struct rcfile *rcp,
58 static void rc_parse(struct rcfile *rcp);
60 static struct rcfile* rc_find(const char *filename);
63 * open rcfile and load its content, if already open - return previous handle
66 rc_open(const char *filename, const char *mode,struct rcfile **rcfile)
68 struct rcfile *rcp;
72 *rcfile = rcp;
78 rcp = malloc(sizeof(struct rcfile));
83 bzero(rcp, sizeof(struct rcfile));
88 *rcfile = rcp;
93 rc_close(struct rcfile *rcp)
104 SLIST_REMOVE(&pf_head, rcp, rcfile, rf_next);
109 static struct rcfile*
112 struct rcfile *p;
122 rc_findsect(struct rcfile *rcp, const char *sectname, int sect_id)
133 rc_addsect(struct rcfile *rcp, const char *sectname)
213 rc_parse(struct rcfile *rcp)
302 rc_getstringptr(struct rcfile *rcp, const char *section, int sect_id,
320 rc_getstring(struct rcfile *rcp, const char *section, int sect_id,
339 rc_getint(struct rcfile *rcp, const char *section, int sect_id,
366 rc_getbool(struct rcfile *rcp, const char *section, int sect_id,
399 int rc_getsectionscount(struct rcfile *f, const char *sectname)
416 rc_getkeys(struct rcfile *rcp, const char *sectname, int sect_id)