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

r14380: Reduce the size of structs.h

(This used to be commit 1a16a6f1df)
This commit is contained in:
Jelmer Vernooij
2006-03-14 15:03:25 +00:00
committed by Gerald (Jerry) Carter
parent eefe30b7d8
commit e3f2414cf9
57 changed files with 189 additions and 175 deletions

View File

@@ -23,8 +23,8 @@
#include "includes.h" #include "includes.h"
#include "system/time.h" #include "system/time.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "dsdb/samdb/samdb.h"
#include "db_wrap.h" #include "db_wrap.h"
#include "dsdb/samdb/samdb.h"
#include "libcli/security/proto.h" #include "libcli/security/proto.h"
#include "libcli/ldap/ldap.h" #include "libcli/ldap/ldap.h"

View File

@@ -25,7 +25,7 @@
#include "includes.h" #include "includes.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "libcli/security/proto.h" #include "libcli/security/proto.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
/* this default function can be used by mostly all backends /* this default function can be used by mostly all backends
* which don't want to set a challlenge * which don't want to set a challlenge

View File

@@ -25,7 +25,7 @@
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/ndr_samr.h" /* for struct samrPassword */ #include "librpc/gen_ndr/ndr_samr.h" /* for struct samrPassword */
#include "auth/gensec/gensec.h" #include "auth/gensec/gensec.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
/** /**
* Create a new credentials structure * Create a new credentials structure

View File

@@ -25,8 +25,7 @@
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/ndr_samr.h" /* for struct samrPassword */ #include "librpc/gen_ndr/ndr_samr.h" /* for struct samrPassword */
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "libcli/auth/proto.h"
void cli_credentials_get_ntlm_username_domain(struct cli_credentials *cred, TALLOC_CTX *mem_ctx, void cli_credentials_get_ntlm_username_domain(struct cli_credentials *cred, TALLOC_CTX *mem_ctx,
const char **username, const char **username,

View File

@@ -27,6 +27,7 @@
#include "auth/kerberos/kerberos.h" #include "auth/kerberos/kerberos.h"
#include "librpc/gen_ndr/ndr_krb5pac.h" #include "librpc/gen_ndr/ndr_krb5pac.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "ldb.h"
#include "auth/auth_sam.h" #include "auth/auth_sam.h"
enum gensec_gssapi_sasl_state enum gensec_gssapi_sasl_state

View File

@@ -29,6 +29,7 @@
#include "auth/kerberos/kerberos.h" #include "auth/kerberos/kerberos.h"
#include "librpc/gen_ndr/ndr_krb5pac.h" #include "librpc/gen_ndr/ndr_krb5pac.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "ldb.h"
#include "auth/auth_sam.h" #include "auth/auth_sam.h"
#include "system/network.h" #include "system/network.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"

View File

@@ -23,6 +23,9 @@
#include "auth/credentials/credentials.h" #include "auth/credentials/credentials.h"
#include "auth/kerberos/krb5_init_context.h" #include "auth/kerberos/krb5_init_context.h"
#include "librpc/gen_ndr/krb5pac.h"
struct auth_serversupplied_info;
struct ccache_container { struct ccache_container {
struct smb_krb5_context *smb_krb5_context; struct smb_krb5_context *smb_krb5_context;

View File

@@ -23,8 +23,7 @@
#include "includes.h" #include "includes.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "librpc/gen_ndr/ndr_netlogon.h" #include "librpc/gen_ndr/ndr_netlogon.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "libcli/auth/proto.h"
/**************************************************************************** /****************************************************************************
Core of smb password checking routine. Core of smb password checking routine.

View File

@@ -185,4 +185,5 @@ struct gensec_ntlmssp_state
struct auth_serversupplied_info *server_info; struct auth_serversupplied_info *server_info;
}; };
struct auth_session_info;
#include "auth/ntlmssp/proto.h" #include "auth/ntlmssp/proto.h"

View File

@@ -27,7 +27,7 @@
#include "auth/ntlmssp/ntlmssp.h" #include "auth/ntlmssp/ntlmssp.h"
#include "auth/ntlmssp/msrpc_parse.h" #include "auth/ntlmssp/msrpc_parse.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
/********************************************************************* /*********************************************************************
Client side NTLMSSP Client side NTLMSSP

View File

@@ -29,7 +29,7 @@
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "pstring.h" #include "pstring.h"
#include "system/filesys.h" #include "system/filesys.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
/** /**
* Set a username on an NTLMSSP context - ensures it is talloc()ed * Set a username on an NTLMSSP context - ensures it is talloc()ed

View File

@@ -5,7 +5,7 @@ include samdb/ldb_modules/config.mk
################################################ ################################################
# Start SUBSYSTEM SAMDB # Start SUBSYSTEM SAMDB
[SUBSYSTEM::SAMDB] [SUBSYSTEM::SAMDB]
PRIVATE_PROTO_HEADER = samdb/samdb.h PRIVATE_PROTO_HEADER = samdb/samdb_proto.h
REQUIRED_SUBSYSTEMS = DB_WRAP LIBCLI_LDAP REQUIRED_SUBSYSTEMS = DB_WRAP LIBCLI_LDAP
OBJ_FILES = \ OBJ_FILES = \
samdb/samdb.o \ samdb/samdb.o \

View File

@@ -28,11 +28,11 @@
#include "lib/ldb/include/ldb_errors.h" #include "lib/ldb/include/ldb_errors.h"
#include "system/kerberos.h" #include "system/kerberos.h"
#include "auth/kerberos/kerberos.h" #include "auth/kerberos/kerberos.h"
#include "dsdb/samdb/samdb.h"
#include "libcli/ldap/ldap.h" #include "libcli/ldap/ldap.h"
#include "libcli/security/proto.h" #include "libcli/security/proto.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "db_wrap.h" #include "db_wrap.h"
#include "dsdb/samdb/samdb.h"
static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx, static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
struct smb_krb5_context *smb_krb5_context, struct smb_krb5_context *smb_krb5_context,

View File

@@ -36,8 +36,7 @@
#include "ldb/include/ldb_private.h" #include "ldb/include/ldb_private.h"
#include "librpc/gen_ndr/ndr_misc.h" #include "librpc/gen_ndr/ndr_misc.h"
#include "librpc/gen_ndr/ndr_samr.h" #include "librpc/gen_ndr/ndr_samr.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "libcli/auth/proto.h"
#include "system/kerberos.h" #include "system/kerberos.h"
#include "auth/kerberos/kerberos.h" #include "auth/kerberos/kerberos.h"
#include "system/time.h" #include "system/time.h"

View File

@@ -0,0 +1,32 @@
/*
Unix SMB/CIFS implementation.
interface functions for the sam database
Copyright (C) Andrew Tridgell 2004
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __SAMDB_H__
#define __SAMDB_H__
struct auth_session_info;
struct drsuapi_DsNameInfo1;
#include "ldb.h"
#include "dsdb/samdb/samdb_proto.h"
#endif /* __SAMDB_H__ */

View File

@@ -122,11 +122,7 @@ enum brl_type {
#include "libcli/nbt/libnbt.h" #include "libcli/nbt/libnbt.h"
#include "libcli/util/proto.h" #include "libcli/util/proto.h"
#undef _PRINTF_ATTRIBUTE
#define _PRINTF_ATTRIBUTE(a1, a2)
/* String routines */ /* String routines */
#include "util/safe_string.h" #include "util/safe_string.h"
#if 0 #if 0

View File

@@ -23,143 +23,10 @@
"scope is only this definition or declaration" warning "scope is only this definition or declaration" warning
*/ */
struct spoolss_EnumPrinters;
struct spoolss_EnumForms;
struct spoolss_EnumJobs;
struct spoolss_EnumPrinterDrivers;
struct spoolss_EnumPorts;
struct spoolss_EnumMonitors;
struct spoolss_EnumPrintProcessors;
union spoolss_PrinterInfo;
union spoolss_JobInfo;
union spoolss_DriverInfo;
union spoolss_FormInfo;
union spoolss_PortInfo;
union spoolss_MonitorInfo;
union spoolss_PrintProcessorInfo;
struct spoolss_GetPrinterData;
struct spoolss_SetPrinterData;
struct spoolss_DeviceMode;
struct drsuapi_DsNameInfo1;
struct drsuapi_DsCrackNames;
struct drsuapi_DsReplicaObjectListItem;
struct drsuapi_DsReplicaObjectListItemEx;
struct DsPrivate;
struct PAC_LOGON_INFO;
struct PAC_DATA;
struct PAC_BUFFER;
struct samr_ChangePasswordUser;
struct samr_OemChangePasswordUser2;
struct samr_ChangePasswordUser3;
struct samr_ChangePasswordUser2;
struct samr_CryptPassword;
struct samr_CryptPasswordEx;
struct samr_DomInfo1;
struct netr_Credential;
struct netr_Authenticator;
union netr_Validation;
struct iface_struct;
struct utimbuf;
struct auth_serversupplied_info;
struct auth_session_info;
struct spnego_data;
struct gensec_ntlmssp_state;
struct asn1_data; struct asn1_data;
struct ldapsrv_call;
struct ldapsrv_connection;
struct ldap_connection;
struct rap_NetShareEnum;
struct rap_NetServerEnum2;
struct smbsrv_tcon; struct smbsrv_tcon;
struct smbsrv_connection; struct smbsrv_connection;
struct smbsrv_request;
struct ntvfs_module_context;
struct dcesrv_context;
struct dcesrv_call_state;
struct libnet_context;
struct libnet_JoinDomain;
struct clilist_file_info;
struct netr_LMSessionKey;
struct ldb_dn;
struct ldb_message;
struct ldb_context;
struct ldb_parse_tree;
struct lsa_RightSet;
struct irpc_request;
struct smb_composite_loadfile;
struct smb_composite_savefile;
struct smb_composite_connect;
struct smb_composite_sesssetup;
struct smb_composite_fetchfile;
struct smb_composite_appendacl;
struct smb_composite_fsinfo;
struct nbt_dgram_socket;
struct dgram_mailslot_handler;
struct messaging_context;
struct stream_connection;
struct task_server;
struct stream_server_ops;
struct nbt_dc_name;
struct wb_sid_object;
struct cldap_socket;
struct cldapd_server;
struct websrv_context;
struct wbsrv_call;
struct ldb_map_attribute;
struct ldb_map_objectclass;
struct param_context; struct param_context;
struct socket_address;
struct smbcli_request;
struct smbcli_tree; struct smbcli_tree;
struct smb2_tree; struct smb2_tree;
struct socket_address;
struct IUnknown;
struct IUnknown_vtable;
struct MprVar;
struct registry_context;
struct nbtd_interface;
struct smbcli_session;
struct smbcli_state;
struct model_ops;
struct smb_wire_string;
union smb_fileinfo;

View File

@@ -29,9 +29,11 @@
#include "system/network.h" #include "system/network.h"
#include "dlinklist.h" #include "dlinklist.h"
#include "lib/ldb/include/ldb.h" #include "lib/ldb/include/ldb.h"
#include "heimdal/lib/krb5/krb5_locl.h"
#include "heimdal/lib/krb5/krb5-private.h" #include "heimdal/lib/krb5/krb5-private.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "dsdb/samdb/samdb.h" #include "dsdb/samdb/samdb.h"
#include "rpc_server/dcerpc_server.h"
#include "rpc_server/samr/proto.h" #include "rpc_server/samr/proto.h"
/* hold information about one kdc socket */ /* hold information about one kdc socket */

View File

@@ -28,4 +28,8 @@ struct tdb_wrap {
struct tdb_wrap *next, *prev; struct tdb_wrap *next, *prev;
}; };
struct auth_session_info;
struct ldb_message;
struct ldb_dn;
#include "db_wrap_proto.h" #include "db_wrap_proto.h"

View File

@@ -0,0 +1,25 @@
/*
samba -- Unix SMB/CIFS implementation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __LIBCLI_AUTH_H__
#define __LIBCLI_AUTH_H__
#include "librpc/gen_ndr/netlogon.h"
#include "auth/credentials/credentials.h"
#include "libcli/auth/proto.h"
#endif /* __LIBCLI_AUTH_H__ */

View File

@@ -28,8 +28,7 @@
#include "auth/ntlmssp/ntlmssp.h" #include "auth/ntlmssp/ntlmssp.h"
#include "auth/ntlmssp/msrpc_parse.h" #include "auth/ntlmssp/msrpc_parse.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "libcli/auth/proto.h"
#include "pstring.h" #include "pstring.h"
/* /*

View File

@@ -24,8 +24,7 @@
#include "includes.h" #include "includes.h"
#include "libcli/libcli.h" #include "libcli/libcli.h"
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "libcli/auth/proto.h"
#include "libcli/smb_composite/smb_composite.h" #include "libcli/smb_composite/smb_composite.h"
/* /*

View File

@@ -61,4 +61,7 @@ struct composite_context {
BOOL used_wait; BOOL used_wait;
}; };
struct irpc_request;
struct smbcli_request;
#include "libcli/composite/proto.h" #include "libcli/composite/proto.h"

View File

@@ -19,6 +19,9 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __LIBCLI_H__
#define __LIBCLI_H__
#include "smb.h" #include "smb.h"
/* /*
@@ -47,3 +50,5 @@ struct nbt_dc_name {
}; };
#include "libcli/libcli_proto.h" #include "libcli/libcli_proto.h"
#endif /* __LIBCLI_H__ */

View File

@@ -25,8 +25,7 @@
#include "libcli/raw/libcliraw.h" #include "libcli/raw/libcliraw.h"
#include "libcli/composite/composite.h" #include "libcli/composite/composite.h"
#include "libcli/smb_composite/smb_composite.h" #include "libcli/smb_composite/smb_composite.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "libcli/auth/proto.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "version.h" #include "version.h"

View File

@@ -171,4 +171,6 @@ struct smb_composite_connectmulti {
} out; } out;
}; };
struct smbcli_session;
#include "libcli/smb_composite/proto.h" #include "libcli/smb_composite/proto.h"

View File

@@ -39,6 +39,7 @@ struct libnet_context {
}; };
#include "ldb.h"
#include "libnet/libnet_passwd.h" #include "libnet/libnet_passwd.h"
#include "libnet/libnet_time.h" #include "libnet/libnet_time.h"
#include "libnet/libnet_rpc.h" #include "libnet/libnet_rpc.h"

