diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2015-09-23 09:08:49 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2015-09-23 09:43:00 +0200 |
commit | 2d549662be832da838aa063da2efa78ee3b99668 (patch) | |
tree | 9d3f7a78723a512c21844060ac62d80a6ea7c114 /linkhash.h | |
parent | d8e44dc6855c5065050b1bcb26e2708a63934797 (diff) | |
download | json-c-2d549662be832da838aa063da2efa78ee3b99668.tar.gz |
add json_object_object_add_ex() API
This provides more control over some detail aspects, many
of which are performance related.
Diffstat (limited to 'linkhash.h')
-rw-r--r-- | linkhash.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -64,6 +64,7 @@ struct lh_entry { * The key. */ void *k; + int k_is_constant; /** * The value. */ @@ -241,8 +242,9 @@ extern int lh_table_insert(struct lh_table *t, void *k, const void *v); * @param k a pointer to the key to insert. * @param v a pointer to the value to insert. * @param h hash value of the key to insert + * @param opts opts, a subset of JSON_OBJECT_ADD_* flags is supported */ -extern int lh_table_insert_w_hash(struct lh_table *t, void *k, const void *v, const unsigned long h); +extern int lh_table_insert_w_hash(struct lh_table *t, void *k, const void *v, const unsigned long h, const unsigned opts); /** |