Lines Matching refs:name

44 		if (strcmp(handler->name, ch->name) == 0) {  in settings_register()
53 if (strcmp(handler->name, ch->name) == 0) { in settings_register()
66 int settings_name_steq(const char *name, const char *key, const char **next) in settings_name_steq() argument
72 if ((!name) || (!key)) { in settings_name_steq()
81 while ((*key != '\0') && (*key == *name) && in settings_name_steq()
82 (*name != '\0') && (*name != SETTINGS_NAME_END)) { in settings_name_steq()
84 name++; in settings_name_steq()
91 if (*name == SETTINGS_NAME_SEPARATOR) { in settings_name_steq()
93 *next = name + 1; in settings_name_steq()
98 if ((*name == SETTINGS_NAME_END) || (*name == '\0')) { in settings_name_steq()
105 int settings_name_next(const char *name, const char **next) in settings_name_next() argument
113 if (!name) { in settings_name_next()
121 while ((*name != '\0') && (*name != SETTINGS_NAME_END) && in settings_name_next()
122 (*name != SETTINGS_NAME_SEPARATOR)) { in settings_name_next()
124 name++; in settings_name_next()
127 if (*name == SETTINGS_NAME_SEPARATOR) { in settings_name_next()
129 *next = name + 1; in settings_name_next()
137 struct settings_handler_static *settings_parse_and_lookup(const char *name, in settings_parse_and_lookup() argument
149 if (!settings_name_steq(name, ch->name, &tmpnext)) { in settings_parse_and_lookup()
159 if (settings_name_steq(ch->name, bestmatch->name, NULL)) { in settings_parse_and_lookup()
171 if (!settings_name_steq(name, ch->name, &tmpnext)) { in settings_parse_and_lookup()
181 if (settings_name_steq(ch->name, bestmatch->name, NULL)) { in settings_parse_and_lookup()
192 int settings_call_set_handler(const char *name, in settings_call_set_handler() argument
199 const char *name_key = name; in settings_call_set_handler()
202 !settings_name_steq(name, load_arg->subtree, &name_key)) { in settings_call_set_handler()
212 ch = settings_parse_and_lookup(name, &name_key); in settings_call_set_handler()
221 name, rc); in settings_call_set_handler()
226 name); in settings_call_set_handler()
245 if (subtree && !settings_name_steq(ch->name, subtree, NULL)) { in settings_commit_subtree()
259 if (subtree && !settings_name_steq(ch->name, subtree, NULL)) { in settings_commit_subtree()