summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ac3d2a)
raw | patch | inline | side by side (parent: 6ac3d2a)
author | Florian Forster <octo@verplant.org> | |
Thu, 22 Dec 2011 08:06:20 +0000 (09:06 +0100) | ||
committer | Florian Forster <octo@verplant.org> | |
Thu, 22 Dec 2011 08:06:23 +0000 (09:06 +0100) |
This should simplify future extensions.
src/action_list_hosts_json.c | patch | blob | history |
index 029b700de13217d368da6ba1d722b7436368b0b6..419d44c61a70b17dd43e3bd2dd80698ef7c1dbcc 100644 (file)
{
yajl_gen handler = user_data;
+ yajl_gen_map_open (handler);
+
+ yajl_gen_string (handler,
+ (unsigned char *) "host",
+ (unsigned int) strlen ("host"));
yajl_gen_string (handler,
(unsigned char *) host,
(unsigned int) strlen (host));
+ yajl_gen_map_close (handler);
+
return (0);
} /* }}} int print_one_host */
int action_list_hosts_json (void) /* {{{ */
{
- graph_config_t *cfg;
-
yajl_gen_config handler_config;
yajl_gen handler;