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=5a26c39fb78b10f503667b9060e4d20f01416746;hp=6c4a2e16cfdf674c2884f560ac158ef7836733d3;hb=7df1cbe4d58dd82f9ea323647bedf18e62ddb965;hpb=562eaff4241f9b2428fdec9e26a10f41f681053d diff --git a/src/include/core/plugin.h b/src/include/core/plugin.h index 6c4a2e1..5a26c39 100644 --- a/src/include/core/plugin.h +++ b/src/include/core/plugin.h @@ -240,11 +240,12 @@ sdb_plugin_register_log(const char *name, sdb_plugin_log_cb callback, sdb_object_t *user_data); /* - * sdb_plugin_register_ts_fetcher: - * Register a "time-series fetcher" function to be called whenever retrieving - * a time-series from a data-store. The callback will receive an identifier - * describing where to retrieve the data from (e.g. a filename or some kind of - * URL) and options which further describe the query. + * sdb_plugin_register_timeseries_fetcher: + * Register a "time-series fetcher" to be called whenever retrieving a + * time-series from a data-store or information about it. The fetch callback + * will receive an identifier describing where to retrieve the data from (e.g. + * a filename or some kind of URL) and options which further describe the + * query. * * The name is used literally (without prepending the plugin name) to look up * the appropriate fetcher callback. @@ -258,6 +259,9 @@ sdb_plugin_register_log(const char *name, sdb_plugin_log_cb callback, int sdb_plugin_register_ts_fetcher(const char *name, sdb_plugin_fetch_ts_cb callback, sdb_object_t *user_data); +int +sdb_plugin_register_timeseries_fetcher(const char *name, + sdb_timeseries_fetcher_t *fetcher, sdb_object_t *user_data); /* * sdb_plugin_register_writer: