• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/confuse-2.7/src/

Lines Matching refs:index

209 DLLIMPORT signed long cfg_opt_getnint(cfg_opt_t *opt, unsigned int index)
212 if(opt->values && index < opt->nvalues)
213 return opt->values[index]->number;
221 unsigned int index)
223 return cfg_opt_getnint(cfg_getopt(cfg, name), index);
231 DLLIMPORT double cfg_opt_getnfloat(cfg_opt_t *opt, unsigned int index)
234 if(opt->values && index < opt->nvalues)
235 return opt->values[index]->fpnumber;
243 unsigned int index)
245 return cfg_opt_getnfloat(cfg_getopt(cfg, name), index);
253 DLLIMPORT cfg_bool_t cfg_opt_getnbool(cfg_opt_t *opt, unsigned int index)
256 if(opt->values && index < opt->nvalues)
257 return opt->values[index]->boolean;
265 unsigned int index)
267 return cfg_opt_getnbool(cfg_getopt(cfg, name), index);
275 DLLIMPORT char *cfg_opt_getnstr(cfg_opt_t *opt, unsigned int index)
278 if(opt->values && index < opt->nvalues)
279 return opt->values[index]->string;
286 DLLIMPORT char *cfg_getnstr(cfg_t *cfg, const char *name, unsigned int index)
288 return cfg_opt_getnstr(cfg_getopt(cfg, name), index);
296 DLLIMPORT void *cfg_opt_getnptr(cfg_opt_t *opt, unsigned int index)
299 if(opt->values && index < opt->nvalues)
300 return opt->values[index]->ptr;
307 DLLIMPORT void *cfg_getnptr(cfg_t *cfg, const char *name, unsigned int index)
309 return cfg_opt_getnptr(cfg_getopt(cfg, name), index);
317 DLLIMPORT cfg_t *cfg_opt_getnsec(cfg_opt_t *opt, unsigned int index)
320 if(opt->values && index < opt->nvalues)
321 return opt->values[index]->section;
325 DLLIMPORT cfg_t *cfg_getnsec(cfg_t *cfg, const char *name, unsigned int index)
327 return cfg_opt_getnsec(cfg_getopt(cfg, name), index);
1236 static cfg_value_t *cfg_opt_getval(cfg_opt_t *opt, unsigned int index)
1240 assert(index == 0 || is_set(CFGF_LIST, opt->flags));
1252 if(index >= opt->nvalues)
1255 val = opt->values[index];
1261 unsigned int index)
1265 val = cfg_opt_getval(opt, index);
1270 long int value, unsigned int index)
1272 cfg_opt_setnint(cfg_getopt(cfg, name), value, index);
1281 unsigned int index)
1285 val = cfg_opt_getval(opt, index);
1290 double value, unsigned int index)
1292 cfg_opt_setnfloat(cfg_getopt(cfg, name), value, index);
1301 unsigned int index)
1305 val = cfg_opt_getval(opt, index);
1310 cfg_bool_t value, unsigned int index)
1312 cfg_opt_setnbool(cfg_getopt(cfg, name), value, index);
1321 unsigned int index)
1325 val = cfg_opt_getval(opt, index);
1331 const char *value, unsigned int index)
1333 cfg_opt_setnstr(cfg_getopt(cfg, name), value, index);
1399 DLLIMPORT void cfg_opt_nprint_var(cfg_opt_t *opt, unsigned int index, FILE *fp)
1407 fprintf(fp, "%ld", cfg_opt_getnint(opt, index));
1410 fprintf(fp, "%lf", cfg_opt_getnfloat(opt, index));
1413 str = cfg_opt_getnstr(opt, index);
1428 fprintf(fp, "%s", cfg_opt_getnbool(opt, index) ? "true" : "false");