summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-14 00:36:23 +0200
committerGünther Deschner <gd@samba.org>2011-04-14 01:31:39 +0200
commit165521e20d8aea1e35cc68e39ced57de64f8e560 (patch)
treeffd267165125021325bd46958d212b83679665e2 /source3/include
parent1b4d27d45a55c66ed20de64c2fe299583a710ddd (diff)
downloadsamba-165521e20d8aea1e35cc68e39ced57de64f8e560.tar.gz
samba-165521e20d8aea1e35cc68e39ced57de64f8e560.tar.bz2
samba-165521e20d8aea1e35cc68e39ced57de64f8e560.zip
s3: only include smb profiling where needed.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h3
-rw-r--r--source3/include/proto.h5
-rw-r--r--source3/include/smbprofile.h5
3 files changed, 5 insertions, 8 deletions
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