mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
r5197: moved events code to lib/events/ (suggestion from metze)
(This used to be commit 7f54c8a339
)
This commit is contained in:
parent
dc35a0eb4f
commit
131dc76d56
@ -199,9 +199,6 @@ AC_CHECK_FUNCS(setbuffer)
|
||||
AC_CHECK_FUNCS(getdents)
|
||||
AC_CHECK_FUNCS(pread pwrite)
|
||||
|
||||
AC_CHECK_HEADERS(sys/epoll.h)
|
||||
AC_CHECK_FUNCS(epoll_create)
|
||||
|
||||
# needed for lib/charcnv.c
|
||||
AC_CHECK_FUNCS(setlocale)
|
||||
|
||||
|
@ -37,6 +37,7 @@ sub smb_build_main($)
|
||||
"lib/tdb/config.mk",
|
||||
"lib/registry/config.mk",
|
||||
"lib/messaging/config.mk",
|
||||
"lib/events/config.mk",
|
||||
"smb_server/config.mk",
|
||||
"rpc_server/config.mk",
|
||||
"ldap_server/config.mk",
|
||||
|
@ -17,6 +17,7 @@ SMB_INCLUDE_M4(lib/socket/config.m4)
|
||||
SMB_INCLUDE_M4(lib/talloc/config.m4)
|
||||
SMB_INCLUDE_M4(lib/tdb/config.m4)
|
||||
SMB_INCLUDE_M4(lib/ldb/config.m4)
|
||||
SMB_INCLUDE_M4(lib/events/config.m4)
|
||||
SMB_INCLUDE_M4(lib/cmdline/config.m4)
|
||||
SMB_INCLUDE_M4(param/config.m4)
|
||||
SMB_INCLUDE_M4(libcli/auth/gensec.m4)
|
||||
|
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "auth/auth.h"
|
||||
#include "dlinklist.h"
|
||||
#include "asn_1.h"
|
||||
|
@ -32,15 +32,6 @@ ADD_OBJ_FILES = \
|
||||
# End SUBSYSTEM LIBCRYPTO
|
||||
##############################
|
||||
|
||||
##############################
|
||||
# Start SUBSYSTEM LIBEVENTS
|
||||
[SUBSYSTEM::LIBEVENTS]
|
||||
NOPROTO = YES
|
||||
INIT_OBJ_FILES = lib/events.o
|
||||
REQUIRED_SUBSYSTEMS = LIBTALLOC
|
||||
# End SUBSYSTEM LIBEVENTS
|
||||
##############################
|
||||
|
||||
##############################
|
||||
# Start SUBSYSTEM LIBBASIC
|
||||
[SUBSYSTEM::LIBBASIC]
|
||||
|
2
source4/lib/events/config.m4
Normal file
2
source4/lib/events/config.m4
Normal file
@ -0,0 +1,2 @@
|
||||
AC_CHECK_HEADERS(sys/epoll.h)
|
||||
AC_CHECK_FUNCS(epoll_create)
|
8
source4/lib/events/config.mk
Normal file
8
source4/lib/events/config.mk
Normal file
@ -0,0 +1,8 @@
|
||||
##############################
|
||||
# Start SUBSYSTEM LIBEVENTS
|
||||
[SUBSYSTEM::LIBEVENTS]
|
||||
NOPROTO = YES
|
||||
INIT_OBJ_FILES = lib/events/events.o
|
||||
REQUIRED_SUBSYSTEMS = LIBTALLOC
|
||||
# End SUBSYSTEM LIBEVENTS
|
||||
##############################
|
@ -58,7 +58,7 @@
|
||||
#include "system/time.h"
|
||||
#include "system/select.h"
|
||||
#include "dlinklist.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
|
||||
/* use epoll if it is available */
|
||||
#if defined(HAVE_EPOLL_CREATE) && defined(HAVE_SYS_EPOLL_H)
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "system/time.h"
|
||||
#include "messages.h"
|
||||
#include "dlinklist.h"
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "libcli/composite/composite.h"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "dlinklist.h"
|
||||
#include "libcli/nbt/libnbt.h"
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "libcli/composite/composite.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "system/time.h"
|
||||
#include "dlinklist.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
|
||||
|
||||
static void smbcli_transport_process_recv(struct smbcli_transport *transport);
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "includes.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "dlinklist.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
|
||||
/* we over allocate the data buffer to prevent too many realloc calls */
|
||||
#define REQ_OVER_ALLOCATION 0
|
||||
|
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "system/network.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "libcli/composite/composite.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "libcli/composite/composite.h"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "librpc/gen_ndr/ndr_epmapper.h"
|
||||
#include "librpc/gen_ndr/ndr_dcerpc.h"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "librpc/gen_ndr/ndr_epmapper.h"
|
||||
|
||||
#define MIN_HDR_SIZE 16
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "smbd/service_task.h"
|
||||
#include "nbt_server/nbt_server.h"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "dlinklist.h"
|
||||
#include "nbt_server/nbt_server.h"
|
||||
#include "smbd/service_task.h"
|
||||
|
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "libcli/composite/composite.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "dlinklist.h"
|
||||
#include "vfs_posix.h"
|
||||
#include "smbd/service_stream.h"
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "auth/auth.h"
|
||||
#include "dlinklist.h"
|
||||
#include "rpc_server/dcerpc_server.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "smbd/service_stream.h"
|
||||
|
||||
/*
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "rpc_server/dcerpc_server.h"
|
||||
#include "smbd/service_stream.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "includes.h"
|
||||
#include "rpc_server/dcerpc_server.h"
|
||||
#include "librpc/gen_ndr/ndr_echo.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
|
||||
|
||||
static NTSTATUS echo_AddOne(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_AddOne *r)
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
#include "smbd/service_stream.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "system/time.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smbd/service_stream.h"
|
||||
|
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
/*
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
#include "system/wait.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "version.h"
|
||||
#include "dynconfig.h"
|
||||
#include "lib/cmdline/popt_common.h"
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "process_model.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "smbd/service_stream.h"
|
||||
|
||||
/* the range of ports to try for dcerpc over tcp endpoints */
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "process_model.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "smbd/service_task.h"
|
||||
|
||||
/*
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
|
||||
enum {MY_PING=1000, MY_PONG, MY_EXIT};
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/nbt/libnbt.h"
|
||||
#include "librpc/gen_ndr/ndr_nbt.h"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "libcli/composite/composite.h"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "librpc/gen_ndr/ndr_echo.h"
|
||||
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "librpc/gen_ndr/ndr_netlogon.h"
|
||||
#include "auth/auth.h"
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "events.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "smbd/service_task.h"
|
||||
#include "smbd/service_stream.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user