1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-30 06:50:24 +03:00

r12696: Reduce the size of include/structs.h

(This used to be commit 63917616016133c623fc6ff59454bc313ee7dd8f)
This commit is contained in:
Jelmer Vernooij 2006-01-03 17:27:33 +00:00 committed by Gerald (Jerry) Carter
parent 92461359f7
commit 63d718e243
37 changed files with 75 additions and 248 deletions

View File

@ -1,8 +1,6 @@
# LIB GTK SMB subsystem
##############################
# Start SUBSYSTEM GTKSMB
[LIBRARY::GTKSMB]
[LIBRARY::GTK_SAMBA]
MAJOR_VERSION = 0
DESCRIPTION = Common Samba-related widgets for GTK+ applications
MINOR_VERSION = 0
@ -14,15 +12,13 @@ OBJ_FILES = common/gtk-smb.o \
common/gtk_events.o \
common/credentials.o
REQUIRED_SUBSYSTEMS = CHARSET LIBBASIC EXT_LIB_gtk RPC_NDR_SAMR
# End SUBSYSTEM GTKSMB
##############################
################################################
# Start BINARY gregedit
[BINARY::gregedit]
INSTALLDIR = BINDIR
OBJ_FILES = tools/gregedit.o
REQUIRED_SUBSYSTEMS = CONFIG REGISTRY GTKSMB
REQUIRED_SUBSYSTEMS = CONFIG REGISTRY GTK_SAMBA
MANPAGE = man/gregedit.1
# End BINARY gregedit
################################################
@ -32,7 +28,7 @@ MANPAGE = man/gregedit.1
[BINARY::gepdump]
INSTALLDIR = BINDIR
OBJ_FILES = tools/gepdump.o
REQUIRED_SUBSYSTEMS = CONFIG GTKSMB RPC_NDR_EPMAPPER RPC_NDR_MGMT
REQUIRED_SUBSYSTEMS = CONFIG GTK_SAMBA RPC_NDR_EPMAPPER RPC_NDR_MGMT
# End BINARY gepdump
################################################
@ -41,7 +37,7 @@ REQUIRED_SUBSYSTEMS = CONFIG GTKSMB RPC_NDR_EPMAPPER RPC_NDR_MGMT
[BINARY::gwcrontab]
INSTALLDIR = BINDIR
OBJ_FILES = tools/gwcrontab.o
REQUIRED_SUBSYSTEMS = CONFIG GTKSMB RPC_NDR_ATSVC
REQUIRED_SUBSYSTEMS = CONFIG GTK_SAMBA RPC_NDR_ATSVC
# End BINARY gwcrontab
################################################
@ -50,6 +46,6 @@ REQUIRED_SUBSYSTEMS = CONFIG GTKSMB RPC_NDR_ATSVC
[BINARY::gwsam]
INSTALLDIR = BINDIR
OBJ_FILES = tools/gwsam.o tools/gwsam_user.o
REQUIRED_SUBSYSTEMS = CONFIG RPC_NDR_SAMR GTKSMB
REQUIRED_SUBSYSTEMS = CONFIG RPC_NDR_SAMR GTK_SAMBA
# End BINARY gwsam
################################################

View File

