return (EINVAL);
yajl_gen_map_open (handler);
+
+ yajl_gen_string (handler,
+ (unsigned char *) "title",
+ (unsigned int) strlen ("title"));
+ yajl_gen_string (handler,
+ (unsigned char *) cfg->title,
+ (unsigned int) strlen (cfg->title));
+
yajl_gen_string (handler,
(unsigned char *) "select",
(unsigned int) strlen ("select"));
ident_to_json (cfg->select, handler);
+
yajl_gen_string (handler,
(unsigned char *) "instances",
(unsigned int) strlen ("instances"));
for (i = 0; i < cfg->instances_num; i++)
inst_to_json (cfg->instances[i], handler);
yajl_gen_array_close (handler);
+
yajl_gen_map_close (handler);
return (0);