From: Florian Forster Date: Wed, 8 Sep 2010 11:41:51 +0000 (+0200) Subject: src/data_provider.[ch]: Implement "data_provider_get_ident_data". X-Git-Tag: v4.0.0~40 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dada106cc5e266710e0238046245349e595201a3;p=collection4.git src/data_provider.[ch]: Implement "data_provider_get_ident_data". --- 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 : */