+2007-10-25 Emmanuele Bassi <ebassi@openedhand.com>
+
+ * clutter/clutter-json.h: Header for including the JSON
+ parsing and data types.
+
+ * clutter/json/json-types.h: Add JSON_NODE_VALUE_TYPE() macro.
+
+ * clutter/json/Makefile.am: Install the JSON headers into a
+ private location. This might change in the future, and might
+ also cause collisions if you're using JSON-GLib and Clutter
+ at the same time, so be warned.
+
2007-10-22 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c (clutter_label_request_coords): If
--- /dev/null
+#ifndef __CLUTTER_JSON_H__
+#define __CLUTTER_JSON_H__
+
+#include "json/json-types.h"
+#include "json/json-parser.h"
+#include "json/json-generator.h"
+
+#endif /* __CLUTTER_JSON_H__ */
$(CLUTTER_CFLAGS) \
$(CLUTTER_DEBUG_CFLAGS)
+clutterjsondir = $(includedir)/clutter-@CLUTTER_MAJORMINOR@/clutter/json
+clutterjson_HEADERS = $(source_h)
*
* Evaluates to the #JsonNodeType contained by @node
*/
-#define JSON_NODE_TYPE(node) (((JsonNode *) (node))->type)
+#define JSON_NODE_TYPE(node) \
+ (((JsonNode *) (node))->type)
+#define JSON_NODE_VALUE_TYPE(node) \
+ (G_VALUE_TYPE ((((JsonNode *) (node))->data.value))
+
#define JSON_TYPE_OBJECT (json_object_get_type ())
#define JSON_TYPE_ARRAY (json_array_get_type ())