Michael Adam
1e2393c178
tevent:mksigs: ignore struct forward declarations.
...
Michael
2009-09-11 15:31:27 +02:00
Michael Adam
1f1a900dd7
tevent:mksyms: allow characters after closing functions parenthesis.
...
Michael
2009-09-11 15:31:26 +02:00
Michael Adam
095a11226e
tevent:mksyms: allow double pointer return value of functions.
...
Michael
2009-09-11 15:31:26 +02:00
Michael Adam
4fb82727b1
tevent: add abi_checks to "make test"
...
Michael
2009-09-11 15:31:25 +02:00
Michael Adam
cf67b1bff7
tevent: remove filese generated by "make abi_checks" in "make clean".
...
Michael
2009-09-11 15:31:24 +02:00
Michael Adam
40c670f8cb
tevent: add a make target "make abi_checks"
...
Michael
2009-09-11 15:31:24 +02:00
Michael Adam
f0e276cff8
tevent: move the original abi_checks script to script/abi_checks_gcc.sh
...
Michael
2009-09-11 15:31:24 +02:00
Michael Adam
31ee072934
tevent: add script/abi_checks.sh. check for abi changes without gcc magic.
...
USAGE: abi_checks.sh LIBRARY_NAME header1 [header2 ...]
This creates symbol signature lists using the mksyms and mksigs scripts
and compares them with the checked in lists.
Michael
2009-09-11 15:31:23 +02:00
Michael Adam
ffc72b9207
tevent: add script to extract signatures from header files.
...
This produces output like the output gcc produces when
invoked with the -aux-info switch.
Run like this: cat include/tevent.h | ./script/mksigs.pl
This simple parser is probably too coarse to handle all
possible header files, but it treats tevent.h correctly...
Michael
2009-09-11 15:31:23 +02:00
Michael Adam
4530fcd820
tevent: add scripts to extract library symbols (exports file) from headers
...
Michael
2009-09-11 15:31:23 +02:00
Simo Sorce
ab6e82910a
Add release script for tevent
2009-09-04 18:20:29 -04:00
Stefan Metzmacher
1bb68402a2
tevent: change version to 0.9.8 after some critical bugs have been fixed
...
metze
2009-09-04 13:01:06 +02:00
Jeremy Allison
c97698e762
Another part of the fix for bug 6651 - smbd SIGSEGV when breaking oplocks.
...
SA_INFO_QUEUE_COUNT *MUST* be a power of 2, in order for the ring buffer
wrap to work correctly at the 32 bit boundary. Thanks to Petr
Vandrovec <petr@vandrovec.name> for this.
2009-09-03 07:38:21 -07:00
Volker Lendecke
23abcd2318
tevent: Fix a segfault upon the first signal
...
When the first signal arrives, tevent_common_signal_handler() crashed: "ev" is
initialized to NULL, so the first "write(ev->pipe_fds[1], &c, 1);" dereferences
NULL.
Rusty, Tridge, please check. Also, can you tell me a bit more about the
environment you tested this in? I'd be curious to see where this survived.
Thanks,
Volker
2009-08-29 09:49:08 +02:00
Rusty Russell
76d91156c8
lib/tevent: close pipe_fds on event_context destruction
...
The "hack_fds" were never closed before; now they're inside event_context
they should be closed when that is destroyed.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 14:10:22 +10:00
Rusty Russell
be4ac22784
lib/tevent: handle tevent_common_add_signal on different event contexts.
...
I don't know if this is a problem in real life.
The code assumes there's only one tevent_context; all signals will notify
the first event context. That's counter-intuitive if you ever use more
than one, and there's nothing else in this code which prevents it AFAICT.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 14:09:09 +10:00
Rusty Russell
6abb637e3e
lib/tevent: fix race with signals and tevent_common_add_signal
...
We carefully preserve the old signal handler, but we replace it before
we've set up everything; in particular, if we fail setting up the
pipe_hack we could write a NUL char to stdout (fd 0), instead of
calling the old signal handler.
Replace the signal handler as the very last thing we do.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 14:03:41 +10:00
Rusty Russell
4279879c98
lib/tevent: remove spectacularly complicated manual subtraction
...
To be completely honest, I don't quite know whether to laugh or cry at
this one:
1 + (0xFFFFFFFF & ~(s.seen - s.count))
== 1 + (~(s.seen - s.count)) # s.seen, s.count are uint32_t
== s.count - s.seen # -A == ~A + 1
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-08-28 13:08:01 +10:00
Günther Deschner
965a079535
tevent: avoid using reserved c++ word.
...
Guenther
2009-08-24 14:31:02 +02:00
Jeremy Allison
ba52f18bfe
Fix for bug 6651 - smbd SIGSEGV when breaking oplocks.
...
Based on a patch submitted by Petr Vandrovec <petr@vandrovec.name>.
Multiple pending signals with siginfo_t's weren't being handled correctly
leading to smbd abort with kernel oplock signals.
Jeremy
2009-08-21 15:07:25 -07:00
Michael Adam
5270efab1a
tevent: fix a comment
...
Michael
2009-08-19 11:39:44 +02:00
Stefan Metzmacher
97a1ed53ca
tevent: change version to 0.9.7 after adding tevent_req_cancel infrastructure
...
metze
2009-08-17 09:25:44 +02:00
Stefan Metzmacher
45e4be0d96
tevent: add tevent_req_cancel() infrastructure
...
This offers a generic way for callers to cancel an
async request.
metze
2009-08-17 09:25:44 +02:00
Stefan Metzmacher
95c3d3b5d8
tevent: add some more doxygen comments for tevent_req functions
...
metze
2009-08-15 10:46:36 +02:00
Stefan Metzmacher
39684d2cbe
tevent: try to fix the build on QNX qnx18 6.4.1 it doesn't have SA_RESTART defined
...
metze
2009-07-16 11:41:28 +02:00
Jeremy Allison
5927ca7067
Change to talloc_zero_size instead of extra memset.
...
Jeremy.
2009-07-14 16:54:01 -07:00
Jeremy Allison
7be1d727a3
When tallocing a memory block for the state in a tevent_req struct,
...
ensure it's zeroed out. Vl & Metze please check.
Jeremy.
2009-07-14 16:42:21 -07:00
Simo Sorce
7119241c0d
Sort the signature files
2009-07-03 08:45:30 -04:00
Simo Sorce
30b2014a01
Expose functions need by backend writers
...
move publicly needed structures and functions in the public header.
Stop installing internal headers.
Update the signature and exports files with the new exposed
function.
2009-07-03 08:45:30 -04:00
Simo Sorce
c92505817d
Revert "For tevent to install tevent_util.h"
...
This reverts commit b112cc5503
.
tevent_util.h is a private header. Must not be installed.
2009-06-18 07:56:51 -04:00
Eric Sandall
b112cc5503
For tevent to install tevent_util.h
...
Patch for bug #6270
This patch is for the future when samba4 builds using external libraries. With
this patch, tevent now installs tevent_util.h which is required by samba4.
2009-06-18 13:49:26 +10:00
Simo Sorce
efccef09ae
Add exports file and abi checker for tevent
...
This is a first attempt at exporting symbols only for public functions
We also provide a rudimentary ABI checker that tries to check that
function signatures are not changed by mistake.
Given our use of macros this is not an API checker.
It's all based on tevent.h contents and the gcc -aux-info option
2009-06-15 16:31:13 -04:00
Volker Lendecke
d0aedeb46e
Increase tevent version for tevent_req_notify_callback()
2009-06-04 17:50:44 +02:00
Volker Lendecke
c6f39b46a7
Add tevent_req_notify_callback
...
This is necessary for requests that have multiple results. Examples would be
SMBEcho and ldap_search.
2009-06-04 17:29:48 +02:00
Jelmer Vernooij
cf9636ea99
tevent/python: Makefile was still trying to build some non AC_SUBST python targets
...
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
2009-05-19 23:33:00 +02:00
Jelmer Vernooij
72b744f38e
tevent: Define TALLOC_FREE() if it's not defined yet, to allow building
...
with released versions of talloc.
2009-05-16 20:31:59 +02:00
Jelmer Vernooij
5065cf70f8
tevent: Remove python module.
...
This module didn't have any functionality that we actually used yet, and
it was quite small.
Tevent is quite low level and perhaps doesn't make much sense to expose
directly as a Python module. It was also causing build problems when used with a
system-tevent. We can always back later if necessary.
2009-05-16 14:56:37 +02:00
Jelmer Vernooij
857c3f8322
tevent: Install tevent_internal.h in the standalone build.
...
This is not ideal, but at least it fixes the build of samba-gtk for now.
I've also added a warning about API guarantees at the top of the header.
2009-05-16 04:14:21 +02:00
Jelmer Vernooij
6230eb94af
Update copies of config.guess and config.sub.
2009-05-16 04:03:12 +02:00
Jelmer Vernooij
06864b4469
tevent: Don't install headers, since we don't install a shared lib
...
either (from Samba).
2009-05-16 01:54:10 +02:00
Stefan Metzmacher
6f7cd213dd
tevent: fix typo async_req_done() => tevent_req_done()
...
metze
2009-05-07 08:09:56 +02:00
Stefan Metzmacher
36e7045340
tevent: fix the nesting logic
...
Only tevent_loop_once and tevent_loop_until() should care
about the nesting level.
This fixes the samba3 printing code where we use tevent_loop_wait()
and don't allow nested events.
We still call the nesting hook for all levels, we need to decide
if we really want this...
metze
2009-03-19 14:39:22 +01:00
Andrew Tridgell
13b6663e23
fixed a logic bug in the tevent nesting code
...
The event nesting code never triggered as nesting.level was never
greater than 1. The main event loop needs to increase the nesting
level by 1.
I also added a paranoia check to the nesting setup call. The API as
currently written cannot support multiple nesting hooks, so we need to
abort if multiple hooks are tried.
2009-03-19 11:21:36 +11:00
Stefan Metzmacher
7d07266ca2
tevent: change version to 0.9.5 after the ABI has changed
...
metze
2009-03-17 20:19:11 +01:00
Stefan Metzmacher
9eaf53d98e
tevent: store the location where a request was finished
...
This is very useful to find bugs.
You can use 'p *req' in gdb to show where
tevent_req_done(), tevent_req_error() or tevent_req_nomem()
was called.
metze
2009-03-17 20:17:01 +01:00
Stefan Metzmacher
3a831e4620
tevent: use an immediate event as trigger for tevent_queue
...
metze
2009-03-17 19:59:09 +01:00
Stefan Metzmacher
4bdf299385
tevent: use an immediate event fot tevent_req_post()
...
Now tevent_req_post() never fails
metze
2009-03-17 19:59:08 +01:00
Stefan Metzmacher
a78cd2a24b
tevent: use TALLOC_FREE() in tevent_req.c
...
metze
2009-03-17 19:59:08 +01:00
Stefan Metzmacher
66886f8966
tevent: add support for immediate events
...
They're like directly triggered timed events,
but you can preallocated them and scheduling them
will not fail.
metze
2009-03-17 19:59:00 +01:00
Stefan Metzmacher
940e61846e
tevent: add tevent_common_loop_wait() helper function and use it
...
tevent_loop_wait should do the same for all backends.
It should loop as long as we have pending events.
metze
2009-03-17 19:58:57 +01:00
Stefan Metzmacher
0139befb91
tevent: check signal events first in event_loop_once
...
We also check for signal events directly before and after
the select/epoll calls.
metze
2009-03-17 19:58:56 +01:00
Stefan Metzmacher
3af7db3dce
tevent: let tevent_loop_once() just run one fd event
...
This makes the logic much simpler for the callers,
and matches the samba3 behavior.
If needed we can add performance tunning for tevent_loop_wait()
later.
metze
2009-03-17 19:58:55 +01:00
Stefan Metzmacher
868f3f5f32
tevent: change version to 0.9.4 as the ABI has changed
...
metze
2009-03-13 15:49:35 +01:00
Tim Prouty
a84f939f4f
tevent: Fix might be unitialized warning
2009-03-12 12:28:13 -07:00
Stefan Metzmacher
cb388882cf
tevent: add tevent_loop_until()
...
This is only a hack for samba4 and should not be used
in new code.
metze
2009-03-12 14:21:26 +01:00
Stefan Metzmacher
7142ef49bd
tevent: add tevent_loop_set_nesting_hook()
...
This is an ugly hack to let the s4 server work arround
some bugs related to nested events and uid changing.
metze
2009-03-12 14:21:26 +01:00
Stefan Metzmacher
06f88fe7a2
tevent: don't allow nested tevent_loop_once() anymore
...
Incompatible caller should use tevent_loop_allow_nesting()
function.
metze
2009-03-12 12:14:18 +01:00
Stefan Metzmacher
9932fd2d9a
tevent: pass __location__ to tevent_loop_once/wait()
...
metze
2009-03-12 12:12:34 +01:00
Stefan Metzmacher
880d9d6d8c
tevent: add tevent_set_abort_fn()
...
metze
2009-03-12 12:04:33 +01:00
Stefan Metzmacher
43a7d48d24
tevent: add tevent_signal_support()
...
Not every tevent backend supports signal events.
metze
2009-03-12 12:04:31 +01:00
Stefan Metzmacher
825949b810
tevent: add tevent_req_callback_data_void() macro
...
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.
metze
2009-03-10 16:44:44 +01:00
Stefan Metzmacher
09d1b2324c
tevent: add tevent_req_received() function
...
This function can be called as last action of a _recv()
function, it destroys the data attached to the tevent_req.
metze
2009-03-10 16:44:44 +01:00
Simo Sorce
67d41d0fc7
Make struct tevent_req opaque
...
Move struct tevent_req in tevent_internal, and ad getters and setters
for private data and the callback function.
This patch also renames 'private_state' into 'data'. What is held in this
pointer is in fact data and not a state like enum tevent_req_state.
Calling it 'state' is confusing.
The functions addedd are:
tevent_req_set_callback() - sets req->async.fn and req->async.private_data
tevent_req_set_print_fn() - sets req->private_print
tevent_req_callback_data() - gets req->async.private_data
tevent_req_data() - gets rea->data
This way it is much simpler to keep API/ABI compatibility in the future.
2009-03-02 11:02:09 -05:00
Jelmer Vernooij
09ac816b36
Merge branch 'master' of git://git.samba.org/samba into teventfix
...
Conflicts:
lib/tevent/pytevent.c
2009-03-01 16:39:35 +01:00
Jelmer Vernooij
235244f4cc
Avoid using tevent_util.h, which won't be available if we use the system
...
tevent.
2009-03-01 16:38:07 +01:00
Stefan Metzmacher
3a1f24f286
tevent: add tevent_queue infrastructure
...
metze
2009-02-26 14:22:12 +01:00
Stefan Metzmacher
e2f37ec106
tevent: add private_print function feature to tevent_req
...
metze
2009-02-25 14:30:55 +01:00
Stefan Metzmacher
13ac0dc456
tevent: add tevent_req_poll() function
...
metze
2009-02-25 14:08:36 +01:00
Volker Lendecke
9e3178e838
Attempt to fix the OpenChange build -- sorry for the break
2009-02-25 11:02:48 +01:00
Volker Lendecke
70814474f5
tevent.h requires bool and uint[16|32|64]_t
2009-02-24 20:40:46 +01:00
Jelmer Vernooij
c9a057bc04
pytevent: Fix include path - tevent_util is not installed.
2009-02-21 19:08:24 +01:00
Stefan Metzmacher
975a881d54
tevent: add tevent_wakeup_send/recv()
...
This can be used as tevent_req based timer event.
metze
2009-02-18 10:31:36 +01:00
Stefan Metzmacher
7f6618a3de
tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()
...
This makes more clear what the function does.
metze
2009-02-18 10:31:35 +01:00
Kai Blin
48b874e376
tevent: Rename ev_timeval* functions to tevent_timeval, export them.
...
Also add tevent_timeval_add() and tevent_timeval_current_ofs()
to help not depending on lub/util/time.c for things that just need tevent
2009-02-17 09:19:31 +01:00
Stefan Metzmacher
406e6d6114
tevent: fix compiler warning in pytevent.c
...
metze
2009-02-16 09:53:49 +01:00
Stefan Metzmacher
6211162d3e
lib/tevent: change to LGPLv3+
...
metze
2009-02-16 08:53:25 +01:00
Volker Lendecke
f0440d0d56
Add missing prototype for "tevent_req_print"
2009-02-14 22:00:44 +01:00
Volker Lendecke
d39849ddcd
Fix a warning and a bug: pipe(2) can fail
2009-02-14 22:00:44 +01:00
Volker Lendecke
01aff219dd
Add two variable assignments to shut up gcc
2009-02-14 22:00:43 +01:00
Stefan Metzmacher
946573aaed
tevent: raise version to 0.9.3
...
- aio events are removed
- tevent_req infrastructure was added
metze
2009-02-13 18:55:21 +01:00
Stefan Metzmacher
113651c517
lib/tevent: add tevent_req infrastructure
...
This is almost a copy of the async_req code,
which will be removed later.
metze
2009-02-13 18:37:01 +01:00
Stefan Metzmacher
f337974ed5
lib/tevent: add tevent_req.c as copy of lib/async_req/async_req.c
...
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
fa2461ae73
lib/tevent: expose ev_timeval_zero() for internal usage
...
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
1d949fe742
lib/tevent: remove broken tevent_aio support
...
It makes no sense to support aio events because,
the current implementation was based on IOCB_CMD_EPOLL_WAIT
which never made it into the main kernel tree.
The native linux aio can be used with select/epoll
using eventfd(), which means we can implement aio
with fd events and implement aio outside of tevent.
metze
2009-02-13 16:02:13 +01:00
Stefan Metzmacher
886df1ac86
lib/tevent: the python bindings don't use swig anymore
...
metze
2009-02-02 15:16:08 +01:00
Stefan Metzmacher
8249a467e3
lib/tevent: s/private/private_data
...
metze
2009-02-02 13:09:18 +01:00
Simo Sorce
de4f7c0787
Do not install private headers
2009-01-30 20:12:50 -05:00
Stefan Metzmacher
84ca20a6b5
lib/tevent: include replace.h in pytevent.c
...
This fixes the build on Tru64.
metze
2009-01-30 19:39:34 +01:00
Simo Sorce
4e0a619701
Fix standalone configure scripts
2009-01-30 01:02:23 -05:00
Stefan Metzmacher
920f8b1568
tevent: change SA_INFO_QUEUE_COUNT from 10 to 100
...
The samba3 aio code requires lp_max_mux() with a default of 50
and the samba3 linux oplock code requires 100.
May we could make the size dynamic later.
metze
2009-01-27 15:28:06 +01:00
Stefan Metzmacher
3347ed7e6e
tevent: rename signal handler functions to start with tevent_common_
...
This makes debugging with gdb easier.
metze
2009-01-20 00:40:40 +01:00
Stefan Metzmacher
5d19187d3d
tevent: use for() loops instead of while() loops
...
metze
2009-01-12 09:23:05 +01:00
Tim Prouty
cd5039b188
tevent: Fix build break
2009-01-11 11:00:50 -08:00
Bo Yang
de4812ea1c
Fix tevent_common_context_destructor to remove all events instead of just the first one
...
Signed-off-by: Bo Yang <boyang@novell.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-01-11 15:26:47 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Stefan Metzmacher
4e7f0a8851
tevent: don't try to dereference fde->event_ctx when the event context doesn't exists anymore
...
metze
2009-01-07 06:36:23 +01:00
Jelmer Vernooij
a97c9bab44
Add dependency to talloc in tevent pc file.
2009-01-06 15:53:50 +01:00
Andrew Bartlett
a7e7fa8490
Ensure libreplace is included into the tevent python bindings
...
Without this, the samba4.tevent.python test fails
Andrew Bartlett
2009-01-06 22:44:45 +11:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Stefan Metzmacher
e83a55c356
tevent: add some debugging for timer events, that mostly matches samba3
...
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
b09718fef2
tevent: add tevent_context destructor that unlinks the events from the context
...
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
e240ca5bdd
tevent: don't crash if te->event_ctx is NULL
...
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
ceac26008c
tevent: keep a linked list of fd_events
...
metze
2009-01-05 22:44:53 +01:00
Stefan Metzmacher
b24924d6a6
tevent: keep a linked list of signal events
...
metze
2009-01-05 22:44:53 +01:00
Stefan Metzmacher
a99f76960d
tevent: make tevent_debug() a noop if ev is NULL
...
metze
2009-01-05 22:44:52 +01:00
Volker Lendecke
6572eff183
Attempt to fix the build on netbsd5
2009-01-05 22:10:25 +01:00
Stefan Metzmacher
beb8b8fc2d
tevent: fix tevent_add_timer() and tevent_add_aio() macros
...
metze
2009-01-05 10:53:39 +01:00
Stefan Metzmacher
033428d7da
tevent: move samba4 stuff from libtevent.m4 to samba.m4
...
metze
2009-01-04 18:57:18 +01:00
Stefan Metzmacher
e058e51d63
tevent: completely initialize tevent_fd structs
...
This fixes crash bugs... I forgot to commit and squash
this to commit e45ed828d0
metze
2009-01-04 09:39:17 +01:00
Stefan Metzmacher
c652b42612
tevent: raise version to 0.9.2 after AUTOCLOSE changes
...
metze
2009-01-03 19:58:55 +01:00
Stefan Metzmacher
67810019a0
tevent: remove TEVENT_FD_AUTOCLOSE feature
...
TEVENT_FD_AUTOCLOSE adds a dependency to SOCKET_WRAPPER,
which is bad. Callers should use tevent_fd_set_close_fn() now.
metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
2c8a10fe88
tevent: remove dependency to SOCKET_WRAPPER via "system/network.h"
...
metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
193eba85a9
tevent: add tevent_fd_set_auto_close()
...
tevent_fd_set_auto_close() is a simple wrapper
arround tevent_fd_set_close_fn() with a callback
that uses plain close(2).
metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e45ed828d0
tevent: add tevent_fd_set_close_fn()
...
Let callers specify a close function
as an alternative to TEVENT_FD_AUTOCLOSE.
metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e928d863e2
tevent: move some common tevent_fd related functions into tevent_fd.c
...
metze
2009-01-03 19:58:50 +01:00
Stefan Metzmacher
1a26b67ee3
tevent: specify argument names for the event handlers
...
metze
2009-01-03 19:58:49 +01:00
Stefan Metzmacher
7dff14df46
tevent: fix standalone make test
...
metze
2009-01-03 19:58:49 +01:00
Stefan Metzmacher
b00f6d169c
tevent: raise version to 0.9.1
...
This 0.9.1 isn't compatible with 0.9.0,
but it makes only sense to raise the major version
after we have reached 1.0.0.
metze
2009-01-03 09:14:23 +01:00
Stefan Metzmacher
73ef1773be
tevent: only provide compat macros if the caller wants them
...
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
2176295b02
tevent: change pytevent to tevent_*
...
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
784b2dc8d0
tevent: use TEVENT_FD_* instead of EVENT_FD_*
...
metze
2009-01-02 18:16:53 +01:00
Stefan Metzmacher
4f04b06ac2
tevent: rename ev_debug_ops => tevent_debug_ops
...
And related changes, but we keep compat macros
metze
2009-01-02 18:16:53 +01:00
Stefan Metzmacher
d79fc2ffcd
tevent: rename events => tevent in tevent.pc
...
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
227f799dee
tevent: pass down handler_name and location to the backend layer
...
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
49acf9799a
tevent: make tevent_add_*() macros arround _tevent_add_*()
...
This passes some additional debug information into
the events system to make it easier to find bugs.
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
b12e78e645
tevent: use HAVE_EPOLL instead of HAVE_EVENTS_EPOLL
...
metze
2009-01-02 18:16:51 +01:00
Stefan Metzmacher
d9529a331a
tevent: rename event_register_backend() => tevent_register_backend()
...
And fix the callers and there init functions.
metze
2009-01-02 18:16:51 +01:00
Stefan Metzmacher
0a73e8b334
tevent: rename event_context_init* => tevent_context_init*()
...
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
7db6399069
tevent: rename event_[s|g]et_fd_flags => tevent_fd_[s|g]et_flags
...
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
d33b6aeff3
tevent: rename event_loop_* => tevent_loop_*
...
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
8bdc947993
tevent: rename event_set_default_backend() => tevent_set_default_backend()
...
metze
2009-01-02 18:16:49 +01:00
Stefan Metzmacher
0ffed7d992
tevent: use libreplace headers instead of system headers
...
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
c2dc2e0b46
lib/tevent: fix standalone make distclean realdistclean
...
Bug report by Brad Hards <bradh@frogmouth.net>.
metze
2008-12-30 08:58:52 +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
Stefan Metzmacher
83bcc4e027
lib/tevent: libtevent will change a lot until it's version 1.0.0
...
metze
2008-12-24 13:59:00 +01:00
Jelmer Vernooij
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Jelmer Vernooij
bd64688c6a
Fix more compiler warnings in various places.
2008-12-23 22:57:11 +01:00
Jelmer Vernooij
32e03f9fa5
Install tevent_internal.h, as Samba 4 needs it.
2008-12-23 22:57:00 +01:00
Jelmer Vernooij
31dc07ee28
pytevent: Add missing file.
2008-12-23 20:13:17 +01:00
Jelmer Vernooij
8b24da201b
Allow using external libtevent.
2008-12-23 19:59:57 +01:00
Jelmer Vernooij
22703bf3ff
standalone: Use more variables, preparing to include these files from main
...
Samba 4 makefile.
2008-12-23 19:44:11 +01:00
Jelmer Vernooij
465f78021e
Move Samba4-specific file out of common libtevent.
2008-12-23 19:28:22 +01:00
Jelmer Vernooij
998d588192
python/tevent: Remove use of pytalloc.h.
2008-12-23 03:25:51 +01:00
Jelmer Vernooij
e9deb75759
Fix installation of standalone tevent Python module.
2008-12-22 23:55:01 +01:00
Jelmer Vernooij
50b0c5325e
Never build tevent modules as shared objects.
2008-12-22 17:56:28 +01:00
Jelmer Vernooij
29dd98be09
Remove unused Samba4-specific init functions for libtevent.
2008-12-22 17:43:46 +01:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
ec80992ef5
Fix tevent python module build as part of samba 4.
2008-12-20 21:19:48 +01:00
Jelmer Vernooij
28f80dbb7c
Stop using SWIG for ldb Python bindings.
2008-12-20 19:54:13 +01:00
Jelmer Vernooij
1f4bd4b82c
Fix standalone compilation of events library.
2008-12-20 19:23:30 +01:00
Jelmer Vernooij
383e7c4d16
Add missing files for standalone build.
2008-12-20 18:06:31 +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