• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/config/

Lines Matching defs:symbol

14 struct symbol symbol_yes = {
33 struct symbol *modules_sym;
35 void sym_add_default(struct symbol *sym, const char *def)
43 /* append property to the prop list of symbol */
53 struct symbol *sym;
81 int sym_get_type(struct symbol *sym)
115 struct property *sym_get_choice_prop(struct symbol *sym)
124 struct property *sym_get_default_prop(struct symbol *sym)
137 void sym_calc_visibility(struct symbol *sym)
153 void sym_calc_value(struct symbol *sym)
157 struct symbol *def_sym;
209 /* if the symbol is visible and not optionial,
289 struct symbol *sym;
299 struct symbol *sym;
306 bool sym_tristate_within_range(struct symbol *sym, tristate val)
331 bool sym_set_tristate_value(struct symbol *sym, tristate val)
359 tristate sym_toggle_tristate_value(struct symbol *sym)
382 bool sym_string_valid(struct symbol *sym, const char *str)
430 bool sym_set_string_value(struct symbol *sym, const char *newval)
482 const char *sym_get_string_value(struct symbol *sym)
505 bool sym_is_changable(struct symbol *sym)
518 struct symbol *sym_lookup(const char *name, int isconst)
520 struct symbol *symbol;
538 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
539 if (!strcmp(symbol->name, name)) {
540 if ((isconst && symbol->flags & SYMBOL_CONST) ||
541 (!isconst && !(symbol->flags & SYMBOL_CONST))) {
542 //printf("h:%p\n", symbol);
543 return symbol;
553 symbol = malloc(sizeof(*symbol));
554 memset(symbol, 0, sizeof(*symbol));
555 symbol->name = new_name;
556 symbol->type = S_UNKNOWN;
557 symbol->flags = SYMBOL_NEW;
559 symbol->flags |= SYMBOL_CONST;
561 symbol->next = symbol_hash[hash];
562 symbol_hash[hash] = symbol;
564 //printf("n:%p\n", symbol);
565 return symbol;
568 struct symbol *sym_find(const char *name)
570 struct symbol *symbol = NULL;
588 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
589 if (!strcmp(symbol->name, name) &&
590 !(symbol->flags & SYMBOL_CONST))
594 return symbol;