Skip to content

Commit

Permalink
Silence critics - hide json-glib 'critical' errors
Browse files Browse the repository at this point in the history
  • Loading branch information
EionRobb committed Apr 20, 2016
1 parent 922ca95 commit f23913d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions skypeweb/libskypeweb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f23913d

Please sign in to comment.