summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2462066)
raw | patch | inline | side by side (parent: 2462066)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 1 Aug 2013 23:34:05 +0000 (16:34 -0700) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 1 Aug 2013 23:34:05 +0000 (16:34 -0700) |
There is no need to expose this data-type.
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 1dcecaae363296190c65a4cfa47be4893563af80..8e41186f18fbbf4bd2d8d0d48cd80ace520b398a 100644 (file)
--- a/src/core/store.c
+++ b/src/core/store.c
const sdb_service_t *svc = (const sdb_service_t *)obj;
sdb_service_t *new;
- new = sdb_service_create(svc->hostname, obj->name);
+ new = SDB_SVC(sdb_object_create(obj->name, sdb_service_type,
+ svc->hostname));
if (! new)
return NULL;
return status;
} /* sdb_store_attribute */
-sdb_service_t *
-sdb_service_create(const char *hostname, const char *name)
-{
- sdb_object_t *obj;
-
- if ((! hostname) || (! name))
- return NULL;
-
- obj = sdb_object_create(name, sdb_service_type, hostname);
- if (! obj)
- return NULL;
- return SDB_SVC(obj);
-} /* sdb_service_create */
-
int
sdb_store_service(const sdb_service_t *svc)
{
index 143fa7e54409a979aea959f5bbe4432d4473576b..14cb7c03cb36511c16bad98b4c213d12bc877083 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
int
sdb_store_attribute(const sdb_attribute_t *attr);
-sdb_service_t *
-sdb_service_create(const char *hostname, const char *name);
-
/*
* sdb_store_service:
* Add/update a store in the store. If the service, identified by its name,