summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-21 22:18:32 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-22 12:47:53 +1100
commitc5de880c409224889c30837b76fb2fdaf31c02e0 (patch)
tree1917aa84d3955da58c6af88bc58cdd5015e1009b /source4/lib/ldb/include
parentc9838f0e135dc8d1aa46eb86e6fbc8a82c4ada3a (diff)
downloadsamba-c5de880c409224889c30837b76fb2fdaf31c02e0.tar.gz
samba-c5de880c409224889c30837b76fb2fdaf31c02e0.tar.bz2
samba-c5de880c409224889c30837b76fb2fdaf31c02e0.zip
s4-ldb: ldb_oom() for modules
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb_module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index 6061c4d240..977d485ada 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -68,6 +68,7 @@ void ldb_debug_add(struct ldb_context *ldb, const char *fmt, ...) PRINTF_ATTRIBU
void ldb_debug_end(struct ldb_context *ldb, enum ldb_debug_level level);
#define ldb_oom(ldb) ldb_debug_set(ldb, LDB_DEBUG_FATAL, "ldb out of memory at %s:%d\n", __FILE__, __LINE__)
+#define ldb_module_oom(module) ldb_oom(ldb_module_get_ctx(module))
/* The following definitions come from lib/ldb/common/ldb.c */