mirror of
https://github.com/logos-storage/easylibstorage.git
synced 2026-02-10 03:33:07 +00:00
chore: use new interface for synchronous calls
This commit is contained in:
parent
159aeb531d
commit
0777c145ea
@ -229,8 +229,7 @@ int e_storage_close(STORAGE_NODE node) {
|
||||
int e_storage_destroy(STORAGE_NODE node) {
|
||||
if (!node)
|
||||
return RET_ERR;
|
||||
resp *r = resp_alloc();
|
||||
return call_wait(storage_destroy(node, (StorageCallback) on_complete, r), r, NULL);
|
||||
return storage_destroy(node);
|
||||
}
|
||||
|
||||
char *e_storage_spr(STORAGE_NODE node) {
|
||||
|
||||
@ -47,12 +47,9 @@ int storage_close(void *ctx, StorageCallback callback, void *userData) {
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
int storage_destroy(void *ctx, StorageCallback callback, void *userData) {
|
||||
int storage_destroy(void *ctx) {
|
||||
if (!ctx)
|
||||
return RET_ERR;
|
||||
if (callback) {
|
||||
callback(RET_OK, "destroyed", 9, userData);
|
||||
}
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user