diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-11-30 18:47:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-11-30 18:47:05 +0000 |
commit | 97e01009d69b8fbebfebf68f51e3d126d0ed43fc (patch) | |
tree | 02e8b836c3a9d89806f3e67d4a5fe9f52dbb0061 /database/storage_engine.h | |
parent | Releasing debian version 1.36.1-1. (diff) | |
download | netdata-97e01009d69b8fbebfebf68f51e3d126d0ed43fc.tar.xz netdata-97e01009d69b8fbebfebf68f51e3d126d0ed43fc.zip |
Merging upstream version 1.37.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database/storage_engine.h')
-rw-r--r-- | database/storage_engine.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/database/storage_engine.h b/database/storage_engine.h index 3ed515e0a..b7fb7383a 100644 --- a/database/storage_engine.h +++ b/database/storage_engine.h @@ -5,28 +5,8 @@ #include "rrd.h" -typedef struct storage_engine STORAGE_ENGINE; - -// ------------------------------------------------------------------------ -// function pointers for all APIs provided by a storge engine -typedef struct storage_engine_api { - STORAGE_METRIC_HANDLE *(*init)(RRDDIM *rd, STORAGE_INSTANCE *instance); - void (*free)(STORAGE_METRIC_HANDLE *); - struct rrddim_collect_ops collect_ops; - struct rrddim_query_ops query_ops; -} STORAGE_ENGINE_API; - -struct storage_engine { - RRD_MEMORY_MODE id; - const char* name; - STORAGE_ENGINE_API api; -}; - -extern STORAGE_ENGINE* storage_engine_get(RRD_MEMORY_MODE mmode); -extern STORAGE_ENGINE* storage_engine_find(const char* name); - // Iterator over existing engines -extern STORAGE_ENGINE* storage_engine_foreach_init(); -extern STORAGE_ENGINE* storage_engine_foreach_next(STORAGE_ENGINE* it); +STORAGE_ENGINE* storage_engine_foreach_init(); +STORAGE_ENGINE* storage_engine_foreach_next(STORAGE_ENGINE* it); #endif |