diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2009-06-09 11:05:23 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2009-06-09 11:05:23 +0100 |
commit | 069cdc8c4ea9024b1583f074815e16e9ddf7db7f (patch) | |
tree | eb153ff1574b87a642694b0212efe42d590c6e04 /json-glib/tests | |
parent | 930fdf4c4dff1f5310a946c2a9f5b6860f7c8ba8 (diff) | |
download | json-glib-069cdc8c4ea9024b1583f074815e16e9ddf7db7f.tar.gz |
[node] Make JsonNode completely private
The JsonNode structure has always been meant to be completely
opaque; we indirectly exposed the :type member, but only for
access through the JSON_NODE_TYPE() macro.
Since that macro has become a proxy for the json_node_get_node_type()
function we can safely move everything into a private, uninstalled
header file and let JsonNode be completely opaque to the developer.
Diffstat (limited to 'json-glib/tests')
-rw-r--r-- | json-glib/tests/node-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/json-glib/tests/node-test.c b/json-glib/tests/node-test.c index 1a9294b..8ccc402 100644 --- a/json-glib/tests/node-test.c +++ b/json-glib/tests/node-test.c @@ -8,7 +8,7 @@ test_copy_null (void) JsonNode *node = json_node_new (JSON_NODE_NULL); JsonNode *copy = json_node_copy (node); - g_assert_cmpint (node->type, ==, copy->type); + g_assert_cmpint (json_node_get_node_type (node), ==, json_node_get_node_type (copy)); g_assert_cmpint (json_node_get_value_type (node), ==, json_node_get_value_type (copy)); g_assert_cmpstr (json_node_type_name (node), ==, json_node_type_name (copy)); @@ -25,7 +25,7 @@ test_copy_value (void) json_node_set_string (node, "hello"); copy = json_node_copy (node); - g_assert_cmpint (node->type, ==, copy->type); + g_assert_cmpint (json_node_get_node_type (node), ==, json_node_get_node_type (copy)); g_assert_cmpstr (json_node_type_name (node), ==, json_node_type_name (copy)); g_assert_cmpstr (json_node_get_string (node), ==, json_node_get_string (copy)); @@ -48,7 +48,7 @@ test_copy_object (void) copy = json_node_copy (node); - g_assert_cmpint (node->type, ==, copy->type); + g_assert_cmpint (json_node_get_node_type (node), ==, json_node_get_node_type (copy)); g_assert (json_node_get_object (node) == json_node_get_object (copy)); json_node_free (copy); @@ -60,7 +60,7 @@ test_null (void) { JsonNode *node = json_node_new (JSON_NODE_NULL); - g_assert_cmpint (node->type, ==, JSON_NODE_NULL); + g_assert_cmpint (json_node_get_node_type (node), ==, JSON_NODE_NULL); g_assert_cmpint (json_node_get_value_type (node), ==, G_TYPE_INVALID); g_assert_cmpstr (json_node_type_name (node), ==, "NULL"); |