summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dada106)
raw | patch | inline | side by side (parent: dada106)
author | Florian Forster <octo@verplant.org> | |
Wed, 8 Sep 2010 15:19:05 +0000 (17:19 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Wed, 8 Sep 2010 15:19:05 +0000 (17:19 +0200) |
src/data_provider.c | patch | blob | history | |
src/data_provider.h | patch | blob | history |
diff --git a/src/data_provider.c b/src/data_provider.c
index f512c119c332684958a3e736213bdd2f955ab66f..02364431e3fd05bf567471cf4779afe16e5a5c50 100644 (file)
--- a/src/data_provider.c
+++ b/src/data_provider.c
return (status);
} /* }}} int data_provider_get_idents */
+int data_provider_get_ident_ds_names (graph_ident_t *ident, /* {{{ */
+ dp_list_get_ident_ds_names_callback callback, void *user_data)
+{
+ if (data_provider == NULL)
+ return (EINVAL);
+
+ return (data_provider->get_ident_ds_names (data_provider->private_data,
+ ident, callback, user_data));
+} /* }}} int data_provider_get_ident_ds_names */
+
int data_provider_get_ident_data (graph_ident_t *ident, /* {{{ */
const char *ds_name,
dp_time_t begin, dp_time_t end,
diff --git a/src/data_provider.h b/src/data_provider.h
index 1cdb42eeaf2423624ba3cf1a2ac21382fd8aa4dc..30f36703a78e497985e52f77c1dc6a0a36727cc3 100644 (file)
--- a/src/data_provider.h
+++ b/src/data_provider.h
/* Callback passed to the "get_ident_data" function. */
typedef int (*dp_get_ident_data_callback) (graph_ident_t *, const char *ds_name,
- const dp_data_point_t *, void *);
+ const dp_data_point_t *dp, size_t dp_num,
+ void *);
struct data_provider_s
{
int data_provider_register (const char *name, data_provider_t *p);
int data_provider_get_idents (dp_get_idents_callback callback, void *user_data);
+int data_provider_get_ident_ds_names (graph_ident_t *ident,
+ dp_list_get_ident_ds_names_callback callback, void *user_data);
int data_provider_get_ident_data (graph_ident_t *ident,
const char *ds_name,
dp_time_t begin, dp_time_t end,