s3:smbprofile: Make "status_profile.h" a proper header
authorVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2014 12:18:50 +0000 (14:18 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 19 Nov 2014 19:51:37 +0000 (20:51 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/status.c
source3/utils/status_profile.c
source3/utils/status_profile.h [new file with mode: 0644]
source3/utils/status_profile_dummy.c

index 978d3c54e8b37195eccc94507f2545563c11bece..64c2a93e234c01a7e14085c0c57b63a072c329c7 100644 (file)
@@ -44,6 +44,7 @@
 #include "librpc/gen_ndr/notify.h"
 #include "lib/conn_tdb.h"
 #include "serverid.h"
+#include "status_profile.h"
 
 #define SMB_MAXPIDS            2048
 static uid_t           Ucrit_uid = 0;               /* added by OH */
@@ -61,9 +62,6 @@ static bool do_checks = true;
 
 const char *username = NULL;
 
-extern bool status_profile_dump(bool be_verbose);
-extern bool status_profile_rates(bool be_verbose);
-
 /* added by OH */
 static void Ucrit_addUid(uid_t uid)
 {
index b4e6d56b366ca35d6be1d3152af8b837bcab768f..059d321780e8a303ecd2fa25e28d1f4ebda71da3 100644 (file)
@@ -20,9 +20,7 @@
 
 #include "includes.h"
 #include "smbprofile.h"
-
-bool status_profile_dump(bool be_verbose);
-bool status_profile_rates(bool be_verbose);
+#include "status_profile.h"
 
 static void profile_separator(const char * title)
 {
diff --git a/source3/utils/status_profile.h b/source3/utils/status_profile.h
new file mode 100644 (file)
index 0000000..a8a73e1
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Samba Unix/Linux SMB client library
+ * Dump profiles
+ * Copyright (C) Volker Lendecke 2014
+ *
+ * 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 3 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __STATUS_PROFILE_H__
+#define __STATUS_PROFILE_H__
+
+#include "replace.h"
+
+bool status_profile_dump(bool be_verbose);
+bool status_profile_rates(bool be_verbose);
+
+#endif
index c58f696efa223a6e148b60418a8d54d3bdeaea3f..dfc5da7756a8ae353930396641d5ec4faed3acf5 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "includes.h"
 #include "smbprofile.h"
+#include "status_profile.h"
 
 bool status_profile_dump(bool be_verbose)
 {