mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
s3-messages: only include messages.h where needed.
Guenther
This commit is contained in:
parent
4bd5f51c43
commit
b2af281e50
@ -20,6 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
/* This is the Samba3-specific implementation of reopen_logs(), which
|
||||
* calls out to the s3 loadparm code, and means that we don't depend
|
||||
|
@ -21,6 +21,8 @@
|
||||
#define _CTDBD_CONN_H
|
||||
|
||||
struct ctdbd_connection;
|
||||
struct messaging_context;
|
||||
struct messaging_rec;
|
||||
|
||||
NTSTATUS ctdbd_messaging_connection(TALLOC_CTX *mem_ctx,
|
||||
struct ctdbd_connection **pconn);
|
||||
|
@ -535,7 +535,6 @@ typedef char fstring[FSTRING_LEN];
|
||||
#include "dynconfig.h"
|
||||
#include "debugparse.h"
|
||||
#include "../libcli/security/privileges.h"
|
||||
#include "messages.h"
|
||||
#include "locking.h"
|
||||
#include "smb_perfcount.h"
|
||||
#include "smb.h"
|
||||
|
@ -31,6 +31,8 @@ enum brl_flavour {WINDOWS_LOCK = 0, POSIX_LOCK = 1};
|
||||
|
||||
#define IS_PENDING_LOCK(type) ((type) == PENDING_READ_LOCK || (type) == PENDING_WRITE_LOCK)
|
||||
|
||||
#include "librpc/gen_ndr/server_id.h"
|
||||
|
||||
/* This contains elements that differentiate locks. The smbpid is a
|
||||
client supplied pid, and is essentially the locking context for
|
||||
this client */
|
||||
|
@ -621,6 +621,8 @@ struct pending_message_list {
|
||||
|
||||
#define SHARE_MODE_FLAG_POSIX_OPEN 0x1
|
||||
|
||||
#include "librpc/gen_ndr/server_id.h"
|
||||
|
||||
/* struct returned by get_share_modes */
|
||||
struct share_mode_entry {
|
||||
struct server_id pid;
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "librpc/gen_ndr/ndr_messaging.h"
|
||||
#include "ctdbd_conn.h"
|
||||
#include "packet.h"
|
||||
#include "messages.h"
|
||||
|
||||
/* paths to these include files come from --with-ctdb= in configure */
|
||||
#include "ctdb.h"
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdbd_conn.h"
|
||||
#include "g_lock.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct db_ctdb_transaction_handle {
|
||||
struct db_ctdb_ctx *ctx;
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
/**
|
||||
* @file dmallocmsg.c
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "ctdbd_conn.h"
|
||||
#include "../lib/util/select.h"
|
||||
#include "system/select.h"
|
||||
#include "messages.h"
|
||||
|
||||
static NTSTATUS g_lock_force_unlock(struct g_lock_ctx *ctx, const char *name,
|
||||
struct server_id pid);
|
||||
|
@ -50,6 +50,7 @@
|
||||
#include "librpc/gen_ndr/ndr_messaging.h"
|
||||
#include "dbwrap.h"
|
||||
#include "serverid.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct messaging_callback {
|
||||
struct messaging_callback *prev, *next;
|
||||
|
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "messages.h"
|
||||
|
||||
#ifdef CLUSTER_SUPPORT
|
||||
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include "system/filesys.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "librpc/gen_ndr/ndr_messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct messaging_tdb_context {
|
||||
struct messaging_context *msg_ctx;
|
||||
|
@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct tevent_context *server_event_ctx = NULL;
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
/**
|
||||
* @file tallocmsg.c
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "secrets.h"
|
||||
#include "ctdbd_conn.h"
|
||||
#include "../lib/util/util_pw.h"
|
||||
#include "messages.h"
|
||||
|
||||
/* Max allowable allococation - 256mb - 0x10000000 */
|
||||
#define MAX_ALLOC_SIZE (1024*1024*256)
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct server_id sconn_server_id(const struct smbd_server_connection *sconn)
|
||||
{
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "../librpc/gen_ndr/ndr_netlogon.h"
|
||||
#include "../librpc/gen_ndr/ndr_netlogon_c.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "messages.h"
|
||||
|
||||
/**
|
||||
* Fix up the delta, dealing with encryption issues so that the final
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "libsmb/clidgram.h"
|
||||
#include "libsmb/nmblib.h"
|
||||
#include "messages.h"
|
||||
|
||||
/*
|
||||
* cli_send_mailslot, send a mailslot for client code ...
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "smbd/globals.h"
|
||||
#include "dbwrap.h"
|
||||
#include "serverid.h"
|
||||
#include "messages.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_LOCKING
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "dbwrap.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "serverid.h"
|
||||
#include "messages.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_LOCKING
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "nmbd/nmbd.h"
|
||||
#include "serverid.h"
|
||||
#include "messages.h"
|
||||
|
||||
int ClientNMB = -1;
|
||||
int ClientDGRAM = -1;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "../librpc/gen_ndr/spoolss.h"
|
||||
#include "nt_printing.h"
|
||||
#include "printing/notify.h"
|
||||
#include "messages.h"
|
||||
|
||||
static TALLOC_CTX *send_ctx;
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "passdb/machine_sid.h"
|
||||
#include "smbd/smbd.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
/* Map generic permissions to printer object specific permissions */
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "serverid.h"
|
||||
#include "smbd/smbd.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
extern struct current_user current_user;
|
||||
extern userdom_struct current_user_info;
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "locking/proto.h"
|
||||
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
#include "include/printing.h"
|
||||
#include "printing/nt_printing_migrate.h"
|
||||
#include "librpc/gen_ndr/srv_winreg.h"
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
#ifdef WITH_PROFILE
|
||||
#define IPC_PERMS ((S_IRUSR | S_IWUSR) | S_IRGRP | S_IROTH)
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "../librpc/gen_ndr/srv_epmapper.h"
|
||||
#include "rpc_server/rpc_server.h"
|
||||
#include "rpc_server/epmapper/srv_epmapper.h"
|
||||
#include "messages.h"
|
||||
|
||||
#define DAEMON_NAME "epmd"
|
||||
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include "../libcli/registry/util_reg.h"
|
||||
#include "passdb.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
extern userdom_struct current_user_info;
|
||||
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include "../libcli/registry/util_reg.h"
|
||||
#include "smbd/smbd.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
/* macros stolen from s4 spoolss server */
|
||||
#define SPOOLSS_BUFFER_UNION(fn,info,level) \
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "../lib/util/util_pw.h"
|
||||
#include "smbd/smbd.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
extern const struct generic_mapping file_generic_mapping;
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "smbd/smbd.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_LOCKING
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "fake_file.h"
|
||||
#include "transfer_file.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
/****************************************************************************
|
||||
Run a file if it is a magic script.
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "smbd/smbd.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "memcache.h"
|
||||
#include "messages.h"
|
||||
|
||||
#if defined(WITH_AIO)
|
||||
struct aio_extra *aio_list_head = NULL;
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "idmap_cache.h"
|
||||
#include "passdb/lookup_sid.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct id {
|
||||
union {
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "../libcli/auth/spnego.h"
|
||||
#include "serverid.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
extern fstring remote_proto;
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "dbwrap.h"
|
||||
#include "smbd/smbd.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct notify_context {
|
||||
struct db_context *db_recursive;
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "../libcli/security/security.h"
|
||||
#include "../librpc/gen_ndr/ndr_security.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
extern const struct generic_mapping file_generic_mapping;
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "smbd/smbd.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
/****************************************************************************
|
||||
Get the number of current exclusive oplocks.
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "system/select.h"
|
||||
#include "passdb.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
extern bool global_machine_password_needs_changing;
|
||||
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "serverid.h"
|
||||
#include "passdb.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
extern void start_epmd(struct tevent_context *ev_ctx,
|
||||
struct messaging_context *msg_ctx);
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "printing/pcap.h"
|
||||
#include "printing/load.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
/****************************************************************************
|
||||
purge stale printers and reload from pre-populated pcap cache
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "libads/kerberos_proto.h"
|
||||
#include "../lib/util/asn1.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
/* For split krb5 SPNEGO blobs. */
|
||||
struct pending_auth_data {
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "smbd/globals.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct smbd_smb2_lock_element {
|
||||
uint64_t offset;
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "memcache.h"
|
||||
#include "smbd/smbd.h"
|
||||
#include "messages.h"
|
||||
|
||||
/****************************************************************************
|
||||
Stat cache code used in unix_convert.
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "librpc/gen_ndr/messaging.h"
|
||||
#include "messages.h"
|
||||
|
||||
static int pong_count;
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "includes.h"
|
||||
#include "system/filesys.h"
|
||||
#include "dbwrap.h"
|
||||
#include "messages.h"
|
||||
|
||||
typedef enum { OP_FETCH, OP_STORE, OP_DELETE, OP_ERASE, OP_LISTKEYS } dbwrap_op;
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "system/filesys.h"
|
||||
#include "popt_common.h"
|
||||
#include "dbwrap.h"
|
||||
#include "messages.h"
|
||||
|
||||
#if 0
|
||||
#include "lib/events/events.h"
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include "lib/netapi/netapi.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb.h"
|
||||
#include "messages.h"
|
||||
|
||||
#ifdef WITH_FAKE_KASERVER
|
||||
#include "utils/net_afs.h"
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "includes.h"
|
||||
#include "net.h"
|
||||
#include "g_lock.h"
|
||||
#include "messages.h"
|
||||
|
||||
static bool net_g_lock_init(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context **pev,
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "includes.h"
|
||||
#include "utils/net.h"
|
||||
#include "session.h"
|
||||
#include "messages.h"
|
||||
|
||||
int net_status_usage(struct net_context *c, int argc, const char **argv)
|
||||
{
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "nt_printing.h"
|
||||
#include "printing/notify.h"
|
||||
#include "libsmb/nmblib.h"
|
||||
#include "messages.h"
|
||||
|
||||
#if HAVE_LIBUNWIND_H
|
||||
#include <libunwind.h>
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "../libcli/security/security.h"
|
||||
#include "session.h"
|
||||
#include "locking/proto.h"
|
||||
#include "messages.h"
|
||||
|
||||
#define SMB_MAXPIDS 2048
|
||||
static uid_t Ucrit_uid = 0; /* added by OH */
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "lib/addrchange.h"
|
||||
#include "serverid.h"
|
||||
#include "auth.h"
|
||||
#include "messages.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
@ -75,6 +75,7 @@
|
||||
#include "secrets.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "passdb.h"
|
||||
#include "messages.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "../lib/util/select.h"
|
||||
#include "../libcli/security/security.h"
|
||||
#include "system/select.h"
|
||||
#include "messages.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_WINBIND
|
||||
|
Loading…
x
Reference in New Issue
Block a user