X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fplugins%2Fstore%2Fmemory.c;fp=src%2Fplugins%2Fstore%2Fmemory.c;h=67a795b0ef3d7d1d6ba362ef7fc62fc6d9286004;hb=b54d9fff4bc9e70efe83123403a4c9f935efb74e;hp=3cbc1e87c1c2ecd10d858539059b1d0fff98bd64;hpb=e98b8be3912212943863522fa466edc131993d70;p=sysdb.git diff --git a/src/plugins/store/memory.c b/src/plugins/store/memory.c index 3cbc1e8..67a795b 100644 --- a/src/plugins/store/memory.c +++ b/src/plugins/store/memory.c @@ -43,19 +43,19 @@ SDB_PLUGIN_MAGIC; static int mem_init(sdb_object_t *user_data) { - sdb_store_t *store = SDB_STORE(user_data); + sdb_memstore_t *store = SDB_MEMSTORE(user_data); if (! store) { sdb_log(SDB_LOG_ERR, "store: Failed to allocate store"); return -1; } if (sdb_plugin_register_writer("memstore", - &sdb_store_writer, SDB_OBJ(store))) { + &sdb_memstore_writer, SDB_OBJ(store))) { sdb_object_deref(SDB_OBJ(store)); return -1; } if (sdb_plugin_register_reader("memstore", - &sdb_store_reader, SDB_OBJ(store))) { + &sdb_memstore_reader, SDB_OBJ(store))) { sdb_object_deref(SDB_OBJ(store)); return -1; } @@ -73,7 +73,7 @@ int sdb_module_init(sdb_plugin_info_t *info) { /* store singleton */ - static sdb_store_t *store; + static sdb_memstore_t *store; sdb_plugin_set_info(info, SDB_PLUGIN_INFO_DESC, "in-memory object store"); sdb_plugin_set_info(info, SDB_PLUGIN_INFO_COPYRIGHT, @@ -83,7 +83,7 @@ sdb_module_init(sdb_plugin_info_t *info) sdb_plugin_set_info(info, SDB_PLUGIN_INFO_PLUGIN_VERSION, SDB_VERSION); if (! store) { - if (! (store = sdb_store_create())) { + if (! (store = sdb_memstore_create())) { sdb_log(SDB_LOG_ERR, "store::memory plugin: " "Failed to create store object"); return -1;