From: Jehiah Czebotar Date: Wed, 25 May 2011 04:49:20 +0000 (+0000) Subject: move definition of json_object_iter to public header to enable external use of json_o... X-Git-Tag: json-c-0.10-20120530~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43d2f417c70b9a9845122fd3f69708c6dc47efd1;p=thirdparty%2Fjson-c.git move definition of json_object_iter to public header to enable external use of json_object_object_foreachC Patch from Rick Moran git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@74 327403b1-1117-474d-bef2-5cb71233fd97 --- diff --git a/json_object.h b/json_object.h index 29a408de..9f9ca400 100644 --- a/json_object.h +++ b/json_object.h @@ -27,6 +27,14 @@ extern "C" { extern const char *json_number_chars; extern const char *json_hex_chars; +/* CAW: added for ANSI C iteration correctness */ +struct json_object_iter +{ + char *key; + struct json_object *val; + struct lh_entry *entry; +}; + /* forward structure definitions */ typedef int boolean; diff --git a/json_object_private.h b/json_object_private.h index c7f604bf..ceca58c8 100644 --- a/json_object_private.h +++ b/json_object_private.h @@ -40,14 +40,6 @@ struct json_object } o; }; -/* CAW: added for ANSI C iteration correctness */ -struct json_object_iter -{ - char *key; - struct json_object *val; - struct lh_entry *entry; -}; - #ifdef __cplusplus } #endif