index cf4ecbbb6f1155444a451bf57535bf536704098e..100aadf260700bdbb0c77f59c16cfedd0ca50048 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
#include "sysdb.h"
#include "core/object.h"
+#include "core/data.h"
#include "core/time.h"
#include "utils/llist.h"
#include "utils/strbuf.h"
int
sdb_store_host(const char *name, sdb_time_t last_update);
+/*
+ * sdb_store_has_host:
+ * sdb_store_get_host:
+ * Query the store for a host by its (canonicalized) name.
+ *
+ * sdb_store_get_host increments the ref count of the host object. The caller
+ * needs to deref it when no longer using it.
+ */
_Bool
sdb_store_has_host(const char *name);
+sdb_store_base_t *
+sdb_store_get_host(const char *name);
+
/*
* sdb_store_attribute:
* Add/update a host's attribute in the store. If the attribute, identified by
* - a negative value on error
*/
int
-sdb_store_attribute(const char *hostname, const char *key, const char *value,
+sdb_store_attribute(const char *hostname,
+ const char *key, const sdb_data_t *value,
sdb_time_t last_update);
/*