mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34: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:
parent
675b363b71
commit
081f8883ba
@ -65,6 +65,7 @@ enum gensec_role
|
||||
struct auth_session_info;
|
||||
struct cli_credentials;
|
||||
struct gensec_settings;
|
||||
struct event_context;
|
||||
|
||||
struct gensec_update_request {
|
||||
struct gensec_security *gensec_security;
|
||||
|
@ -29,7 +29,8 @@ struct auth_session_info {
|
||||
};
|
||||
|
||||
#include "librpc/gen_ndr/netlogon.h"
|
||||
#include "lib/events/events.h"
|
||||
|
||||
struct event_context;
|
||||
|
||||
/* Create a security token for a session SYSTEM (the most
|
||||
* trusted/prvilaged account), including the local machine account as
|
||||
|
@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "../tdb/include/tdb.h"
|
||||
#include "system/network.h"
|
||||
#include "system/filesys.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
protocol design and packet details
|
||||
*/
|
||||
#include "includes.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "../tdb/include/tdb.h"
|
||||
#include "system/network.h"
|
||||
#include "system/filesys.h"
|
||||
|
@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "../tdb/include/tdb.h"
|
||||
#include "system/network.h"
|
||||
#include "system/filesys.h"
|
||||
|
@ -12,7 +12,7 @@ opendb_ctdb_OBJ_FILES = $(ctdbsrcdir)/opendb_ctdb.o
|
||||
|
||||
##################
|
||||
[SUBSYSTEM::ctdb]
|
||||
PUBLIC_DEPENDENCIES = TDB_WRAP LIBTALLOC
|
||||
PUBLIC_DEPENDENCIES = TDB_WRAP LIBTALLOC LIBEVENTS
|
||||
|
||||
ctdb_OBJ_FILES = $(addprefix $(ctdbsrcdir)/, \
|
||||
ctdb_cluster.o \
|
||||
|
@ -20,7 +20,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "cluster/cluster.h"
|
||||
#include "system/filesys.h"
|
||||
#include "cluster/cluster_private.h"
|
||||
|
@ -20,8 +20,7 @@
|
||||
#ifndef _SAMBA_SOCKET_H
|
||||
#define _SAMBA_SOCKET_H
|
||||
|
||||
#include "lib/events/events.h"
|
||||
|
||||
struct event_context;
|
||||
struct socket_context;
|
||||
|
||||
enum socket_type {
|
||||
|
@ -20,6 +20,10 @@
|
||||
|
||||
*/
|
||||
|
||||
struct packet_context;
|
||||
struct event_context;
|
||||
struct fd_event;
|
||||
|
||||
typedef NTSTATUS (*packet_full_request_fn_t)(void *private,
|
||||
DATA_BLOB blob, size_t *packet_size);
|
||||
typedef NTSTATUS (*packet_callback_fn_t)(void *private, DATA_BLOB blob);
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
#include "libcli/raw/interfaces.h"
|
||||
|
||||
struct event_context;
|
||||
|
||||
/*
|
||||
this defines the structures associated with "composite"
|
||||
requests. Composite requests are libcli requests that are internally
|
||||
|
@ -21,7 +21,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/ldap/ldap.h"
|
||||
#include "librpc/gen_ndr/ndr_security.h"
|
||||
#include "librpc/gen_ndr/ndr_misc.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "libcli/composite/composite.h"
|
||||
#include "libcli/resolve/resolve.h"
|
||||
#include "librpc/gen_ndr/ndr_nbt.h"
|
||||
|
@ -23,6 +23,7 @@
|
||||
#define __RESOLVE_H__
|
||||
|
||||
struct socket_address;
|
||||
struct event_context;
|
||||
|
||||
#include "../libcli/nbt/libnbt.h"
|
||||
typedef struct composite_context *(*resolve_name_send_fn)(TALLOC_CTX *mem_ctx,
|
||||
|
@ -29,7 +29,7 @@ pvfs_acl_nfs4_OBJ_FILES = $(ntvfssrcdir)/posix/pvfs_acl_nfs4.o
|
||||
|
||||
################################################
|
||||
[SUBSYSTEM::pvfs_aio]
|
||||
PRIVATE_DEPENDENCIES = LIBAIO_LINUX
|
||||
PRIVATE_DEPENDENCIES = LIBEVENTS LIBAIO_LINUX
|
||||
################################################
|
||||
|
||||
pvfs_aio_OBJ_FILES = $(ntvfssrcdir)/posix/pvfs_aio.o
|
||||
|
@ -3,6 +3,7 @@
|
||||
[MODULE::sys_notify_inotify]
|
||||
SUBSYSTEM = sys_notify
|
||||
INIT_FUNCTION = sys_notify_inotify_init
|
||||
PRIVATE_DEPENDENCIES = LIBEVENTS
|
||||
# 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
|
||||
|
||||
[SUBSYSTEM::sys_lease_linux]
|
||||
PRIVATE_DEPENDENCIES = LIBEVENTS
|
||||
|
||||
sys_lease_linux_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_lease_linux.o
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "includes.h"
|
||||
#include "system/filesys.h"
|
||||
#include "ntvfs/sysdep/sys_lease.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "../lib/util/dlinklist.h"
|
||||
#include "param/param.h"
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
struct sys_lease_context;
|
||||
struct opendb_entry;
|
||||
struct messaging_context;
|
||||
struct event_context;
|
||||
|
||||
typedef NTSTATUS (*sys_lease_send_break_fn)(struct messaging_context *,
|
||||
struct opendb_entry *,
|
||||
|
@ -18,7 +18,7 @@ PUBLIC_HEADERS += $(rpc_serversrcdir)/common/common.h
|
||||
[MODULE::dcerpc_rpcecho]
|
||||
INIT_FUNCTION = dcerpc_server_rpcecho_init
|
||||
SUBSYSTEM = dcerpc_server
|
||||
PRIVATE_DEPENDENCIES = NDR_ECHO
|
||||
PRIVATE_DEPENDENCIES = NDR_ECHO LIBEVENTS
|
||||
# End MODULE dcerpc_rpcecho
|
||||
################################################
|
||||
|
||||
|
@ -21,10 +21,11 @@
|
||||
|
||||
#include "libcli/raw/request.h"
|
||||
#include "libcli/raw/interfaces.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "lib/socket/socket.h"
|
||||
#include "../lib/util/dlinklist.h"
|
||||
|
||||
struct event_context;
|
||||
|
||||
/*
|
||||
this header declares the core context structures associated with smb
|
||||
sockets, tree connects, requests etc
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
[SUBSYSTEM::service]
|
||||
PRIVATE_DEPENDENCIES = \
|
||||
MESSAGING samba-socket NDR_NAMED_PIPE_AUTH
|
||||
LIBEVENTS MESSAGING samba-socket NDR_NAMED_PIPE_AUTH
|
||||
|
||||
service_OBJ_FILES = $(addprefix $(smbdsrcdir)/, \
|
||||
service.o \
|
||||
|
@ -15,7 +15,7 @@ process_model_single_OBJ_FILES = $(smbdsrcdir)/process_single.o
|
||||
[MODULE::process_model_standard]
|
||||
INIT_FUNCTION = process_model_standard_init
|
||||
SUBSYSTEM = process_model
|
||||
PRIVATE_DEPENDENCIES = SETPROCTITLE
|
||||
PRIVATE_DEPENDENCIES = LIBEVENTS SETPROCTITLE
|
||||
# End MODULE process_model_standard
|
||||
################################################
|
||||
|
||||
@ -37,6 +37,7 @@ process_model_thread_OBJ_FILES = $(smbdsrcdir)/process_thread.o
|
||||
[MODULE::process_model_prefork]
|
||||
INIT_FUNCTION = process_model_prefork_init
|
||||
SUBSYSTEM = process_model
|
||||
PRIVATE_DEPENDENCIES = LIBEVENTS SETPROCTITLE
|
||||
# End MODULE process_model_thread
|
||||
################################################
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "lib/events/events.h"
|
||||
#include "lib/socket/socket.h"
|
||||
#include "smbd/service.h"
|
||||
#include "param/param.h"
|
||||
|
Loading…
Reference in New Issue
Block a user