View File

@@ -20,6 +20,9 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __LIBNET_JOIN_H__
#define __LIBNET_JOIN_H__
#include "librpc/gen_ndr/ndr_netlogon.h" #include "librpc/gen_ndr/ndr_netlogon.h"
enum libnet_Join_level { enum libnet_Join_level {
@@ -76,3 +79,5 @@ struct libnet_Join {
} out; } out;
}; };
#endif /* __LIBNET_JOIN_H__ */

View File

@@ -23,8 +23,7 @@
#include "smb.h" #include "smb.h"
#include "libnet/libnet.h" #include "libnet/libnet.h"
#include "lib/crypto/crypto.h" #include "lib/crypto/crypto.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "libcli/auth/proto.h"
/* /*
* do a password change using DCERPC/SAMR calls * do a password change using DCERPC/SAMR calls

View File

@@ -23,9 +23,8 @@
#include "includes.h" #include "includes.h"
#include "libnet/libnet.h" #include "libnet/libnet.h"
#include "auth/credentials/credentials.h" #include "libcli/auth/libcli_auth.h"
#include "auth/gensec/schannel_proto.h" #include "auth/gensec/schannel_proto.h"
#include "libcli/auth/proto.h"
/** /**

View File

@@ -25,7 +25,7 @@
#include "includes.h" #include "includes.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "libcli/composite/composite.h" #include "libcli/composite/composite.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
struct schannel_key_state { struct schannel_key_state {

View File

@@ -74,5 +74,6 @@ enum wins_hook_action {
WINS_HOOK_DELETE = 2 WINS_HOOK_DELETE = 2
}; };
struct ldb_message;
#include "nbt_server/wins/winsdb_proto.h" #include "nbt_server/wins/winsdb_proto.h"

View File

@@ -66,6 +66,14 @@ struct spoolss_StartDocPrinter;
struct spoolss_EndDocPrinter; struct spoolss_EndDocPrinter;
struct spoolss_StartPagePrinter; struct spoolss_StartPagePrinter;
struct spoolss_EndPagePrinter; struct spoolss_EndPagePrinter;
struct spoolss_GetPrinterData;
struct spoolss_SetPrinterData;
struct spoolss_EnumPrinterDrivers;
struct spoolss_EnumMonitors;
struct spoolss_EnumPrinters;
struct spoolss_EnumForms;
struct spoolss_EnumPorts;
struct spoolss_EnumPrintProcessors;
/* the ntptr operations structure - contains function pointers to /* the ntptr operations structure - contains function pointers to
the backend implementations of each operation */ the backend implementations of each operation */

