QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
json.h
Go to the documentation of this file.
1 
21 #include "qev.h"
22 
26 #ifndef JSON_MAX_PARTS
27  #define JSON_MAX_PARTS 256
28 #endif
29 
38 
46 
51 
56 
62 };
63 
68  gchar *json,
69  guint *parsed,
70  const gchar *spec,
71  ...);
72 
97  gchar *json,
98  guint *parsed,
99  const gchar *spec,
100  va_list args);
101 
106  GString *buff,
107  const gchar *spec,
108  ...);
109 
126  GString *buff,
127  const gchar *spec,
128  va_list args);
The spec was invalid.
Definition: json.h:50
enum qev_json_status qev_json_vpack(GString *buff, const gchar *spec, va_list args)
Packs the given values into a JSON object.
Everything went as expected.
Definition: json.h:37
qev_json_status
The maximum number of parts the spec may contain (objects, arrays, values).
Definition: json.h:33
enum qev_json_status qev_json_unpack(gchar *json, guint *parsed, const gchar *spec,...)
Variable arguments form of qev_json_vunpack().
The JSON was improperly formatted.
Definition: json.h:55
enum qev_json_status qev_json_vunpack(gchar *json, guint *parsed, const gchar *spec, va_list args)
Unpack the given JSON object into the given variables.
The JSON was valid but didn't match the spec or didn't completely fill all requested values...
Definition: json.h:61
Provides all the qev_* functions that are needed for creating an event loop.
If the spec has too many parts.
Definition: json.h:45
enum qev_json_status qev_json_pack(GString *buff, const gchar *spec,...)
Variable arguments form of qev_json_vpack().