1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

170 Commits

Author SHA1 Message Date
Andrew Tridgell
dcbba583d9 s4-event: added s4_event_context_set_default()
we're still not weaned off event_context_find()
2010-01-08 13:03:02 +11:00
Andrew Kroeger
b21656f09a s4:tevent: Increase trace debug level to 50.
The sheer volume of messages generated by tevent when the trace level is set to
10 makes it difficult to debug issues in a level 10 log.  Increasing this to
50 allows tevent tracing to be enabled if needed, but otherwise keeps the extra
chatter out of a level 10 log.
2009-05-27 07:58:07 +10:00
Stefan Metzmacher
a3d5d8378c s4:events: allow nested events until we fixed all code to avoid them
metze
2009-03-12 14:21:25 +01:00
Stefan Metzmacher
2bd8cacf0e s4:lib/events: map TEVENT_DEBUG_TRACE to debug level 10
metze
2009-02-25 15:05:50 +01:00
Jelmer Vernooij
d6497aa089 Stop installing events.h - it contains a broken include itself and
should be considered internal now.
2009-01-28 17:06:18 +01:00
Stefan Metzmacher
f3ac9ec8b3 s4:events: don't trigger \n in debug messages two times
metze
2009-01-08 15:59:09 +01:00
Stefan Metzmacher
268f3e93a4 s4:lib/events: remove unused events_internal.h
external users need to use tevent_internal.h anyway

metze
2009-01-02 18:16:55 +01:00
Stefan Metzmacher
34cc50cb63 s4:lib/events: convert to use tevent_* functions instead of compat macros
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
25387d8942 s4:lib/events: deprecate event_context_find()
metze
2009-01-02 18:16:49 +01:00
Stefan Metzmacher
3f8f99eaec s4:tevent: move event_context_find() to tevent_s4.c
metze
2009-01-02 18:16:48 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
		mv $f.tmp $f
	done
done

metze
2008-12-29 20:46:40 +01:00
Stefan Metzmacher
7bf5768a52 lib/tevent: rename event_* => tevent_* in the header file
We have compat macros to keep the callers happy.

metze
2008-12-29 08:42:00 +01:00
Kai Blin
ef1e9ed941 Fix some tevent includes, trying to fix the build 2008-12-26 14:11:10 +01:00
Jelmer Vernooij
bd64688c6a Fix more compiler warnings in various places. 2008-12-23 22:57:11 +01:00
Jelmer Vernooij
465f78021e Move Samba4-specific file out of common libtevent. 2008-12-23 19:28:22 +01:00
Jelmer Vernooij
071a71e27f Specify explicit path to tevent.h, compilation breaks without it for me. 2008-12-19 22:03:11 +01:00
Stefan Metzmacher
46eda79090 s4:lib/tevent: add lib/events/ compat and let things compile
metze
2008-12-17 13:31:29 +01:00
Stefan Metzmacher
504f8816e3 s4:lib/events: move to toplevel directory as lib/tevent/
This commit will not compile on its own.

