added odict_entry_del()
This commit is contained in:
parent
8e93e8817d
commit
23a4b8e6c4
2 changed files with 7 additions and 0 deletions
|
@ -39,6 +39,7 @@ int odict_debug(struct re_printf *pf, const struct odict *o);
|
|||
|
||||
int odict_entry_add(struct odict *o, const char *key,
|
||||
enum odict_type type, ...);
|
||||
void odict_entry_del(struct odict *o, const char *key);
|
||||
int odict_entry_debug(struct re_printf *pf, const struct odict_entry *e);
|
||||
|
||||
bool odict_type_iscontainer(enum odict_type type);
|
||||
|
|
|
@ -106,6 +106,12 @@ int odict_entry_add(struct odict *o, const char *key,
|
|||
}
|
||||
|
||||
|
||||
void odict_entry_del(struct odict *o, const char *key)
|
||||
{
|
||||
mem_deref((struct odict_entry *)odict_lookup(o, key));
|
||||
}
|
||||
|
||||
|
||||
int odict_entry_debug(struct re_printf *pf, const struct odict_entry *e)
|
||||
{
|
||||
int err;
|
||||
|
|
Loading…
Add table
Reference in a new issue