Lines Matching refs:name
45 if (strcmp(handler->name, ch->name) == 0) { in settings_register_with_cprio()
54 if (strcmp(handler->name, ch->name) == 0) { in settings_register_with_cprio()
74 int settings_name_steq(const char *name, const char *key, const char **next) in settings_name_steq() argument
80 if ((!name) || (!key)) { in settings_name_steq()
89 while ((*key != '\0') && (*key == *name) && in settings_name_steq()
90 (*name != '\0') && (*name != SETTINGS_NAME_END)) { in settings_name_steq()
92 name++; in settings_name_steq()
99 if (*name == SETTINGS_NAME_SEPARATOR) { in settings_name_steq()
101 *next = name + 1; in settings_name_steq()
106 if ((*name == SETTINGS_NAME_END) || (*name == '\0')) { in settings_name_steq()
113 int settings_name_next(const char *name, const char **next) in settings_name_next() argument
121 if (!name) { in settings_name_next()
129 while ((*name != '\0') && (*name != SETTINGS_NAME_END) && in settings_name_next()
130 (*name != SETTINGS_NAME_SEPARATOR)) { in settings_name_next()
132 name++; in settings_name_next()
135 if (*name == SETTINGS_NAME_SEPARATOR) { in settings_name_next()
137 *next = name + 1; in settings_name_next()
145 struct settings_handler_static *settings_parse_and_lookup(const char *name, in settings_parse_and_lookup() argument
157 if (!settings_name_steq(name, ch->name, &tmpnext)) { in settings_parse_and_lookup()
167 if (settings_name_steq(ch->name, bestmatch->name, NULL)) { in settings_parse_and_lookup()
179 if (!settings_name_steq(name, ch->name, &tmpnext)) { in settings_parse_and_lookup()
189 if (settings_name_steq(ch->name, bestmatch->name, NULL)) { in settings_parse_and_lookup()
200 int settings_call_set_handler(const char *name, in settings_call_set_handler() argument
207 const char *name_key = name; in settings_call_set_handler()
210 !settings_name_steq(name, load_arg->subtree, &name_key)) { in settings_call_set_handler()
220 ch = settings_parse_and_lookup(name, &name_key); in settings_call_set_handler()
229 name, rc); in settings_call_set_handler()
234 name); in settings_call_set_handler()
274 if (subtree && !settings_name_steq(ch->name, subtree, NULL)) { in settings_commit_subtree()
295 if (subtree && !settings_name_steq(ch->name, subtree, NULL)) { in settings_commit_subtree()