[json-glib] [node] Make JSON_NODE_TYPE call a function
- From: Emmanuele Bassi <ebassi src gnome org>
- To: svn-commits-list gnome org
- Subject: [json-glib] [node] Make JSON_NODE_TYPE call a function
- Date: Fri, 17 Apr 2009 10:53:06 -0400 (EDT)
commit ba46d8e07a8e2dd50a3b1fff8b8c3303e3686480
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Apr 17 15:38:40 2009 +0100
[node] Make JSON_NODE_TYPE call a function
Second pass at adding type safety to the JsonNode type checks.
The JSON_NODE_TYPE macro now calls the json_node_get_node_type()
function which hides the JsonNode.type structure field and gives
us a little bit more of future compatibility.
---
json-glib/json-types.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/json-glib/json-types.h b/json-glib/json-types.h
index d9cfa8b..1942a43 100644
--- a/json-glib/json-types.h
+++ b/json-glib/json-types.h
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
*
* Evaluates to the #JsonNodeType contained by @node
*/
-#define JSON_NODE_TYPE(node) (((JsonNode *) (node))->type)
+#define JSON_NODE_TYPE(node) (json_node_get_node_type ((node)))
#define JSON_TYPE_NODE (json_node_get_type ())
#define JSON_TYPE_OBJECT (json_object_get_type ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]