metze
2008-12-17 13:31:28 +01:00
Jelmer Vernooij
87ec1d2532 Make sure prototypes are always included, make some functions static and
remove some unused functions.
2008-10-20 18:59:51 +02:00
Simo Sorce
474de0f217 Fix libevents standalone build
Make sure to build against libtalloc.a and not individual talloc objects,
so that the library can be also built against libtalloc.so and use it as
a shared library instead of statically compiling talloc.
Also add shared-build target to the events library.
Useful to build multiple standalone libraries that depend on each other
without having to install them to the final install dir during the build.
2008-09-19 18:08:12 -04:00
Jelmer Vernooij
6f6e42ce60 Generate with 1.3.36. 2008-09-18 23:55:50 +02:00
Andrew Tridgell
b38045f9da fixd a bug in the signal handling code - we could get phantom signals
(signum 64)
(This used to be commit af7fb2e38ba27cf8058eb1cef1f96bbc7b19849f)
2008-07-24 11:48:27 +10:00
Andrew Bartlett
b49c30dd39 Remove C++ keywords from events.h header.
Andrew Bartlett
(This used to be commit 7ca421eb32bed3c400f863b654712d922c82bfb9)
2008-07-14 18:47:10 +10:00
Stefan Metzmacher
27970ccc30 lib/events: build as MERGED_OBJ instead of STATIC_LIBRARY
metze
(This used to be commit a2a506ba2e044699d147486e987b11d839373784)
2008-06-30 09:25:29 +02:00
Jelmer Vernooij
4f4949a8f4 Only try to detect the events lib dir if it wasn't set earlier.
(This used to be commit 3f48f68800176d992a1bd9b6349f22ec152fc34a)
2008-06-26 10:11:49 +02:00
Volker Lendecke
2d65e5a60d Include events_util.h in events_aio.c
Without this, linking fails with DLIST_ADD and DLIST_REMOVE being undefined

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 87385e4c873f80956dc1c43424dd4f49a993586c)
2008-06-19 14:23:13 +02:00
Jelmer Vernooij
8259cc5926 Make sure events pc file gets installed.
(This used to be commit e12c0b61573f27969a79d4c07a8fd42f6c931d7e)
2008-06-17 13:42:19 +02:00
Jelmer Vernooij
c13e478ab8 Avoid including events_util.h in events_internal.h since the latter is
installed.
(This used to be commit 7a7e8f30dd3e5bfad788a098872afa8263321cbb)
2008-06-17 02:21:46 +02:00
Jelmer Vernooij
7a2d162414 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-fixmodulesdir
(This used to be commit 1659a572c49b2f9cf336b27ec1c1bec1b86d688e)
2008-06-15 19:18:48 +02:00
Jelmer Vernooij
7cb41fde3c Fix standalone ldb build.
(This used to be commit 4ac91e301455721b76f7f456bc50c5c6e47c05d3)
2008-06-15 19:16:35 +02:00
Simo Sorce
cac6ea8c5e Fix events_aio
(This used to be commit d5525b79649ff75d6e9e853615949e4fbe9e0b6e)
2008-06-14 15:55:14 -04:00
Simo Sorce
2daf2897d5 Use a custom init function for samba4 that sets a samba4
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-06-14 13:00:53 -04:00
Simo Sorce
2aba410791 This patch make it possible to build the events library completely
standalone with no ties to internal samba4 functions
Samba4 itself just uses the plain library, compatibility glue is
in events_s4.c only
(This used to be commit 7109b6a5a19eb2dbef4259104858b171298bad6e)
2008-06-14 11:59:19 -04:00
Jelmer Vernooij
73b789b6d2 Add docstrings to a couple more python modules.
(This used to be commit b4560c90e5e8d3a35367d3a21d361dc4c9c0de23)
2008-05-24 04:01:57 +02:00
Jelmer Vernooij
37d000d052 Add docstrings to events python module.
(This used to be commit 7d43d2c7c91c86246b9bb2ae7eda050079767e7a)
2008-05-23 00:38:02 +02:00
Jelmer Vernooij
5ce59419a0 Fix CFLAGS for SWIG files.
(This used to be commit 8ee4f075046e0b181ec8a4ac1eaf3ea5621a56bf)
2008-05-22 02:13:26 +02:00
Jelmer Vernooij
6b3e2c308a Fix events test.
(This used to be commit 0fae6f11081cff7846319175cfec95fa3911571c)
2008-05-22 01:17:30 +02:00
Jelmer Vernooij
49706ab19b Move more modules inside of the samba package.
(This used to be commit 9b39e99f48266a54ed0b8890c2efde218b4b118a)
2008-05-21 23:59:34 +02:00
Jelmer Vernooij
b1fc7bab11 Move some python files into the samba package.
(This used to be commit ed38c668cdbe10966e46bad97301122eea8001d0)
2008-05-21 21:50:56 +02:00
Jelmer Vernooij
82bcf967b7 Move CFLAGS overrides for SWIG modules to Makefile.
(This used to be commit 58665a8a8e4b10435aebbf2c95b6a8e50db232d6)
2008-05-21 21:32:53 +02:00
Jelmer Vernooij
2914b0ca04 Remove support for .py files from smb_build - deal with it only in the makefiles.
(This used to be commit b865249efaa58d0fc87fa25491fda3b970af81c3)
2008-05-21 21:24:48 +02:00
Jelmer Vernooij
721332411a Regenerate with newer version of swig.
(This used to be commit 034c68bea934db87bce13a750c17fb1bd2bbe3b6)
2008-05-21 14:29:05 +02:00
Jelmer Vernooij
333c169529 Use variables for source directory in remaining subsystems.
(This used to be commit 6b6b2196a8a8d9e741f5c399185ded7a16938da0)
2008-05-18 20:30:46 +02:00
Stefan Metzmacher
d5d9476c35 Revert "lib/events: system/network.h isn't needed"
Somehow this breaks 'make test'...

This reverts commit 59faf3bf670140784d5698bbdc8b86afe8e188ec.

metze
(This used to be commit ece9df0875a32f76af5af913b6a6cdd8eacf0280)
2008-05-14 17:28:42 +02:00
Stefan Metzmacher
3b6042e192 lib/events: system/network.h isn't needed
metze
(This used to be commit 59faf3bf670140784d5698bbdc8b86afe8e188ec)
2008-05-14 15:20:17 +02:00
Simo Sorce
136f369b23 Make it possible to build libevents standalone.
(This used to be commit 10415bb738d51afdebbfeae976923e086805ae84)
2008-05-14 00:03:01 -04:00
Jelmer Vernooij
348109e688 Fix dependency on loadparm.
(This used to be commit 018ee187ffbfd77aa0d5f5da6c3512ea6b37a746)
2008-05-11 03:31:38 +02:00
Jelmer Vernooij
cc9c4aaa8d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Conflicts:

	source/Makefile
	source/auth/config.mk
	source/auth/gensec/config.mk
	source/build/m4/public.m4
	source/build/make/python.mk
	source/build/make/rules.mk
	source/build/smb_build/header.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/dsdb/samdb/ldb_modules/config.mk
	source/kdc/config.mk
	source/lib/events/config.mk
	source/lib/events/events.c
	source/lib/ldb/config.mk
	source/lib/nss_wrapper/config.mk
	source/lib/policy/config.mk
	source/lib/util/config.mk
	source/libcli/smb2/config.mk
	source/libnet/config.mk
	source/librpc/config.mk
	source/nbt_server/config.mk
	source/ntptr/ntptr_base.c
	source/ntvfs/posix/config.mk
	source/ntvfs/sysdep/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/rpc_server/service_rpc.c
	source/scripting/ejs/config.mk
	source/scripting/python/config.mk
	source/smb_server/config.mk
	source/smbd/server.c
	source/torture/config.mk
	source/torture/smb2/config.mk
	source/wrepl_server/config.mk
(This used to be commit 13bbd420681519894a4036729c43273912c9b402)
2008-04-25 10:04:20 +01:00
Simo Sorce
89cac520d0 Remove temporary debug statement
(This used to be commit 10780e638af8afc3ffa261255200779aea732694)
2008-04-22 16:40:44 -04:00
Simo Sorce
4e83011f72 Remove more event_context_init() uses from function calls within deep down the code.
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-04-21 18:12:33 -04:00