From 2d549662be832da838aa063da2efa78ee3b99668 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 23 Sep 2015 09:08:49 +0200 Subject: add json_object_object_add_ex() API This provides more control over some detail aspects, many of which are performance related. --- linkhash.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linkhash.h') diff --git a/linkhash.h b/linkhash.h index 66f2d97..f967bf9 100644 --- a/linkhash.h +++ b/linkhash.h @@ -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); /** -- cgit v1.2.1