• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/shared/

Lines Matching refs:key

21  *  \brief Simple key/value dictionary implementation
63 char * key; /**< \brief Pointer to malloc'ed key copy */
80 static t_dict_node *DictInternalFind(dict_hdl_t dict, const char * const key);
89 * Function name : static t_dict_node *DictInternalFind(const char * const key)
96 /** \brief Searches for given key and returns pointer to the whole node
98 * \param[in] key Pointer to the key to search for
103 static t_dict_node *DictInternalFind(const dict_hdl_t dict, const char * const key)
107 /* run over list looking for key */
109 if (!strcmp(key, p->key))
132 free((*p)->key);
165 * Function name : static t_dict_node *DictInternalFind(const char * const key)
172 /** \brief Searches for given key and returns pointer to the whole node
174 * \param[in] key Pointer to the key to search for
188 * Function name : void DictSet(const char * const key, const char * const
198 * \param[in] key Key to store
202 void DictSet(const dict_hdl_t dict, const char * const key, const char * const
205 t_dict_node *node = DictInternalFind(dict, key);
220 node->key = strdup(key);
228 * Function name : const char *DictGet(const char * const key)
236 /** \brief Gets a key's value from the dictionnary
238 * \param[in] key Key to store
243 const char *DictGet(const dict_hdl_t dict, const char * const key)
245 t_dict_node *node = DictInternalFind(dict, key);
250 * Function name : void DictDelete(const char * const key)
259 * \param[in] key Key to delete
262 void DictDelete(const dict_hdl_t dict, const char * const key)
266 /* run over list looking for key keeping a * to previous for relinking */
268 if (!strcmp(key, (*p)->key))
310 * Function name : void DictMap(void (*fn)(const char *key, const char *value))
322 void DictMap(const dict_hdl_t dict, void (*fn)(const char *key, const char *value))
326 fn(p->key, p->value);
356 * Function name : void DictSet(const char * const key, const char * const
382 /** \brief Returns key for given iterator
391 return *p ? (*p)->key : NULL;
395 * Function name : void DictSet(const char * const key, const char * const