summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e7f671)
raw | patch | inline | side by side (parent: 9e7f671)
author | Florian Forster <octo@verplant.org> | |
Wed, 8 Sep 2010 11:41:51 +0000 (13:41 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Wed, 8 Sep 2010 11:41:51 +0000 (13:41 +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 e0028f8a4c309545e0efac4a6754a56a95a7ff39..f512c119c332684958a3e736213bdd2f955ab66f 100644 (file)
--- a/src/data_provider.c
+++ b/src/data_provider.c
return (status);
} /* }}} int data_provider_get_idents */
+int data_provider_get_ident_data (graph_ident_t *ident, /* {{{ */
+ const char *ds_name,
+ dp_time_t begin, dp_time_t end,
+ dp_get_ident_data_callback callback, void *user_data)
+{
+ if (data_provider == NULL)
+ return (EINVAL);
+
+ return (data_provider->get_ident_data (data_provider->private_data,
+ ident, ds_name, begin, end, callback, user_data));
+} /* }}} int data_provider_get_ident_data */
+
/* vim: set sw=2 sts=2 et fdm=marker : */
diff --git a/src/data_provider.h b/src/data_provider.h
index 054c0a9c67ae1406e19240bfa68e56367eb250c1..1cdb42eeaf2423624ba3cf1a2ac21382fd8aa4dc 100644 (file)
--- a/src/data_provider.h
+++ b/src/data_provider.h
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_data (graph_ident_t *ident,
+ const char *ds_name,
+ dp_time_t begin, dp_time_t end,
+ dp_get_ident_data_callback callback, void *user_data);
#endif /* DATA_PROVIDER_H */
/* vim: set sw=2 sts=2 et fdm=marker : */