• Home
  • Raw
  • Download

Lines Matching refs:option

53 static int set_option_str(char *filename, int line, OPTION *option, char *p)  in set_option_str()  argument
56 option->val = (void *) strdup(p); in set_option_str()
58 option->val = NULL; in set_option_str()
63 static int set_option_int(char *filename, int line, OPTION *option, char *p) in set_option_int() argument
78 option->val = (void *) iptr; in set_option_int()
83 static int set_option_srv(char *filename, int line, OPTION *option, char *p) in set_option_srv() argument
95 serv = (SERVER *) option->val; in set_option_srv()
109 if (!strcmp(option->name,"authserver")) in set_option_srv()
114 else if (!strcmp(option->name, "acctserver")) in set_option_srv()
120 error("%s: line %d: no default port for %s", filename, line, option->name); in set_option_srv()
133 static int set_option_auo(char *filename, int line, OPTION *option, char *p) in set_option_auo() argument
172 option->val = (void *) iptr; in set_option_auo()
190 OPTION *option; in rc_read_config() local
218 if ((option = find_option(p, OT_ANY)) == NULL) { in rc_read_config()
223 if (option->status != ST_UNDEF) { in rc_read_config()
232 switch (option->type) { in rc_read_config()
234 if (set_option_str(filename, line, option, p) < 0) in rc_read_config()
238 if (set_option_int(filename, line, option, p) < 0) in rc_read_config()
242 if (set_option_srv(filename, line, option, p) < 0) in rc_read_config()
246 if (set_option_auo(filename, line, option, p) < 0) in rc_read_config()
269 OPTION *option; in rc_conf_str() local
271 option = find_option(optname, OT_STR); in rc_conf_str()
273 if (option == NULL) in rc_conf_str()
275 return (char *)option->val; in rc_conf_str()
280 OPTION *option; in rc_conf_int() local
282 option = find_option(optname, OT_INT|OT_AUO); in rc_conf_int()
284 if (option == NULL) in rc_conf_int()
286 return *((int *)option->val); in rc_conf_int()
291 OPTION *option; in rc_conf_srv() local
293 option = find_option(optname, OT_SRV); in rc_conf_srv()
295 if (option == NULL) in rc_conf_srv()
297 return (SERVER *)option->val; in rc_conf_srv()