diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-10-01 19:49:43 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-10-01 19:49:43 +0100 |
commit | f09acae8e0d6ceba5d13de75551491835a7e71de (patch) | |
tree | 91c40f3780dd68e906de38fcb797b2bcddd6135a /json-glib/json-object.c | |
parent | 228a5e4efe65995778847f48d2be43f3df988e10 (diff) | |
download | json-glib-f09acae8e0d6ceba5d13de75551491835a7e71de.tar.gz |
Document the new public functions
Now that we moved the constructors and setters for the JSON data types into
the public symbols we need to document them to get back to 100% doc coverage.
Diffstat (limited to 'json-glib/json-object.c')
-rw-r--r-- | json-glib/json-object.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/json-glib/json-object.c b/json-glib/json-object.c index 7423917..96fcdbe 100644 --- a/json-glib/json-object.c +++ b/json-glib/json-object.c @@ -47,6 +47,13 @@ struct _JsonObject volatile gint ref_count; }; +/** + * json_object_new: + * + * Creates a new #JsonObject, an JSON object type representation. + * + * Return value: the newly created #JsonObject + */ JsonObject * json_object_new (void) { @@ -110,6 +117,14 @@ json_object_unref (JsonObject *object) } } +/** + * json_object_add_member: + * @object: a #JsonObject + * @member_name: the name of the member + * @node: the value of the member + * + * Adds a member named @member_name and containing @node into a #JsonObject. + */ void json_object_add_member (JsonObject *object, const gchar *member_name, |