Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2016-04-20 14:25:53 +0300
committerEion Robb <eion@robbmob.com>2016-04-20 14:25:53 +0300
commitf23913d1287ab212aa2c3cd32eda64555a49281b (patch)
treed44c153e9650657818f3ed842277a045dbdcfd40
parent922ca9580ead376b3c451458f914fa27b772a1a3 (diff)
Silence critics - hide json-glib 'critical' errors
-rw-r--r--skypeweb/libskypeweb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/skypeweb/libskypeweb.h b/skypeweb/libskypeweb.h
index bfcc31d..36d8da8 100644
--- a/skypeweb/libskypeweb.h
+++ b/skypeweb/libskypeweb.h
@@ -56,6 +56,17 @@
#include <json-glib/json-glib.h>
+#define json_object_get_int_member(JSON_OBJECT, MEMBER) \
+ (JSON_OBJECT && json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_int_member(JSON_OBJECT, MEMBER) : 0)
+#define json_object_get_string_member(JSON_OBJECT, MEMBER) \
+ (JSON_OBJECT && json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_string_member(JSON_OBJECT, MEMBER) : NULL)
+#define json_object_get_array_member(JSON_OBJECT, MEMBER) \
+ (JSON_OBJECT && json_object_has_member(JSON_OBJECT, MEMBER) ? json_object_get_array_member(JSON_OBJECT, MEMBER) : NULL)
+#define json_object_get_object_member(JSON_OBJECT, MEMBER) \
+ (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)
+
#ifndef PURPLE_PLUGINS
# define PURPLE_PLUGINS
#endif