Code

store.h: Reuse the sdb_metric_store_t type for a metric's store field.
authorSebastian Harl <sh@tokkee.org>
Sun, 4 Sep 2016 13:22:35 +0000 (09:22 -0400)
committerSebastian Harl <sh@tokkee.org>
Sun, 4 Sep 2016 13:22:35 +0000 (09:22 -0400)
src/include/core/store.h

index 5f60c8d..7a9a209 100644 (file)
@@ -133,10 +133,7 @@ typedef struct {
 typedef struct {
        const char *hostname;
        const char *name;
-       struct {
-               const char *type;
-               const char *id;
-       } store;
+       sdb_metric_store_t store;
 
        sdb_time_t last_update;
        sdb_time_t interval;