Code

store: Let sdb_store_json_formatter_t inherit from sdb_object_t.
[sysdb.git] / src / include / core / store.h
index 15f435fefdc6136a83fdb2e53a004a5cac82e8a9..289bc2f88684ef6a82be2d63935d1b5bcb85d22a 100644 (file)
@@ -144,6 +144,9 @@ typedef struct sdb_store_matcher sdb_store_matcher_t;
 /*
  * A JSON formatter converts stored objects into the JSON format.
  * See http://www.ietf.org/rfc/rfc4627.txt
+ *
+ * A JSON formatter object inherits from sdb_object_t and, thus, may safely be
+ * cast to a generic object.
  */
 struct sdb_store_json_formatter;
 typedef struct sdb_store_json_formatter sdb_store_json_formatter_t;
@@ -246,16 +249,12 @@ void
 sdb_store_clear(void);
 
 /*
- * 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.
+ * The function 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_obj_t *
 sdb_store_get_host(const char *name);