From dada106cc5e266710e0238046245349e595201a3 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 8 Sep 2010 13:41:51 +0200 Subject: [PATCH] src/data_provider.[ch]: Implement "data_provider_get_ident_data". --- src/data_provider.c | 12 ++++++++++++ src/data_provider.h | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/src/data_provider.c b/src/data_provider.c index e0028f8..f512c11 100644 --- a/src/data_provider.c +++ b/src/data_provider.c @@ -69,4 +69,16 @@ int data_provider_get_idents (dp_get_idents_callback callback, /* {{{ */ 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 054c0a9..1cdb42e 100644 --- a/src/data_provider.h +++ b/src/data_provider.h @@ -68,6 +68,10 @@ int data_provider_config (const oconfig_item_t *ci); 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 : */ -- 2.30.2