Lines Matching refs:key

75     const char *key;
78 static bool remove_pair(void *key, void *value, void *context)
84 * - if key is not supplied, then we are removing all entries,
85 * so remove key and continue (i.e. return true)
86 * - if key is supplied and matches, then remove it and don't
88 * for key.
91 if (!ctxt->key) {
94 } else if (!strcmp(ctxt->key, key)) {
102 hashmapRemove(ctxt->str_parms->map, key);
103 free(key);
108 void str_parms_del(struct str_parms *str_parms, const char *key)
112 .key = key,
150 char *key;
157 key = strndup(kvpair, eq - kvpair);
163 key = strdup(kvpair);
168 old_val = hashmapPut(str_parms->map, key, value);
171 free(key);
192 int str_parms_add_str(struct str_parms *str_parms, const char *key,
199 tmp_key = strdup(key);
214 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value)
223 ret = str_parms_add_str(str_parms, key, val_str);
227 int str_parms_add_float(struct str_parms *str_parms, const char *key,
237 ret = str_parms_add_str(str_parms, key, val_str);
241 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val,
246 value = hashmapGet(str_parms->map, (void *)key);
253 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val)
258 value = hashmapGet(str_parms->map, (void *)key);
269 int str_parms_get_float(struct str_parms *str_parms, const char *key,
276 value = hashmapGet(str_parms->map, (void *)key);
287 static bool combine_strings(void *key, void *value, void *context)
296 (char *)key,
321 static bool dump_entry(void *key, void *value, void *context)
323 ALOGI("key: '%s' value: '%s'\n", (char *)key, (char *)value);