Code

src/graph_ident.c: ident_data_to_json: Include the file name.
authorFlorian Forster <octo@verplant.org>
Fri, 10 Sep 2010 12:30:28 +0000 (14:30 +0200)
committerFlorian Forster <octo@verplant.org>
Fri, 10 Sep 2010 12:30:28 +0000 (14:30 +0200)
src/graph_ident.c

index cce580a4d6a09be4bcdc30ab3022635702882c84..d16cb5b427e95bc5107c5d036759f004c11d54f9 100644 (file)
@@ -588,7 +588,10 @@ static int ident_data_to_json__get_ds_name (const graph_ident_t *ident, /* {{{ *
 
   yajl_gen_map_open (data->handler);
 
-  yajl_gen_string_cast (data->handler, "ds_name", strlen ("ds_name"));
+  yajl_gen_string_cast (data->handler, "file", strlen ("file"));
+  ident_to_json (ident, data->handler);
+
+  yajl_gen_string_cast (data->handler, "data_source", strlen ("data_source"));
   yajl_gen_string_cast (data->handler, ds_name, strlen (ds_name));
 
   yajl_gen_string_cast (data->handler, "data", strlen ("data"));