diff options
author | Eion Robb <eion@robbmob.com> | 2017-03-27 07:28:54 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2017-03-27 07:28:54 +0300 |
commit | 49cd9cf95714605fedc63cf357cb3addd6d342b2 (patch) | |
tree | 700ef75ed6ca335f7372b2e8dfe7734cf2f188ee | |
parent | 19ac09e0867e3165f43833a51329215acf346a5d (diff) |
Suppress some noisy json-glib warnings
Should help with issue #532
-rw-r--r-- | skypeweb/libskypeweb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/skypeweb/libskypeweb.h b/skypeweb/libskypeweb.h index 381afc6..102febf 100644 --- a/skypeweb/libskypeweb.h +++ b/skypeweb/libskypeweb.h @@ -66,6 +66,10 @@ (JSON_OBJECT && json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_object_member(JSON_OBJECT, MEMBER) : NULL) #define json_object_get_boolean_member(JSON_OBJECT, MEMBER) \ (JSON_OBJECT && json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_boolean_member(JSON_OBJECT, MEMBER) : FALSE) +#define json_array_get_length(JSON_ARRAY) \ + (JSON_ARRAY ? json_array_get_length(JSON_ARRAY) : 0) +#define json_node_get_array(JSON_NODE) \ + (JSON_NODE && JSON_NODE_TYPE(JSON_NODE) == JSON_NODE_ARRAY ? json_node_get_array(JSON_NODE) : NULL) #ifndef PURPLE_PLUGINS # define PURPLE_PLUGINS |