1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00

r13823: make async_wait part of the modules ops

This commit is contained in:
Simo Sorce
2006-03-03 20:01:19 +00:00
committed by Gerald (Jerry) Carter
parent 0db616ef59
commit b4202cf030
8 changed files with 22 additions and 19 deletions

View File

@@ -278,7 +278,7 @@ int ldb_load_modules(struct ldb_context *ldb, const char *options[])
#define FIND_OP(module, op) do { \
module = module->next; \
while (module && module->ops->op == NULL) module = module->next; \
if (module == NULL) return LDB_ERR_OTHER; \
if (module == NULL) return LDB_ERR_OPERATIONS_ERROR; \
} while (0)
@@ -324,3 +324,9 @@ int ldb_next_del_trans(struct ldb_module *module)
FIND_OP(module, del_transaction);
return module->ops->del_transaction(module);
}
int ldb_next_async_wait(struct ldb_module *module, struct ldb_async_handle *handle, enum ldb_async_wait_type type)
{
FIND_OP(module, async_wait);
return module->ops->async_wait(module, handle, type);
}