summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1eabc94)
raw | patch | inline | side by side (parent: 1eabc94)
author | Florian Forster <ff@octo.it> | |
Fri, 10 Sep 2010 15:14:25 +0000 (17:14 +0200) | ||
committer | Florian Forster <ff@octo.it> | |
Fri, 10 Sep 2010 15:14:25 +0000 (17:14 +0200) |
src/data_provider.h | patch | blob | history | |
src/graph_ident.c | patch | blob | history | |
src/graph_ident.h | patch | blob | history | |
src/graph_list.c | patch | blob | history |
diff --git a/src/data_provider.h b/src/data_provider.h
index 30f36703a78e497985e52f77c1dc6a0a36727cc3..87025f21ad31019c4b4c9218739f19e1f531d70c 100644 (file)
--- a/src/data_provider.h
+++ b/src/data_provider.h
typedef struct dp_data_point_s dp_data_point_t;
/* Callback passed to the "get_idents" function. */
-typedef int (*dp_get_idents_callback) (const graph_ident_t *, void *);
+typedef int (*dp_get_idents_callback) (graph_ident_t *, void *);
/* Callback passed to the "get_ident_ds_names" function. */
-typedef int (*dp_list_get_ident_ds_names_callback) (const graph_ident_t *,
+typedef int (*dp_list_get_ident_ds_names_callback) (graph_ident_t *,
const char *ds_name, void *);
/* Callback passed to the "get_ident_data" function. */
diff --git a/src/graph_ident.c b/src/graph_ident.c
index d16cb5b427e95bc5107c5d036759f004c11d54f9..7f37035512c273c60df0d3356e40f4869c3e158d 100644 (file)
--- a/src/graph_ident.c
+++ b/src/graph_ident.c
} /* }}} int ident_data_to_json__get_ident_data */
/* Called for each DS name */
-static int ident_data_to_json__get_ds_name (const graph_ident_t *ident, /* {{{ */
+static int ident_data_to_json__get_ds_name (graph_ident_t *ident, /* {{{ */
const char *ds_name, void *user_data)
{
ident_data_to_json__data_t *data = user_data;
@@ -605,7 +605,7 @@ static int ident_data_to_json__get_ds_name (const graph_ident_t *ident, /* {{{ *
return (status);
} /* }}} int ident_data_to_json__get_ds_name */
-int ident_data_to_json (const graph_ident_t *ident, /* {{{ */
+int ident_data_to_json (graph_ident_t *ident, /* {{{ */
dp_time_t begin, dp_time_t end,
yajl_gen handler)
{
diff --git a/src/graph_ident.h b/src/graph_ident.h
index 6d033b328ff098273c18ecaeeaab92eedbdfce1d..5f7b2d45aedcb9d9bf6ac03fb475950412c9e369 100644 (file)
--- a/src/graph_ident.h
+++ b/src/graph_ident.h
char *ident_to_file (const graph_ident_t *ident);
int ident_to_json (const graph_ident_t *ident,
yajl_gen handler);
-int ident_data_to_json (const graph_ident_t *ident,
+int ident_data_to_json (graph_ident_t *ident,
dp_time_t begin, dp_time_t end,
yajl_gen handler);
diff --git a/src/graph_list.c b/src/graph_list.c
index d767ef945585198691fd737c2d2de5c750f5eb9b..b969d4ce2481a794e83997a5f8c7207bac0c6787 100644 (file)
--- a/src/graph_list.c
+++ b/src/graph_list.c
return (0);
} /* }}} int gl_register_file */
-static int gl_register_ident (const graph_ident_t *ident, /* {{{ */
+static int gl_register_ident (graph_ident_t *ident, /* {{{ */
__attribute__((unused)) void *user_data)
{
/* TODO: Check for duplicates if multiple data providers are used. */