s4-ldb: ldb_oom() for modules
authorAndrew Tridgell <tridge@samba.org>
Wed, 21 Oct 2009 11:18:32 +0000 (22:18 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 22 Oct 2009 01:47:53 +0000 (12:47 +1100)
source4/lib/ldb/include/ldb_module.h

index 6061c4d240ab2a1cec1a2000e38bbbf664f4ed8a..977d485adab5da459ce74356c318951b2539da20 100644 (file)
@@ -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  */