View File

@@ -29,6 +29,7 @@
#include "dlinklist.h" #include "dlinklist.h"
#include "smb_server/smb_server.h" #include "smb_server/smb_server.h"
#include "ntvfs/ntvfs.h" #include "ntvfs/ntvfs.h"
#include "libcli/rap/rap.h"
#include "ntvfs/ipc/proto.h" #include "ntvfs/ipc/proto.h"
#include "rpc_server/dcerpc_server.h" #include "rpc_server/dcerpc_server.h"

View File

@@ -213,4 +213,6 @@ struct ntvfs_critical_sizes {
int sizeof_ntvfs_request; int sizeof_ntvfs_request;
}; };
struct messaging_context;
#include "ntvfs/ntvfs_proto.h" #include "ntvfs/ntvfs_proto.h"

View File

@@ -66,4 +66,6 @@
#define DCESRV_PULL_HANDLE(h, inhandle, t) DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, NT_STATUS_INVALID_HANDLE) #define DCESRV_PULL_HANDLE(h, inhandle, t) DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, NT_STATUS_INVALID_HANDLE)
#define DCESRV_PULL_HANDLE_WERR(h, inhandle, t) DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, WERR_BADFID) #define DCESRV_PULL_HANDLE_WERR(h, inhandle, t) DCESRV_PULL_HANDLE_RETVAL(h, inhandle, t, WERR_BADFID)
struct dcesrv_context;
#include "rpc_server/common/proto.h" #include "rpc_server/common/proto.h"