@ -12,6 +12,9 @@
#endif
#endif
struct krb5_dh_moduli;
struct _krb5_krb_auth_data;
krb5_error_code KRB5_LIB_FUNCTION
_krb5_PKCS5_PBKDF2 (
krb5_context /*context*/,

View File

@ -40,94 +40,40 @@ union spoolss_PrintProcessorInfo;
struct spoolss_GetPrinterData;
struct spoolss_SetPrinterData;
struct spoolss_OpenPrinterEx;
struct spoolss_EnumPrinterData;
struct spoolss_DeletePrinterData;
struct spoolss_AddForm;
struct spoolss_GetForm;
struct spoolss_SetForm;
struct spoolss_DeleteForm;
struct spoolss_AddPrinterDriver;
struct spoolss_DeletePrinterDriver;
struct spoolss_GetPrinterDriverDirectory;
struct spoolss_AddPrinter;
struct spoolss_GetPrinter;
struct spoolss_SetPrinter;
struct spoolss_DeletePrinter;
struct spoolss_GetPrinterDriver;
struct spoolss_EnumPrinterData;
struct spoolss_DeletePrinterData;
struct spoolss_AddForm;
struct spoolss_GetForm;
struct spoolss_SetForm;
struct spoolss_DeleteForm;
struct spoolss_AddJob;
struct spoolss_ScheduleJob;
struct spoolss_GetJob;
struct spoolss_SetJob;
struct spoolss_StartDocPrinter;
struct spoolss_EndDocPrinter;
struct spoolss_StartPagePrinter;
struct spoolss_EndPagePrinter;
struct spoolss_WritePrinter;
struct spoolss_ReadPrinter;
struct spoolss_DeviceMode;
struct ntptr_context;
struct ntptr_GenericHandle;
struct drsuapi_DsCrackNames;
struct drsuapi_DsNameInfo1;
struct drsuapi_DsCrackNames;
struct drsuapi_DsReplicaObjectListItem;
struct drsuapi_DsReplicaObjectListItemEx;
struct DsPrivate;
struct MULTI_QI;
struct COSERVERINFO;
struct epm_floor;
struct epm_tower;
struct PAC_BUFFER;
struct PAC_LOGON_INFO;
struct PAC_DATA;
struct PAC_BUFFER;
struct samr_ChangePasswordUser;
struct samr_OemChangePasswordUser2;
struct samr_ChangePasswordUser3;
struct samr_ChangePasswordUser2;
struct samr_Password;
struct samr_CryptPassword;
struct samr_CryptPasswordEx;
struct samr_LogonHours;
struct samr_DomInfo1;
struct netr_Credential;
struct netr_Authenticator;
union netr_Validation;
struct netr_SamBaseInfo;
struct netr_SamInfo3;
struct netr_UserSessionKey;
struct netr_LogonSamLogon;
struct iface_struct;
struct tm;
struct utimbuf;
struct auth_usersupplied_info;
struct auth_serversupplied_info;
struct auth_session_info;
struct creds_CredentialState;
struct auth_methods;
struct schannel_state;
struct spnego_data;
struct gensec_security;
struct gensec_security_ops;
struct gensec_ntlmssp_state;
struct asn1_data;
@ -135,232 +81,73 @@ struct asn1_data;
struct ldapsrv_call;
struct ldapsrv_connection;
struct ldap_connection;
struct ldap_message;
struct ldap_Result;
struct rw_buffer;
struct rap_NetShareEnum;
struct rap_NetServerEnum2;
struct auth_context;
struct auth_method_context;
struct smb_signing_context;
struct smbsrv_session;
struct smbsrv_tcon;
struct smbsrv_connection;
struct smbsrv_request;
struct request_buffer;
struct smb2srv_request;
struct smb2_request_buffer;
struct ntvfs_module_context;
struct pvfs_dir;
struct pvfs_filename;
struct pvfs_state;
struct pvfs_file;
struct pvfs_file_handle;
struct stat;
struct dcesrv_context;
struct dcesrv_interface;
struct dcesrv_connection;
struct dcesrv_connection_context;
struct dcesrv_endpoint;
struct dcesrv_call_state;
struct dcesrv_auth;
struct libnet_context;
struct libnet_Join;
struct libnet_JoinDomain;
union libnet_ChangePassword;
union libnet_SetPassword;
union libnet_RemoteTOD;
struct libnet_RpcConnect;
struct libnet_CreateUser;
struct libnet_ListShares;
struct libnet_AddShare;
struct libnet_DelShare;
struct libnet_Lookup;
struct libnet_SamDump;
struct libnet_SamDump_keytab;
struct libnet_SamSync;
struct libnet_samsync_ldb;
struct net_functable;
struct net_context;
struct clilist_file_info;
struct xattr_DosEAs;
struct xattr_DosStreams;
struct xattr_NTACL;
struct test_join;
struct test_join_ads_dc;
struct netr_LMSessionKey;
struct ldb_val;
struct ldb_dn;
struct ldb_message;
struct ldb_context;
struct ldb_parse_tree;
struct ldb_message_element;
struct ldap_mod;
struct dom_sid;
struct security_token;
struct security_acl;
struct security_ace;
struct lsa_RightSet;
struct composite_context;
struct monitor_msg;
struct irpc_request;
struct rpc_request;
struct smb_composite_loadfile;
struct smb_composite_savefile;
struct smb_composite_connect;
struct smb_composite_connectmulti;
struct smb_composite_sesssetup;
struct smb_composite_fetchfile;
struct smb_composite_appendacl;
struct smb_composite_fsinfo;
struct libnet_rpc_userinfo;
struct libnet_rpc_useradd;
struct libnet_rpc_userdel;
struct libnet_rpc_usermod;
struct libnet_rpc_domain_open;
struct nbt_name;
struct nbt_name_packet;
struct nbt_name_socket;
struct nbt_name_query;
struct nbt_name_status;
struct nbt_name_register;
struct nbt_name_refresh;
struct nbt_name_release;
struct nbt_name_register_bcast;
struct nbt_name_refresh_wins;
struct nbt_name_register_wins;
struct nbt_name_request;
struct nbt_peer_socket;
struct nbt_dgram_packet;
struct nbt_dgram_socket;
struct dgram_mailslot_handler;
struct messaging_context;
struct irpc_message;
struct stream_connection;
struct task_server;
struct model_ops;
struct stream_server_ops;
struct wins_server;
struct nbtd_proxy_wins_challenge;
struct nbtd_proxy_wins_release_demand;
struct nbt_dc_name;
struct wb_sid_object;
struct wb_dom_info;
struct cldap_socket;
struct cldapd_server;
struct mutex_ops;
struct ads_struct;
struct wreplsrv_service;
struct wreplsrv_partner;
struct wreplsrv_owner;
struct wreplsrv_in_connection;
struct wreplsrv_in_call;
struct wreplsrv_out_connection;
struct wreplsrv_pull_table_io;
struct wreplsrv_pull_names_io;
struct wreplsrv_pull_cycle_io;
struct wreplsrv_push_notify_io;
struct winsdb_record;
struct wrepl_packet;
struct wrepl_send_ctrl;
struct wrepl_associate;
struct wrepl_associate_stop;
struct wrepl_pull_table;
struct wrepl_pull_names;
struct wrepl_table;
struct arcfour_state;
struct websrv_context;
struct EspRequest;
struct PAC_LOGON_INFO;
struct kdc_server;
struct smb_krb5_context;
struct samba3_samaccount;
struct samba3_idmapdb;
struct samba3_groupdb;
struct samba3_winsdb_entry;
struct samba3_policy;
struct samba3_regdb;
struct samba3_secrets;
struct samba3_share_info;
struct samba3;
struct wbsrv_service;
struct wbsrv_domain;
struct wbsrv_protocol_ops;
struct wbsrv_listen_socket;
struct wbsrv_connection;
struct wbsrv_call;
struct wbsrv_samba3_call;
struct ldb_map_attribute;
struct ldb_map_objectclass;
struct param_context;
struct param_section;
struct param;
struct socket_context;
struct packet_context;
struct smbcli_socket;
struct smbcli_request;
struct smbcli_tree;
struct _krb5_krb_auth_data;
struct smb2_request;
struct smb2_transport;
struct smb2_session;
struct smb2_negprot;
struct smb2_session_setup;
struct smb2_tree;
struct smb2_tree_connect;
struct smb2_create;
struct smb2_close;
struct smb2_getinfo;
struct smb2_setinfo;
struct smb2_read;
struct smb2_write;
struct smb2_find;
struct smb2_ioctl;
struct smb2_flush;
struct smb2_handle;
struct com_context;
struct IUnknown;
@ -370,8 +157,8 @@ struct MprVar;
struct registry_context;
struct nbtd_interface;
struct nbtd_iface_name;
struct nbtd_server;
struct smbcli_session;
struct smbcli_state;
struct substitute_context;

View File

@ -27,6 +27,8 @@
#include "heimdal/lib/hdb/hdb.h"
#include "kdc/pac-glue.h"
struct kdc_server;
NTSTATUS hdb_ldb_create(TALLOC_CTX *mem_ctx,
krb5_context context, struct HDB **db, const char *arg);
BOOL kpasswdd_process(struct kdc_server *kdc,

View File

@ -5,6 +5,7 @@ MAJOR_VERSION = 0
MINOR_VERSION = 0
RELEASE_VERSION = 1
DESCRIPTION = Library for reading Samba3 data files
PRIVATE_PROTO_HEADER = samba3_proto.h
PUBLIC_HEADERS = samba3.h
OBJ_FILES = smbpasswd.o tdbsam.o policy.o \
idmap.o winsdb.o samba3.o group.o \

View File

@ -210,4 +210,6 @@ struct samba3
struct samba3_regdb registry;
};
#include "samba3/samba3_proto.h"
#endif /* _SAMBA3_H */

View File

@ -23,6 +23,8 @@
#include "libcli/util/asn_1.h"
#include "librpc/gen_ndr/ndr_nbt.h"
struct ldap_message;
enum cldap_request_state {CLDAP_REQUEST_SEND,
CLDAP_REQUEST_WAIT,
CLDAP_REQUEST_DONE,

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
/*
send a keepalive request

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
/*
send a logoff request

View File

@ -199,5 +199,3 @@ struct smb2_request {
return NT_STATUS_INVALID_PARAMETER; \
} \
} while (0)
#include "libcli/smb2/smb2_proto.h"

View File

@ -361,3 +361,5 @@ struct smb2_flush {
struct smb2_handle handle;
} in;
};
#include "libcli/smb2/smb2_proto.h"

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
/*
send a tdis request

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
#include "lib/socket/socket.h"
#include "lib/events/events.h"
#include "lib/stream/packet.h"

View File

@ -47,4 +47,5 @@ struct libnet_context {
#include "libnet/libnet_user.h"
#include "libnet/libnet_share.h"
#include "libnet/libnet_lookup.h"
#include "libnet/composite.h"
#include "libnet/libnet_proto.h"

View File

@ -24,6 +24,7 @@
#include "includes.h"
#include "libnet/libnet.h"
#include "dlinklist.h"
#include "samba3/samba3.h"
struct samdump_secret {

View File

@ -21,7 +21,6 @@
#include "includes.h"
#include "libnet/libnet.h"
#include "libnet/composite.h"
NTSTATUS libnet_CreateUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_CreateUser *r)

View File

@ -245,6 +245,9 @@ struct rpc_request {
} async;
};
struct epm_tower;
struct epm_floor;
#include "librpc/rpc/dcerpc_proto.h"
#endif /* __DCERPC_H__ */

View File

@ -28,6 +28,7 @@
#include "libcli/composite/composite.h"
#include "libcli/smb_composite/smb_composite.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
struct dcerpc_pipe_connect;

View File

@ -32,7 +32,7 @@ include kdc/config.mk
include passdb/config.mk
DEFAULT_HEADERS = $(srcdir)/include/nterr.h $(srcdir)/include/nt_status.h \
$(srcdir)/include/smb.h
$(srcdir)/include/smb.h $(srcdir)/include/core.h
binaries: $(BINARIES)
libraries: $(STATIC_LIBS) $(SHARED_LIBS)

View File

@ -40,6 +40,33 @@ struct ntptr_GenericHandle {
void *private_data;
};
struct spoolss_OpenPrinterEx;
struct spoolss_EnumPrinterData;
struct spoolss_DeletePrinterData;
struct spoolss_AddForm;
struct spoolss_GetForm;
struct spoolss_SetForm;
struct spoolss_DeleteForm;
struct spoolss_AddPrinterDriver;
struct spoolss_DeletePrinterDriver;
struct spoolss_GetPrinterDriverDirectory;
struct spoolss_AddPrinter;
struct spoolss_GetPrinter;
struct spoolss_SetPrinter;
struct spoolss_DeletePrinter;
struct spoolss_GetPrinterDriver;
struct spoolss_AddJob;
struct spoolss_EnumJobs;
struct spoolss_SetJob;
struct spoolss_GetJob;
struct spoolss_ScheduleJob;
struct spoolss_ReadPrinter;
struct spoolss_WritePrinter;
struct spoolss_StartDocPrinter;
struct spoolss_EndDocPrinter;
struct spoolss_StartPagePrinter;
struct spoolss_EndPagePrinter;
/* the ntptr operations structure - contains function pointers to
the backend implementations of each operation */
struct ntptr_ops {

View File

@ -22,7 +22,6 @@
#include "includes.h"
#include "vfs_posix.h"
#include "librpc/gen_ndr/ndr_xattr.h"
/*
pull a xattr as a blob

View File

@ -23,6 +23,7 @@
#ifndef _VFS_POSIX_H_
#define _VFS_POSIX_H_
#include "librpc/gen_ndr/ndr_xattr.h"
#include "system/filesys.h"
#include "smb_server/smb_server.h"
#include "ntvfs/ntvfs.h"

View File

@ -34,6 +34,7 @@
struct dcesrv_connection;
struct dcesrv_call_state;
struct dcesrv_auth;
struct dcesrv_connection_context;
struct dcesrv_interface {
const char *name;

View File

@ -1,21 +1,18 @@
#!/bin/sh
INSTALLPERMS=$1
BASEDIR=$2
LIBDIR=$3
LIBDIR=$2
shift
shift
shift
for d in $BASEDIR $LIBDIR; do
if [ ! -d $d ]; then
mkdir $d
if [ ! -d $d ]; then
echo Failed to make directory $d
if [ ! -d $LIBDIR ]; then
mkdir $LIBDIR
if [ ! -d $LIBDIR ]; then
echo Failed to make directory $LIBDIR
exit 1
fi
fi
done
for p in $*; do
p2=`basename $p`

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "system/time.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
#include "smb_server/smb_server.h"
#include "smb_server/smb2/smb2_server.h"
#include "lib/stream/packet.h"

View File

@ -26,6 +26,7 @@
#include "auth/auth.h"
#include "auth/kerberos/kerberos.h"
#include "librpc/gen_ndr/ndr_krb5pac.h"
#include "samba3/samba3.h"
static BOOL torture_pac_self_check(void)
{

View File

@ -21,7 +21,6 @@
#include "includes.h"
#include "torture/torture.h"
#include "libnet/composite.h"
#include "libnet/libnet.h"
static BOOL test_domainopen(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,

View File

@ -22,7 +22,6 @@
#include "includes.h"
#include "torture/torture.h"
#include "libnet/libnet.h"
#include "libnet/composite.h"
#include "libnet/userinfo.h"
#define TEST_USERNAME "libnetuserinfotest"

View File

@ -21,7 +21,6 @@
#include "includes.h"
#include "torture/torture.h"
#include "libnet/composite.h"
#include "libnet/userman.h"
#include "libnet/libnet.h"

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "system/time.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
#define BASEDIR ""

View File

@ -158,4 +158,8 @@ struct wbsrv_call {
void *private_data;
};
struct wbsrv_samba3_call;
struct netr_LMSessionKey;
struct netr_UserSessionKey;
#include "winbind/wb_proto.h"

View File

@ -26,7 +26,6 @@
#include "librpc/gen_ndr/ndr_irpc.h"
#include "librpc/gen_ndr/ndr_winsrepl.h"
#include "wrepl_server/wrepl_server.h"
#include "wrepl_server/wrepl_out_helpers.h"
#include "nbt_server/wins/winsdb.h"
#include "libcli/wrepl/winsrepl.h"
#include "system/time.h"

View File

@ -26,7 +26,6 @@
#include "smbd/service_stream.h"
#include "libcli/wrepl/winsrepl.h"
#include "wrepl_server/wrepl_server.h"
#include "wrepl_server/wrepl_out_helpers.h"
#include "libcli/composite/composite.h"
#include "nbt_server/wins/winsdb.h"
#include "lib/ldb/include/ldb.h"

View File

@ -27,7 +27,6 @@
#include "smbd/service_stream.h"
#include "librpc/gen_ndr/ndr_winsrepl.h"
#include "wrepl_server/wrepl_server.h"
#include "wrepl_server/wrepl_out_helpers.h"
#include "libcli/composite/composite.h"
#include "libcli/wrepl/winsrepl.h"

View File

@ -24,7 +24,6 @@
#include "librpc/gen_ndr/ndr_winsrepl.h"
#include "wrepl_server/wrepl_server.h"
#include "libcli/composite/composite.h"
#include "wrepl_server/wrepl_out_helpers.h"
static void wreplsrv_out_pull_reschedule(struct wreplsrv_partner *partner, uint32_t interval)
{

View File

@ -24,7 +24,6 @@
#include "librpc/gen_ndr/ndr_winsrepl.h"
#include "wrepl_server/wrepl_server.h"
#include "libcli/composite/composite.h"
#include "wrepl_server/wrepl_out_helpers.h"
#include "nbt_server/wins/winsdb.h"
static void wreplsrv_out_partner_push(struct wreplsrv_partner *partner, BOOL propagate);

View File

@ -314,4 +314,5 @@ struct wreplsrv_service {
} scavenging;
};
#include "wrepl_server/wrepl_out_helpers.h"
#include "wrepl_server/wrepl_server_proto.h"