From 165521e20d8aea1e35cc68e39ced57de64f8e560 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Apr 2011 00:36:23 +0200 Subject: s3: only include smb profiling where needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104 --- source3/include/includes.h | 3 --- source3/include/proto.h | 5 ----- source3/include/smbprofile.h | 5 +++++ 3 files changed, 5 insertions(+), 8 deletions(-) (limited to 'source3/include') diff --git a/source3/include/includes.h b/source3/include/includes.h index 1e4800d327..5d6e554ede 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -567,9 +567,6 @@ enum flush_reason_enum { #include "proto.h" #endif -/* We need this after proto.h to reference GetTimeOfDay(). */ -#include "smbprofile.h" - /* String routines */ #include "srvstr.h" diff --git a/source3/include/proto.h b/source3/include/proto.h index 5b96bdfbeb..be2915f4c5 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2647,11 +2647,6 @@ void set_server_role(void); uint32 get_int_param( const char* param ); char* get_string_param( const char* param ); -/* The following definitions come from profile/profile.c */ - -void set_profile_level(int level, struct server_id src); -bool profile_setup(struct messaging_context *msg_ctx, bool rdonly); - /* The following definitions come from librpc/rpc/rpc_common.c */ struct ndr_interface_table; bool smb_register_ndr_interface(const struct ndr_interface_table *interface); diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index 3041f6c87e..4f5b6002fc 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -966,4 +966,9 @@ static inline uint64_t profile_timestamp(void) #define END_PROFILE(x) #endif /* WITH_PROFILE */ +/* The following definitions come from profile/profile.c */ + +void set_profile_level(int level, struct server_id src); +bool profile_setup(struct messaging_context *msg_ctx, bool rdonly); + #endif -- cgit