View File

@@ -22,6 +22,7 @@
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/ndr_srvsvc.h" #include "librpc/gen_ndr/ndr_srvsvc.h"
#include "rpc_server/dcerpc_server.h"
/* /*
Here are common server info functions used by some dcerpc server interfaces Here are common server info functions used by some dcerpc server interfaces

View File

@@ -22,6 +22,7 @@
#include "includes.h" #include "includes.h"
#include "librpc/gen_ndr/ndr_srvsvc.h" #include "librpc/gen_ndr/ndr_srvsvc.h"
#include "rpc_server/dcerpc_server.h"
/* /*
Here are common server info functions used by some dcerpc server interfaces Here are common server info functions used by some dcerpc server interfaces

View File

@@ -240,6 +240,8 @@ struct dcesrv_critical_sizes {
int sizeof_dcesrv_handle; int sizeof_dcesrv_handle;
}; };
struct model_ops;
#include "rpc_server/dcerpc_server_proto.h" #include "rpc_server/dcerpc_server_proto.h"
#endif /* SAMBA_DCERPC_SERVER_H */ #endif /* SAMBA_DCERPC_SERVER_H */

View File

@@ -28,8 +28,9 @@
#include "dsdb/samdb/samdb.h" #include "dsdb/samdb/samdb.h"
#include "libcli/ldap/ldap.h" #include "libcli/ldap/ldap.h"
#include "libcli/security/proto.h" #include "libcli/security/proto.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
#include "smb.h" #include "smb.h"
#include "smb_server/smb_server.h"
#include "ntvfs/ntvfs.h" #include "ntvfs/ntvfs.h"
#include "passdb/secrets.h" #include "passdb/secrets.h"
#include "db_wrap.h" #include "db_wrap.h"

