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

s4: fix LIBEVENTS dependencies and use more forward declarations

We should only include events.h where we really need it
and prefer forward declarations of 'struct event_context'

metze
This commit is contained in:
Stefan Metzmacher 2008-12-17 00:06:34 +01:00
parent 675b363b71
commit 081f8883ba
22 changed files with 23 additions and 16 deletions

View File

@ -65,6 +65,7 @@ enum gensec_role
struct auth_session_info; struct auth_session_info;
struct cli_credentials; struct cli_credentials;
struct gensec_settings; struct gensec_settings;
struct event_context;
struct gensec_update_request { struct gensec_update_request {
struct gensec_security *gensec_security; struct gensec_security *gensec_security;

View File

@ -29,7 +29,8 @@ struct auth_session_info {
}; };
#include "librpc/gen_ndr/netlogon.h" #include "librpc/gen_ndr/netlogon.h"
#include "lib/events/events.h"
struct event_context;
/* Create a security token for a session SYSTEM (the most /* Create a security token for a session SYSTEM (the most
* trusted/prvilaged account), including the local machine account as * trusted/prvilaged account), including the local machine account as

View File

@ -18,7 +18,6 @@
*/ */
#include "includes.h" #include "includes.h"
#include "lib/events/events.h"
#include "../tdb/include/tdb.h" #include "../tdb/include/tdb.h"
#include "system/network.h" #include "system/network.h"
#include "system/filesys.h" #include "system/filesys.h"

View File

@ -21,7 +21,6 @@
protocol design and packet details protocol design and packet details
*/ */
#include "includes.h" #include "includes.h"
#include "lib/events/events.h"
#include "../tdb/include/tdb.h" #include "../tdb/include/tdb.h"
#include "system/network.h" #include "system/network.h"
#include "system/filesys.h" #include "system/filesys.h"

View File

@ -18,7 +18,6 @@
*/ */
#include "includes.h" #include "includes.h"
#include "lib/events/events.h"
#include "../tdb/include/tdb.h" #include "../tdb/include/tdb.h"
#include "system/network.h" #include "system/network.h"
#include "system/filesys.h" #include "system/filesys.h"

View File

@ -12,7 +12,7 @@ opendb_ctdb_OBJ_FILES = $(ctdbsrcdir)/opendb_ctdb.o
################## ##################
[SUBSYSTEM::ctdb] [SUBSYSTEM::ctdb]
PUBLIC_DEPENDENCIES = TDB_WRAP LIBTALLOC PUBLIC_DEPENDENCIES = TDB_WRAP LIBTALLOC LIBEVENTS
ctdb_OBJ_FILES = $(addprefix $(ctdbsrcdir)/, \ ctdb_OBJ_FILES = $(addprefix $(ctdbsrcdir)/, \
ctdb_cluster.o \ ctdb_cluster.o \

View File

@ -20,7 +20,6 @@
*/ */
#include "includes.h" #include "includes.h"
#include "lib/events/events.h"
#include "cluster/cluster.h" #include "cluster/cluster.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "cluster/cluster_private.h" #include "cluster/cluster_private.h"

View File

@ -20,8 +20,7 @@
#ifndef _SAMBA_SOCKET_H #ifndef _SAMBA_SOCKET_H
#define _SAMBA_SOCKET_H #define _SAMBA_SOCKET_H
#include "lib/events/events.h" struct event_context;
struct socket_context; struct socket_context;
enum socket_type { enum socket_type {

View File

@ -20,6 +20,10 @@
*/ */
struct packet_context;
struct event_context;
struct fd_event;
typedef NTSTATUS (*packet_full_request_fn_t)(void *private, typedef NTSTATUS (*packet_full_request_fn_t)(void *private,
DATA_BLOB blob, size_t *packet_size); DATA_BLOB blob, size_t *packet_size);
typedef NTSTATUS (*packet_callback_fn_t)(void *private, DATA_BLOB blob); typedef NTSTATUS (*packet_callback_fn_t)(void *private, DATA_BLOB blob);

View File

@ -24,6 +24,8 @@
#include "libcli/raw/interfaces.h" #include "libcli/raw/interfaces.h"
struct event_context;
/* /*
this defines the structures associated with "composite" this defines the structures associated with "composite"
requests. Composite requests are libcli requests that are internally requests. Composite requests are libcli requests that are internally

View File

@ -21,7 +21,6 @@
*/ */
#include "includes.h" #include "includes.h"
#include "lib/events/events.h"
#include "libcli/ldap/ldap.h" #include "libcli/ldap/ldap.h"
#include "librpc/gen_ndr/ndr_security.h" #include "librpc/gen_ndr/ndr_security.h"
#include "librpc/gen_ndr/ndr_misc.h" #include "librpc/gen_ndr/ndr_misc.h"

View File

@ -21,7 +21,6 @@
*/ */
#include "includes.h" #include "includes.h"
#include "lib/events/events.h"
#include "libcli/composite/composite.h" #include "libcli/composite/composite.h"
#include "libcli/resolve/resolve.h" #include "libcli/resolve/resolve.h"
#include "librpc/gen_ndr/ndr_nbt.h" #include "librpc/gen_ndr/ndr_nbt.h"

View File

@ -23,6 +23,7 @@
#define __RESOLVE_H__ #define __RESOLVE_H__
struct socket_address; struct socket_address;
struct event_context;
#include "../libcli/nbt/libnbt.h" #include "../libcli/nbt/libnbt.h"
typedef struct composite_context *(*resolve_name_send_fn)(TALLOC_CTX *mem_ctx, typedef struct composite_context *(*resolve_name_send_fn)(TALLOC_CTX *mem_ctx,

View File

@ -29,7 +29,7 @@ pvfs_acl_nfs4_OBJ_FILES = $(ntvfssrcdir)/posix/pvfs_acl_nfs4.o
################################################ ################################################
[SUBSYSTEM::pvfs_aio] [SUBSYSTEM::pvfs_aio]
PRIVATE_DEPENDENCIES = LIBAIO_LINUX PRIVATE_DEPENDENCIES = LIBEVENTS LIBAIO_LINUX
################################################ ################################################
pvfs_aio_OBJ_FILES = $(ntvfssrcdir)/posix/pvfs_aio.o pvfs_aio_OBJ_FILES = $(ntvfssrcdir)/posix/pvfs_aio.o

View File

@ -3,6 +3,7 @@
[MODULE::sys_notify_inotify] [MODULE::sys_notify_inotify]
SUBSYSTEM = sys_notify SUBSYSTEM = sys_notify
INIT_FUNCTION = sys_notify_inotify_init INIT_FUNCTION = sys_notify_inotify_init
PRIVATE_DEPENDENCIES = LIBEVENTS
# End MODULE sys_notify_inotify # End MODULE sys_notify_inotify
################################################ ################################################
@ -17,6 +18,7 @@ sys_notify_inotify_OBJ_FILES = $(ntvfssrcdir)/sysdep/inotify.o
sys_notify_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_notify.o sys_notify_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_notify.o
[SUBSYSTEM::sys_lease_linux] [SUBSYSTEM::sys_lease_linux]
PRIVATE_DEPENDENCIES = LIBEVENTS
sys_lease_linux_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_lease_linux.o sys_lease_linux_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_lease_linux.o

View File

@ -25,7 +25,6 @@
#include "includes.h" #include "includes.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "ntvfs/sysdep/sys_lease.h" #include "ntvfs/sysdep/sys_lease.h"
#include "lib/events/events.h"
#include "../lib/util/dlinklist.h" #include "../lib/util/dlinklist.h"
#include "param/param.h" #include "param/param.h"

View File

@ -22,6 +22,7 @@
struct sys_lease_context; struct sys_lease_context;
struct opendb_entry; struct opendb_entry;
struct messaging_context; struct messaging_context;
struct event_context;
typedef NTSTATUS (*sys_lease_send_break_fn)(struct messaging_context *, typedef NTSTATUS (*sys_lease_send_break_fn)(struct messaging_context *,
struct opendb_entry *, struct opendb_entry *,

View File

@ -18,7 +18,7 @@ PUBLIC_HEADERS += $(rpc_serversrcdir)/common/common.h
[MODULE::dcerpc_rpcecho] [MODULE::dcerpc_rpcecho]
INIT_FUNCTION = dcerpc_server_rpcecho_init INIT_FUNCTION = dcerpc_server_rpcecho_init
SUBSYSTEM = dcerpc_server SUBSYSTEM = dcerpc_server
PRIVATE_DEPENDENCIES = NDR_ECHO PRIVATE_DEPENDENCIES = NDR_ECHO LIBEVENTS
# End MODULE dcerpc_rpcecho # End MODULE dcerpc_rpcecho
################################################ ################################################

View File

@ -21,10 +21,11 @@
#include "libcli/raw/request.h" #include "libcli/raw/request.h"
#include "libcli/raw/interfaces.h" #include "libcli/raw/interfaces.h"
#include "lib/events/events.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"
#include "../lib/util/dlinklist.h" #include "../lib/util/dlinklist.h"
struct event_context;
/* /*
this header declares the core context structures associated with smb this header declares the core context structures associated with smb
sockets, tree connects, requests etc sockets, tree connects, requests etc

View File

@ -2,7 +2,7 @@
[SUBSYSTEM::service] [SUBSYSTEM::service]
PRIVATE_DEPENDENCIES = \ PRIVATE_DEPENDENCIES = \
MESSAGING samba-socket NDR_NAMED_PIPE_AUTH LIBEVENTS MESSAGING samba-socket NDR_NAMED_PIPE_AUTH
service_OBJ_FILES = $(addprefix $(smbdsrcdir)/, \ service_OBJ_FILES = $(addprefix $(smbdsrcdir)/, \
service.o \ service.o \

View File

@ -15,7 +15,7 @@ process_model_single_OBJ_FILES = $(smbdsrcdir)/process_single.o
[MODULE::process_model_standard] [MODULE::process_model_standard]
INIT_FUNCTION = process_model_standard_init INIT_FUNCTION = process_model_standard_init
SUBSYSTEM = process_model SUBSYSTEM = process_model
PRIVATE_DEPENDENCIES = SETPROCTITLE PRIVATE_DEPENDENCIES = LIBEVENTS SETPROCTITLE
# End MODULE process_model_standard # End MODULE process_model_standard
################################################ ################################################
@ -37,6 +37,7 @@ process_model_thread_OBJ_FILES = $(smbdsrcdir)/process_thread.o
[MODULE::process_model_prefork] [MODULE::process_model_prefork]
INIT_FUNCTION = process_model_prefork_init INIT_FUNCTION = process_model_prefork_init
SUBSYSTEM = process_model SUBSYSTEM = process_model
PRIVATE_DEPENDENCIES = LIBEVENTS SETPROCTITLE
# End MODULE process_model_thread # End MODULE process_model_thread
################################################ ################################################

View File

@ -20,6 +20,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include "lib/events/events.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"
#include "smbd/service.h" #include "smbd/service.h"
#include "param/param.h" #include "param/param.h"