File: tdb_logging_func.diff

package info (click to toggle)
samba 2%3A4.23.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,052 kB
  • sloc: ansic: 2,006,990; python: 272,597; sh: 72,208; xml: 51,608; perl: 36,090; makefile: 6,353; yacc: 5,320; exp: 1,582; lex: 1,504; cpp: 1,224; awk: 589; java: 119; csh: 58; pascal: 54; sed: 45; asm: 30
file content (30 lines) | stat: -rw-r--r-- 1,354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Author: Jelmer Vernooij <jelmer@samba.org>
Status: Not forwarded upstream
Description: Provide public symbol tdb_logging_function removed upstream without major version change. (bug #511011)

diff -ur tdb-1.2.9/lib/tdb/ABI/tdb-1.2.1.sigs tdb-1.2.9+git20120207.new/lib/tdb/ABI/tdb-1.2.1.sigs
--- tdb-1.2.9/lib/tdb/ABI/tdb-1.2.1.sigs	2012-02-07 15:07:35.000000000 +0100
+++ tdb-1.2.9+git20120207.new/lib/tdb/ABI/tdb-1.2.1.sigs	2012-02-07 15:23:51.000000000 +0100
@@ -48,6 +48,7 @@
 tdb_lockall_read_nonblock: int (struct tdb_context *)
 tdb_lockall_unmark: int (struct tdb_context *)
 tdb_log_fn: tdb_log_func (struct tdb_context *)
+tdb_logging_function: void tdb_logging_function(struct tdb_context *, tdb_log_func)
 tdb_map_size: size_t (struct tdb_context *)
 tdb_mmap: void (struct tdb_context *)
 tdb_munmap: int (struct tdb_context *)
diff -ur tdb-1.2.9/lib/tdb/common/open.c tdb-1.2.9+git20120207.new/lib/tdb/common/open.c
--- tdb-1.2.9/lib/tdb/common/open.c	2012-02-07 15:07:35.000000000 +0100
+++ tdb-1.2.9+git20120207.new/lib/tdb/common/open.c	2012-02-07 15:23:51.000000000 +0100
@@ -539,6 +539,11 @@
         tdb->log = *log_ctx;
 }
 
+_PUBLIC_ void tdb_logging_function(struct tdb_context *tdb, tdb_log_func fn)
+{
+	tdb->log.log_fn = fn;
+}
+
 _PUBLIC_ void *tdb_get_logging_private(struct tdb_context *tdb)
 {
 	return tdb->log.log_private;