X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fplugin.h;fp=src%2Finclude%2Fcore%2Fplugin.h;h=6574330412417dee9de23b98715fc9ba4882eafe;hp=b12af783adc5f5cb4414496ef0d12704586684e2;hb=b2d31bc42a7694c671186081ee0cac077a188b99;hpb=01cf7d5f4392df0933e56a54b1ff607d2dd2ed13 diff --git a/src/include/core/plugin.h b/src/include/core/plugin.h index b12af78..6574330 100644 --- a/src/include/core/plugin.h +++ b/src/include/core/plugin.h @@ -434,6 +434,20 @@ sdb_timeseries_t * sdb_plugin_fetch_timeseries(const char *type, const char *id, sdb_timeseries_opts_t *opts); +/* + * sdb_plugin_describe_timeseries: + * Fetch information about the time-series identified by 'id' from a backend + * data-store of the specified 'type'. The type has to match an existing + * time-series fetcher callback's name. The identifier is passed through to + * the callback which then needs to make sense of it. + * + * Returns: + * - a time-series information object on success + * - NULL else + */ +sdb_timeseries_info_t * +sdb_plugin_describe_timeseries(const char *type, const char *id); + /* * sdb_plugin_query: * Query the store using the query specified by 'ast'. The result will be