Code

store: Consider objects too old if the new timestamp matches the old.
[sysdb.git] / src / core / store-private.h
index 6af3c8e5fb8c08e59002308e45fe4e4d9ea665be..eea43164fed967c4b4e2bdec92e426c10d56e3d0 100644 (file)
@@ -50,6 +50,8 @@ struct sdb_store_obj {
        /* common meta information */
        sdb_time_t last_update;
        sdb_time_t interval; /* moving average */
+       char **backends;
+       size_t backends_num;
        sdb_store_obj_t *parent;
 };
 #define STORE_OBJ(obj) ((sdb_store_obj_t *)(obj))
@@ -88,8 +90,8 @@ typedef struct {
  * conditionals
  */
 
-/* compares a store object using the specified conditional */
-typedef int (*cmp_cb)(sdb_store_obj_t *, sdb_store_cond_t *);
+/* compares a host using the specified conditional */
+typedef int (*cmp_cb)(sdb_host_t *, sdb_store_cond_t *);
 
 struct sdb_store_cond {
        sdb_object_t super;