s4:lib/tevent: add lib/events/ compat and let things compile
authorStefan Metzmacher <metze@samba.org>
Tue, 16 Dec 2008 18:57:09 +0000 (19:57 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 17 Dec 2008 12:31:29 +0000 (13:31 +0100)
metze

28 files changed:
lib/tevent/Makefile.in
lib/tevent/config.mk
lib/tevent/configure.ac
lib/tevent/events.i
lib/tevent/events_wrap.c
lib/tevent/libtevent.m4
lib/tevent/tevent.c
lib/tevent/tevent.h
lib/tevent/tevent.pc.in
lib/tevent/tevent_aio.c
lib/tevent/tevent_debug.c
lib/tevent/tevent_epoll.c
lib/tevent/tevent_s4.c
lib/tevent/tevent_select.c
lib/tevent/tevent_signal.c
lib/tevent/tevent_standard.c
lib/tevent/tevent_timed.c
lib/tevent/tevent_util.c
source3/samba4.m4
source3/samba4.mk
source4/Makefile
source4/configure.ac
source4/lib/events/config.mk [new file with mode: 0644]
source4/lib/events/events.h [new file with mode: 0644]
source4/lib/events/events_dummy.c [new file with mode: 0644]
source4/lib/events/events_internal.h [new file with mode: 0644]
source4/main.mk
source4/torture/local/config.mk

index 4257119849a722ccac79b99b8108d34aa1141c0b..9765d3572075a33c85e7f84439150469d0a17887 100644 (file)
@@ -29,41 +29,41 @@ PYTHON_BUILD_TARGET = @PYTHON_BUILD_TARGET@
 PYTHON_INSTALL_TARGET = @PYTHON_INSTALL_TARGET@
 PYTHON_CHECK_TARGET = @PYTHON_CHECK_TARGET@
 LIB_PATH_VAR = @LIB_PATH_VAR@
-eventsdir = @eventsdir@
+teventdir = @teventdir@
 
 TALLOC_CFLAGS = @TALLOC_CFLAGS@
 TALLOC_LDFLAGS = @TALLOC_CFLAGS@
 TALLOC_LIBS = @TALLOC_LIBS@
 
-EVENTS_CFLAGS = @EVENTS_CFLAGS@
-EVENTS_LDFLAGS = @EVENTS_CFLAGS@
-EVENTS_LIBS = @EVENTS_LIBS@
+TEVENT_CFLAGS = @TEVENT_CFLAGS@
+TEVENT_LDFLAGS = @TEVENT_CFLAGS@
+TEVENT_LIBS = @TEVENT_LIBS@
 
-CFLAGS = $(CPPFLAGS) $(TALLOC_CFLAGS) $(EVENTS_CFLAGS) @CFLAGS@
-LDFLAGS = $(TALLOC_LDFLAGS) $(EVENTS_LDFLAGS) @LDFLAGS@
-LIBS = $(TALLOC_LIBS) $(EVENTS_LIBS) @LIBS@
+CFLAGS = $(CPPFLAGS) $(TALLOC_CFLAGS) $(TEVENT_CFLAGS) @CFLAGS@
+LDFLAGS = $(TALLOC_LDFLAGS) $(TEVENT_LDFLAGS) @LDFLAGS@
+LIBS = $(TALLOC_LIBS) $(TEVENT_LIBS) @LIBS@
 
-EVENTS_OBJ = @EVENTS_OBJ@ @LIBREPLACEOBJ@
+TEVENT_OBJ = @TEVENT_OBJ@ @LIBREPLACEOBJ@
 
 default: all
 
-include $(eventsdir)/events.mk
-include $(eventsdir)/rules.mk
+include $(teventdir)/tevent.mk
+include $(teventdir)/rules.mk
 
-all:: showflags dirs $(PROGS) $(EVENTS_SOLIB) libevents.a $(PYTHON_BUILD_TARGET)
+all:: showflags dirs $(PROGS) $(TEVENT_SOLIB) libtevent.a $(PYTHON_BUILD_TARGET)
 
 install:: all
-$(EVENTS_SOLIB): $(EVENTS_OBJ)
-       $(SHLD) $(SHLD_FLAGS) $(LDFLAGS) $(LIBS) -o $@ $(EVENTS_OBJ) @SONAMEFLAG@$(EVENTS_SONAME)
+$(TEVENT_SOLIB): $(TEVENT_OBJ)
+       $(SHLD) $(SHLD_FLAGS) $(LDFLAGS) $(LIBS) -o $@ $(TEVENT_OBJ) @SONAMEFLAG@$(TEVENT_SONAME)
 
 shared-build: all
        ${INSTALLCMD} -d $(sharedbuilddir)/lib
-       ${INSTALLCMD} -m 644 libevents.a $(sharedbuilddir)/lib
-       ${INSTALLCMD} -m 755 $(EVENTS_SOLIB) $(sharedbuilddir)/lib
-       ln -sf $(EVENTS_SOLIB) $(sharedbuilddir)/lib/$(EVENTS_SONAME)
-       ln -sf $(EVENTS_SOLIB) $(sharedbuilddir)/lib/libevents.so
+       ${INSTALLCMD} -m 644 libtevent.a $(sharedbuilddir)/lib
+       ${INSTALLCMD} -m 755 $(TEVENT_SOLIB) $(sharedbuilddir)/lib
+       ln -sf $(TEVENT_SOLIB) $(sharedbuilddir)/lib/$(TEVENT_SONAME)
+       ln -sf $(TEVENT_SOLIB) $(sharedbuilddir)/lib/libtevent.so
        ${INSTALLCMD} -d $(sharedbuilddir)/include
-       ${INSTALLCMD} -m 644 $(srcdir)/events.h $(sharedbuilddir)/include
+       ${INSTALLCMD} -m 644 $(srcdir)/tevent.h $(sharedbuilddir)/include
 
 check: test
 
index 127d9647754fa29c6404050cbcca94979d78af69..5f9508a44f05a516fc576c5a63a8a4ec06ca3a24 100644 (file)
@@ -1,58 +1,59 @@
 ##############################
-[MODULE::EVENTS_AIO]
+[MODULE::TEVENT_AIO]
 PRIVATE_DEPENDENCIES = LIBAIO_LINUX
-SUBSYSTEM = LIBEVENTS
+SUBSYSTEM = LIBTEVENT
 INIT_FUNCTION = s4_events_aio_init
 ##############################
 
-EVENTS_AIO_OBJ_FILES = $(libeventssrcdir)/events_aio.o
+TEVENT_AIO_OBJ_FILES = $(libteventsrcdir)/tevent_aio.o
 
 ##############################
-[MODULE::EVENTS_EPOLL]
-SUBSYSTEM = LIBEVENTS
+[MODULE::TEVENT_EPOLL]
+SUBSYSTEM = LIBTEVENT
 INIT_FUNCTION = s4_events_epoll_init
 ##############################
 
-EVENTS_EPOLL_OBJ_FILES = $(libeventssrcdir)/events_epoll.o
+TEVENT_EPOLL_OBJ_FILES = $(libteventsrcdir)/tevent_epoll.o
 
 ##############################
-[MODULE::EVENTS_SELECT]
-SUBSYSTEM = LIBEVENTS
+[MODULE::TEVENT_SELECT]
+SUBSYSTEM = LIBTEVENT
 INIT_FUNCTION = s4_events_select_init
 ##############################
 
-EVENTS_SELECT_OBJ_FILES = $(libeventssrcdir)/events_select.o
+TEVENT_SELECT_OBJ_FILES = $(libteventsrcdir)/tevent_select.o
 
 ##############################
-[MODULE::EVENTS_STANDARD]
-SUBSYSTEM = LIBEVENTS
+[MODULE::TEVENT_STANDARD]
+SUBSYSTEM = LIBTEVENT
 INIT_FUNCTION = s4_events_standard_init
 ##############################
 
-EVENTS_STANDARD_OBJ_FILES = $(libeventssrcdir)/events_standard.o
+TEVENT_STANDARD_OBJ_FILES = $(libteventsrcdir)/tevent_standard.o
 
 ################################################
-# Start SUBSYSTEM LIBEVENTS
-[LIBRARY::LIBEVENTS]
+# Start SUBSYSTEM LIBTEVENT
+[LIBRARY::LIBTEVENT]
 PUBLIC_DEPENDENCIES = LIBTALLOC
 OUTPUT_TYPE = MERGED_OBJ
-CFLAGS = -Ilib/events
+CFLAGS = -I../lib/tevent
 #
-# End SUBSYSTEM LIBEVENTS
+# End SUBSYSTEM LIBTEVENT
 ################################################
 
-LIBEVENTS_OBJ_FILES = $(addprefix $(libeventssrcdir)/, events.o events_timed.o events_signal.o events_debug.o events_util.o events_s4.o)
+LIBTEVENT_OBJ_FILES = $(addprefix $(libteventsrcdir)/, tevent.o tevent_timed.o tevent_signal.o tevent_debug.o tevent_util.o tevent_s4.o)
 
-PUBLIC_HEADERS += $(addprefix $(libeventssrcdir)/, events.h events_internal.h)
+PUBLIC_HEADERS += $(addprefix $(libteventsrcdir)/, tevent.h tevent_internal.h)
 
+# TODO: Change python stuff to tevent
 [PYTHON::swig_events]
 LIBRARY_REALNAME = samba/_events.$(SHLIBEXT)
-PRIVATE_DEPENDENCIES = LIBEVENTS LIBSAMBA-HOSTCONFIG LIBSAMBA-UTIL
+PRIVATE_DEPENDENCIES = LIBTEVENT LIBSAMBA-HOSTCONFIG LIBSAMBA-UTIL
 
-swig_events_OBJ_FILES = $(libeventssrcdir)/events_wrap.o
+swig_events_OBJ_FILES = $(libteventsrcdir)/events_wrap.o
 
-$(eval $(call python_py_module_template,samba/events.py,$(libeventssrcdir)/events.py))
+$(eval $(call python_py_module_template,samba/events.py,$(libteventsrcdir)/events.py))
 
 $(swig_events_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
 
-PC_FILES += $(libeventssrcdir)/events.pc
+PC_FILES += $(libteventsrcdir)/tevent.pc
index 895f2a1daa0ed594881557f623d11563e756db12..75719d13b4078db435f1f8ea3aed9f760059b553 100644 (file)
@@ -3,8 +3,8 @@ AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
 AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
 AC_DEFUN([SMB_ENABLE], [echo -n ""])
 AC_DEFUN([SMB_EXT_LIB], [echo -n ""])
-AC_INIT(events, 1.0.0)
-AC_CONFIG_SRCDIR([events.c])
+AC_INIT(tevent, 1.0.0)
+AC_CONFIG_SRCDIR([tevent.c])
 AC_CONFIG_HEADER(config.h)
 AC_LIBREPLACE_ALL_CHECKS
 
@@ -22,7 +22,7 @@ BUILD_WITH_SHARED_BUILD_DIR
 m4_include(pkg.m4)
 m4_include(libtalloc.m4)
 
-m4_include(libevents.m4)
+m4_include(libtevent.m4)
 AC_PATH_PROGS([PYTHON_CONFIG], [python2.6-config python2.5-config python2.4-config python-config])
 AC_PATH_PROGS([PYTHON], [python2.6 python2.5 python2.4 python])
 
index 8a0d9c4b6f862e90e0c16f70079094649f4616dd..7a604a9f235946e0a8e9c76e2d057800c6e6fc88 100644 (file)
 
 %module(docstring="Event management.",package="samba.events") events;
 
-%import "../../../lib/talloc/talloc.i";
+%import "../../lib/talloc/talloc.i";
 
 %{
-#include "events.h"
+#include "tevent.h"
 typedef struct event_context event;
 %}
 
index 335652101b3b1ca3c4379adbbfb48236552d4c0d..b8b3a962bc13e4a3baf8ea429e100f26c113fc9a 100644 (file)
@@ -2525,7 +2525,7 @@ static swig_module_info swig_module = {swig_types, 4, 0, 0, 0, 0};
 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 
 
 
-#include "events.h"
+#include "tevent.h"
 typedef struct event_context event;
 
 SWIGINTERN event *new_event(TALLOC_CTX *mem_ctx){ return event_context_init(mem_ctx); }
index ed76b03d4f19f8868eb540f299b944f99f2ec626..30105d9bef04c25c660ca411948bc8b3545a8c59 100644 (file)
@@ -1,49 +1,51 @@
-dnl find the events sources. This is meant to work both for
-dnl standalone builds, and builds of packages using libevents
-if test x"$eventsdir" = "x"; then
-       eventsdir=""
-       eventspaths="$srcdir $srcdir/../samba4/source/lib/events $srcdir/lib/events $srcdir/events $srcdir/../events"
-       for d in $eventspaths; do
-               if test -f "$d/events.c"; then
-                       eventsdir="$d"
-                       AC_SUBST(eventsdir)
+dnl find the tevent sources. This is meant to work both for
+dnl standalone builds, and builds of packages using libtevent
+if test x"$teventdir" = "x"; then
+       teventdir=""
+       teventpaths="$srcdir $srcdir/../lib/tevent $srcdir/tevent $srcdir/../tevent"
+       for d in $teventpaths; do
+               if test -f "$d/tevent.c"; then
+                       teventdir="$d"
+                       AC_SUBST(teventdir)
                        break;
                fi
        done
-       if test x"$eventsdir" = "x"; then
-          AC_MSG_ERROR([cannot find libevents source in $eventspaths])
+       if test x"$teventdir" = "x"; then
+          AC_MSG_ERROR([cannot find libtevent source in $teventpaths])
        fi
 fi
 
-EVENTS_OBJ="events.o events_select.o events_signal.o events_timed.o events_standard.o events_debug.o events_util.o"
+TEVENT_OBJ="tevent.o tevent_select.o tevent_signal.o tevent_timed.o tevent_standard.o tevent_debug.o tevent_util.o"
 AC_LIBREPLACE_NETWORK_CHECKS
 
-SMB_ENABLE(EVENTS_EPOLL, NO)
-SMB_ENABLE(EVENTS_AIO, NO)
+SMB_ENABLE(TEVENT_EPOLL, NO)
+SMB_ENABLE(TEVENT_AIO, NO)
 AC_CHECK_HEADERS(sys/epoll.h)
 AC_CHECK_FUNCS(epoll_create)
 if test x"$ac_cv_header_sys_epoll_h" = x"yes" -a x"$ac_cv_func_epoll_create" = x"yes"; then
-   EVENTS_OBJ="$EVENTS_OBJ events_epoll.o"
-   SMB_ENABLE(EVENTS_EPOLL,YES)
+   TEVENT_OBJ="$TEVENT_OBJ tevent_epoll.o"
+   SMB_ENABLE(TEVENT_EPOLL,YES)
+   AC_DEFINE(HAVE_EPOLL, 1, [Whether epoll available])
+   #TODO: remove HAVE_EVENTS_EPOLL and use HAVE_EPOLL
    AC_DEFINE(HAVE_EVENTS_EPOLL, 1, [Whether epoll available])
 
    # check for native Linux AIO interface
    AC_CHECK_HEADERS(libaio.h)
    AC_CHECK_LIB_EXT(aio, AIO_LIBS, io_getevents)
    if test x"$ac_cv_header_libaio_h" = x"yes" -a x"$ac_cv_lib_ext_aio_io_getevents" = x"yes";then
-      EVENTS_OBJ="$EVENTS_OBJ events_aio.o"
-      SMB_ENABLE(EVENTS_AIO,YES)
+      TEVENT_OBJ="$TEVENT_OBJ tevent_aio.o"
+      SMB_ENABLE(TEVENT_AIO,YES)
       AC_DEFINE(HAVE_LINUX_AIO, 1, [Whether Linux AIO is available])
    fi
 fi
 
-AC_SUBST(EVENTS_OBJ)
+AC_SUBST(TEVENT_OBJ)
 SMB_EXT_LIB(LIBAIO_LINUX, $AIO_LIBS)
 
-EVENTS_CFLAGS="-I$eventsdir"
-AC_SUBST(EVENTS_CFLAGS)
+TEVENT_CFLAGS="-I$teventdir"
+AC_SUBST(TEVENT_CFLAGS)
 
-EVENTS_LIBS="$AIO_LIBS"
-AC_SUBST(EVENTS_LIBS)
+TEVENT_LIBS="$AIO_LIBS"
+AC_SUBST(TEVENT_LIBS)
 
 
index 52699d968e72889d903d1a0b86ac77812b53e1f5..cd470c93ae068ea4931b8288e92e921a113287e1 100644 (file)
@@ -53,9 +53,9 @@
 
 */
 #include "replace.h"
-#include "events.h"
-#include "events_internal.h"
-#include "events_util.h"
+#include "tevent.h"
+#include "tevent_internal.h"
+#include "tevent_util.h"
 
 struct event_ops_list {
        struct event_ops_list *next, *prev;
index 1ece49697fe55299864798a9ef8f261b82cdd563..1857f9bb10e77f45c26ea2d3052b24cde00fd954 100644 (file)
@@ -19,8 +19,8 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef __EVENTS_H__
-#define __EVENTS_H__
+#ifndef __TEVENT_H__
+#define __TEVENT_H__
 
 #include <stdint.h>
 #include <talloc.h>
@@ -95,4 +95,4 @@ struct event_context *event_context_find(TALLOC_CTX *mem_ctx);
 #define EVENT_FD_NOT_READABLE(fde) \
        event_set_fd_flags(fde, event_get_fd_flags(fde) & ~EVENT_FD_READ)
 
-#endif /* __EVENTS_H__ */
+#endif /* __TEVENT_H__ */
index 4a4c012d73e4d34e03b170651b4a0609519ac2f3..afd9fcc2796a09e410b5edd255fce82a2e1a458d 100644 (file)
@@ -6,6 +6,6 @@ includedir=@includedir@
 Name: events
 Description: An event system library
 Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -levents
+Libs: -L${libdir} -ltevent
 Cflags: -I${includedir} 
 URL: http://samba.org/
index e30213acbc71d540ef162878c3438909f81a4fda..7c3473b9a76b9656fb1c49a11fd93cbe7a5ea0b5 100644 (file)
@@ -32,9 +32,9 @@
 
 #include "system/filesys.h"
 #include "replace.h"
-#include "events.h"
-#include "events_internal.h"
-#include "events_util.h"
+#include "tevent.h"
+#include "tevent_internal.h"
+#include "tevent_util.h"
 #include <sys/epoll.h>
 #include <libaio.h>
 
index 233844f02466a23170219d32f227adfb284024ed..a23ff097555908f71ad4650e5430f895eb9f0d1f 100644 (file)
@@ -19,8 +19,8 @@
 */
 
 #include "replace.h"
-#include "events.h"
-#include "events_internal.h"
+#include "tevent.h"
+#include "tevent_internal.h"
 
 /********************************************************************
  * Debug wrapper functions, modeled (with lot's of code copied as is)
index d46d5c2bbc5c7fdfe40fbdfab2b5a5e593f95fa8..1d03b7dbf0bb36da198962475a9a8ae8a7240190 100644 (file)
@@ -23,9 +23,9 @@
 #include "replace.h"
 #include "system/filesys.h"
 #include "system/network.h"
-#include "events.h"
-#include "events_internal.h"
-#include "events_util.h"
+#include "tevent.h"
+#include "tevent_internal.h"
+#include "tevent_util.h"
 #include <sys/epoll.h>
 
 struct epoll_event_context {
index 134f899cf8983822cfdc5fbaa25e8706d79f39f6..4be92599a750db0682f3ffdbc545cd3a5c55e8d5 100644 (file)
@@ -17,8 +17,8 @@
 */
 
 #include "includes.h"
-#include "events.h"
-#include "events_internal.h"
+#include "tevent.h"
+#include "tevent_internal.h"
 
 NTSTATUS s4_events_standard_init(void)
 {
index 54d32204f56692985ed0e7a52c2bb767fe454ed0..35c6f78599338a947e6298040cc5ea559c11b3f0 100644 (file)
@@ -26,9 +26,9 @@
 #include "replace.h"
 #include "system/filesys.h"
 #include "system/select.h"
-#include "events.h"
-#include "events_util.h"
-#include "events_internal.h"
+#include "tevent.h"
+#include "tevent_util.h"
+#include "tevent_internal.h"
 
 struct select_event_context {
        /* a pointer back to the generic event_context */
index 652df53d4b760a690479554d8ee7bf698feb07bc..36907af6beda8d88c0da2f434180eff442cb6f57 100644 (file)
@@ -23,9 +23,9 @@
 #include "replace.h"
 #include "system/filesys.h"
 #include "system/select.h"
-#include "events.h"
-#include "events_internal.h"
-#include "events_util.h"
+#include "tevent.h"
+#include "tevent_internal.h"
+#include "tevent_util.h"
 
 #define NUM_SIGNALS 64
 
index 11128d7623d23c3862ea133c042896297de8dd09..c63d09217320f01d3256c1d5b2a3477428d5511a 100644 (file)
@@ -31,9 +31,9 @@
 #include "system/filesys.h"
 #include "system/network.h"
 #include "system/select.h" /* needed for HAVE_EVENTS_EPOLL */
-#include "events.h"
-#include "events_util.h"
-#include "events_internal.h"
+#include "tevent.h"
+#include "tevent_util.h"
+#include "tevent_internal.h"
 
 struct std_event_context {
        /* a pointer back to the generic event_context */
index c58c898c6db9b986c7d42730351b6f01d77446f7..ba8213710ee37b38aedad2c5497518fdff83e8e7 100644 (file)
@@ -25,9 +25,9 @@
 #include "replace.h"
 #include "system/filesys.h"
 #include "system/select.h"
-#include "events.h"
-#include "events_internal.h"
-#include "events_util.h"
+#include "tevent.h"
+#include "tevent_internal.h"
+#include "tevent_util.h"
 
 /**
   compare two timeval structures. 
index 9e7d7584059c4785a30116d4fbeeeeffba8f9770..cfcca9185d7ea4cf6ae9739ba86e886dec002a90 100644 (file)
@@ -20,9 +20,9 @@
 
 #include "replace.h"
 #include "talloc.h"
-#include "events.h"
-#include "events_internal.h"
-#include "events_util.h"
+#include "tevent.h"
+#include "tevent_internal.h"
+#include "tevent_util.h"
 #include <fcntl.h>
 
 /**
index 34d03de1584b21aac0d61f8876d0c4dac05edbad..5b35d541f2239d433548193936e637601f22b219 100644 (file)
@@ -108,8 +108,8 @@ SMB_INCLUDE_MK(lib/ldb/python.mk)
 SMB_ENABLE(swig_ldb,YES)
 
 m4_include(lib/tls/config.m4)
-eventsdir="../source4/lib/events"
-m4_include(lib/events/libevents.m4)
+teventdir="../lib/tevent"
+m4_include(../lib/tevent/libtevent.m4)
 
 dnl m4_include(auth/kerberos/config.m4)
 m4_include(auth/gensec/config.m4)
index 8962d6b5de2c70b77d8f974632992d77a0dcad4f..e15d60255d8d997f9e6db0a0c9a5de93af7213e9 100644 (file)
@@ -82,6 +82,7 @@ ldb_sambasrcdir := $(samba4srcdir)/lib/ldb-samba
 libtlssrcdir := $(samba4srcdir)/lib/tls
 libregistrysrcdir := $(samba4srcdir)/lib/registry
 libmessagingsrcdir := $(samba4srcdir)/lib/messaging
+libteventsrcdir := $(samba4srcdir)/../lib/tevent
 libeventssrcdir := $(samba4srcdir)/lib/events
 libcmdlinesrcdir := $(samba4srcdir)/lib/cmdline
 poptsrcdir := $(samba4srcdir)/../lib/popt
index 8899cde2d22ab05681699082dd778fbd465183b4..2d49efb93b26c01f4ee0c045f4b6b0e6dd9419d2 100644 (file)
@@ -67,6 +67,7 @@ libtlssrcdir := lib/tls
 libregistrysrcdir := lib/registry
 smbreadlinesrcdir := lib/smbreadline
 libmessagingsrcdir := lib/messaging
+libteventsrcdir := ../lib/tevent
 libeventssrcdir := lib/events
 libcmdlinesrcdir := lib/cmdline
 poptsrcdir := ../lib/popt
index 53e093e8134e15af76759efc160fed0f4f49f7a3..7162081bbb292698ec61e03a645b3a8612491cd7 100644 (file)
@@ -34,7 +34,7 @@ m4_include(../nsswitch/nsstest.m4)
 m4_include(../pidl/config.m4)
 
 AC_CONFIG_FILES(lib/registry/registry.pc)
-AC_CONFIG_FILES(lib/events/events.pc)
+AC_CONFIG_FILES(../lib/tevent/tevent.pc)
 AC_CONFIG_FILES(librpc/dcerpc.pc)
 AC_CONFIG_FILES(../librpc/ndr.pc)
 AC_CONFIG_FILES(../lib/torture/torture.pc)
@@ -96,7 +96,7 @@ SMB_EXT_LIB_FROM_PKGCONFIG(LIBLDB, ldb >= 0.9.1,
 SMB_INCLUDE_MK(lib/ldb/python.mk) 
 
 m4_include(lib/tls/config.m4)
-m4_include(lib/events/libevents.m4)
+m4_include(../lib/tevent/libtevent.m4)
 
 dnl m4_include(auth/kerberos/config.m4)
 m4_include(auth/gensec/config.m4)
diff --git a/source4/lib/events/config.mk b/source4/lib/events/config.mk
new file mode 100644 (file)
index 0000000..b9d6879
--- /dev/null
@@ -0,0 +1,7 @@
+[SUBSYSTEM::LIBEVENTS]
+PUBLIC_DEPENDENCIES = LIBTEVENT
+CFLAGS = -Ilib/events
+
+LIBEVENTS_OBJ_FILES = $(addprefix $(libeventssrcdir)/, events_dummy.o)
+
+PUBLIC_HEADERS += $(addprefix $(libeventssrcdir)/, events.h events_internal.h)
diff --git a/source4/lib/events/events.h b/source4/lib/events/events.h
new file mode 100644 (file)
index 0000000..d2e81f5
--- /dev/null
@@ -0,0 +1 @@
+#include <tevent.h>
diff --git a/source4/lib/events/events_dummy.c b/source4/lib/events/events_dummy.c
new file mode 100644 (file)
index 0000000..15bb25e
--- /dev/null
@@ -0,0 +1,4 @@
+void __events_dummy(void)
+{
+}
+
diff --git a/source4/lib/events/events_internal.h b/source4/lib/events/events_internal.h
new file mode 100644 (file)
index 0000000..308587c
--- /dev/null
@@ -0,0 +1 @@
+#include <tevent_internal.h>
index 1d4ffc5d44cb08327097b38c173d4758ab656d87..e54196a2f9a12b8edf0bd23a06fed5610c22dd89 100644 (file)
@@ -14,6 +14,7 @@ mkinclude lib/ldb-samba/config.mk
 mkinclude lib/tls/config.mk
 mkinclude lib/registry/config.mk
 mkinclude lib/messaging/config.mk
+mkinclude ../lib/tevent/config.mk
 mkinclude lib/events/config.mk
 mkinclude lib/cmdline/config.mk
 mkinclude ../lib/socket_wrapper/config.mk
index 46d5e38e67d7d5aa7ab076cd59f96900536bb501..60cbf25edadde0a57648c4b7a631feed742d33dc 100644 (file)
@@ -43,7 +43,7 @@ TORTURE_LOCAL_OBJ_FILES = \
                $(torturesrcdir)/../../lib/util/charset/tests/charset.o \
                $(torturesrcdir)/../libcli/security/tests/sddl.o \
                $(torturesrcdir)/../lib/tdr/testsuite.o \
-               $(torturesrcdir)/../lib/events/testsuite.o \
+               $(torturesrcdir)/../../lib/tevent/testsuite.o \
                $(torturesrcdir)/../param/tests/share.o \
                $(torturesrcdir)/../param/tests/loadparm.o \
                $(torturesrcdir)/../auth/credentials/tests/simple.o \