summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7166169)
raw | patch | inline | side by side (parent: 7166169)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 24 Jul 2013 01:30:13 +0000 (18:30 -0700) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 24 Jul 2013 01:30:13 +0000 (18:30 -0700) |
src/core/store.c | patch | blob | history | |
src/include/core/store.h | patch | blob | history |
diff --git a/src/core/store.c b/src/core/store.c
index 64e9f64064c50956b6afe56ed4dc35f5d9e5b72b..92f3e510b9bccd6c57076bfbbf920c09c9754fbf 100644 (file)
--- a/src/core/store.c
+++ b/src/core/store.c
const sdb_host_t *host = (const sdb_host_t *)obj;
sdb_host_t *new;
- new = sdb_host_create(obj->name);
+ new = SDB_HOST(sdb_object_create(obj->name, sdb_host_type));
if (! new)
return NULL;
* public API
*/
-sdb_host_t *
-sdb_host_create(const char *name)
-{
- sdb_object_t *obj;
-
- if (! name)
- return NULL;
-
- obj = sdb_object_create(name, sdb_host_type);
- if (! obj)
- return NULL;
- return SDB_HOST(obj);
-} /* sdb_host_create */
-
int
sdb_store_host(const sdb_host_t *host)
{
index fb79b39fe089cf58f00eb7b99b702cbaa06e077e..22b13157cfb72772501206c698aae949ce00c4c1 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
* objects */
#define _last_update super.last_update
-sdb_host_t *
-sdb_host_create(const char *name);
-
/*
* sdb_store_host:
* Add/update a host in the store. If the host, identified by its name,