View File

@@ -29,7 +29,7 @@
#include "dsdb/samdb/samdb.h" #include "dsdb/samdb/samdb.h"
#include "rpc_server/samr/proto.h" #include "rpc_server/samr/proto.h"
#include "db_wrap.h" #include "db_wrap.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
#include "auth/gensec/schannel_state.h" #include "auth/gensec/schannel_state.h"
struct server_pipe_state { struct server_pipe_state {

View File

@@ -32,7 +32,7 @@
#include "dsdb/samdb/samdb.h" #include "dsdb/samdb/samdb.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "rpc_server/samr/proto.h" #include "rpc_server/samr/proto.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
#include "db_wrap.h" #include "db_wrap.h"
/* /*

View File

@@ -26,6 +26,7 @@
#include "librpc/gen_ndr/ndr_unixinfo.h" #include "librpc/gen_ndr/ndr_unixinfo.h"
#include "lib/events/events.h" #include "lib/events/events.h"
#include "smb.h" #include "smb.h"
#include "smb_server/smb_server.h"
#include "ntvfs/ntvfs.h" #include "ntvfs/ntvfs.h"
#include <sys/types.h> #include <sys/types.h>

View File

@@ -29,4 +29,7 @@ void mprAddArray(struct MprVar *var, int i, struct MprVar v);
void mprSetCFunction(struct MprVar *obj, const char *name, MprCFunction fn); void mprSetCFunction(struct MprVar *obj, const char *name, MprCFunction fn);
void mprSetStringCFunction(struct MprVar *obj, const char *name, MprStringCFunction fn); void mprSetStringCFunction(struct MprVar *obj, const char *name, MprStringCFunction fn);
struct ldb_context;
struct ldb_message;
#include "scripting/ejs/proto.h" #include "scripting/ejs/proto.h"

View File

@@ -49,4 +49,6 @@ struct smb2srv_request {
struct smb2_request_buffer out; struct smb2_request_buffer out;
}; };
struct smbsrv_request;
#include "smb_server/smb2/smb2_proto.h" #include "smb_server/smb2/smb2_proto.h"

View File

@@ -105,7 +105,7 @@ REQUIRED_SUBSYSTEMS = \
####################### #######################
# Start SUBSERVICE # Start SUBSERVICE
[SUBSYSTEM::service] [SUBSYSTEM::service]
PRIVATE_PROTO_HEADER = service.h PRIVATE_PROTO_HEADER = service_proto.h
OBJ_FILES = \ OBJ_FILES = \
service.o \ service.o \
service_stream.o \ service_stream.o \

View File

@@ -22,6 +22,9 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __PROCESS_MODEL_H__
#define __PROCESS_MODEL_H__
#include "lib/socket/socket.h" #include "lib/socket/socket.h"
/* modules can use the following to determine if the interface has changed /* modules can use the following to determine if the interface has changed
@@ -65,3 +68,5 @@ struct process_model_critical_sizes {
}; };
#include "smbd/process_model_proto.h" #include "smbd/process_model_proto.h"
#endif /* __PROCESS_MODEL_H__ */

View File

@@ -33,6 +33,7 @@
#include "ldb/include/ldb.h" #include "ldb/include/ldb.h"
#include "registry/registry.h" #include "registry/registry.h"
#include "smb.h" #include "smb.h"
#include "smb_server/smb_server.h"
#include "ntvfs/ntvfs.h" #include "ntvfs/ntvfs.h"
#include "ntptr/ntptr.h" #include "ntptr/ntptr.h"
#include "auth/gensec/gensec.h" #include "auth/gensec/gensec.h"

31
source4/smbd/service.h Normal file
View File

@@ -0,0 +1,31 @@
/*
Unix SMB/CIFS implementation.
SERVER SERVICE code
Copyright (C) Andrew Tridgell 2003-2005
Copyright (C) Stefan (metze) Metzmacher 2004
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __SERVICE_H__
#define __SERVICE_H__
#include "smbd/service_stream.h"
#include "smbd/service_task.h"
#include "smbd/service_proto.h"
#endif /* __SERVICE_H__ */

View File

@@ -21,6 +21,9 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __SERVICE_STREAM_H__
#define __SERVICE_STREAM_H__
/* modules can use the following to determine if the interface has changed /* modules can use the following to determine if the interface has changed
* please increment the version number after each interface change * please increment the version number after each interface change
* with a comment and maybe update struct stream_connection_critical_sizes. * with a comment and maybe update struct stream_connection_critical_sizes.
@@ -58,3 +61,5 @@ struct stream_server_ops {
void (*recv_handler)(struct stream_connection *, uint16_t); void (*recv_handler)(struct stream_connection *, uint16_t);
void (*send_handler)(struct stream_connection *, uint16_t); void (*send_handler)(struct stream_connection *, uint16_t);
}; };
#endif /* __SERVICE_STREAM_H__ */

View File

@@ -20,6 +20,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __SERVICE_TASK_H__
#define __SERVICE_TASK_H__
struct task_server { struct task_server {
struct event_context *event_ctx; struct event_context *event_ctx;
@@ -29,3 +31,4 @@ struct task_server {
void *private; void *private;
}; };
#endif /* __SERVICE_TASK_H__ */

View File

@@ -27,7 +27,7 @@
#include "lib/cmdline/popt_common.h" #include "lib/cmdline/popt_common.h"
#include "auth/auth.h" #include "auth/auth.h"
#include "pstring.h" #include "pstring.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
#define SQUID_BUFFER_SIZE 2010 #define SQUID_BUFFER_SIZE 2010

View File

@@ -19,7 +19,6 @@
*/ */
#include "smbd/process_model.h" #include "smbd/process_model.h"
#include "web_server/proto.h"
/* /*
context of one open web connection context of one open web connection
@@ -77,3 +76,5 @@ struct esp_data {
struct tls_params *tls_params; struct tls_params *tls_params;
}; };
#include "web_server/proto.h"

View File

@@ -29,8 +29,7 @@
#include "librpc/gen_ndr/ndr_irpc.h" #include "librpc/gen_ndr/ndr_irpc.h"
#include "libcli/auth/credentials.h" #include "libcli/auth/credentials.h"
#include "libcli/security/proto.h" #include "libcli/security/proto.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
#include "auth/credentials/credentials.h"
#include "winbind/wb_helper.h" #include "winbind/wb_helper.h"
@@ -555,7 +554,7 @@ struct cmd_checkmachacc_state {
static void cmd_checkmachacc_recv_init(struct composite_context *ctx); static void cmd_checkmachacc_recv_init(struct composite_context *ctx);
struct composite_context *wb_cmd_checkmachacc_send(struct wbsrv_call *call) struct composite_context *wb_cmd_checkmachacc_send(struct wbsrv_call *call)
{ {
struct composite_context *result, *ctx; struct composite_context *result, *ctx;
struct cmd_checkmachacc_state *state; struct cmd_checkmachacc_state *state;
@@ -599,14 +598,14 @@ static void cmd_checkmachacc_recv_init(struct composite_context *ctx)
composite_done(state->ctx); composite_done(state->ctx);
} }
NTSTATUS wb_cmd_checkmachacc_recv(struct composite_context *c) NTSTATUS wb_cmd_checkmachacc_recv(struct composite_context *c)
{ {
NTSTATUS status = composite_wait(c); NTSTATUS status = composite_wait(c);
talloc_free(c); talloc_free(c);
return status; return status;
} }
NTSTATUS wb_cmd_checkmachacc(struct wbsrv_call *call) NTSTATUS wb_cmd_checkmachacc(struct wbsrv_call *call)
{ {
struct composite_context *c = wb_cmd_checkmachacc_send(call); struct composite_context *c = wb_cmd_checkmachacc_send(call);
return wb_cmd_checkmachacc_recv(c); return wb_cmd_checkmachacc_recv(c);

View File

@@ -20,6 +20,9 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __WB_ASYNC_HELPERS_H__
#define __WB_ASYNC_HELPERS_H__
#include "librpc/gen_ndr/lsa.h" #include "librpc/gen_ndr/lsa.h"
struct wb_sid_object { struct wb_sid_object {
@@ -29,3 +32,4 @@ struct wb_sid_object {
const char *name; const char *name;
}; };
#endif /* __WB_ASYNC_HELPERS_H__ */

View File

@@ -26,8 +26,7 @@
#include "winbind/wb_server.h" #include "winbind/wb_server.h"
#include "smbd/service_task.h" #include "smbd/service_task.h"
#include "libcli/auth/credentials.h" #include "libcli/auth/credentials.h"
#include "libcli/auth/proto.h" #include "libcli/auth/libcli_auth.h"
#include "auth/credentials/credentials.h"
/* Oh, there is so much to keep an eye on when authenticating a user. Oh my! */ /* Oh, there is so much to keep an eye on when authenticating a user. Oh my! */
struct pam_auth_crap_state { struct pam_auth_crap_state {

View File

@@ -146,4 +146,5 @@ struct wbsrv_samba3_call {
struct netr_LMSessionKey; struct netr_LMSessionKey;
struct netr_UserSessionKey; struct netr_UserSessionKey;
#include "winbind/wb_async_helpers.h"
#include "winbind/wb_proto.h" #include "winbind/wb_proto.h"