Make pcap headers private
authorSimo Sorce <ssorce@redhat.com>
Thu, 13 May 2010 20:24:35 +0000 (16:24 -0400)
committerGünther Deschner <gd@samba.org>
Fri, 14 May 2010 12:15:08 +0000 (14:15 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/include/proto.h
source3/include/smb.h
source3/printing/load.c
source3/printing/nt_printing.c
source3/printing/pcap.c
source3/printing/pcap.h [new file with mode: 0644]
source3/printing/print_aix.c
source3/printing/print_cups.c
source3/printing/print_iprint.c
source3/printing/print_standard.c
source3/printing/print_svid.c

index 75267f820fc66166b1e40b3a11cd82d44fb4851d..91b6bd9010e03698b14f9ec414e59b75da289611 100644 (file)
@@ -4895,42 +4895,8 @@ char* get_server_name( Printer_entry *printer );
 
 /* The following definitions come from printing/pcap.c  */
 
-bool pcap_cache_add_specific(struct pcap_cache **ppcache, const char *name, const char *comment);
-void pcap_cache_destroy_specific(struct pcap_cache **ppcache);
-bool pcap_cache_add(const char *name, const char *comment);
-bool pcap_cache_loaded(void);
-void pcap_cache_replace(const struct pcap_cache *cache);
 void pcap_cache_reload(void);
 bool pcap_printername_ok(const char *printername);
-void pcap_printer_fn_specific(const struct pcap_cache *, void (*fn)(const char *, const char *, void *), void *);
-void pcap_printer_fn(void (*fn)(const char *, const char *, void *), void *);
-
-/* The following definitions come from printing/print_aix.c  */
-
-bool aix_cache_reload(void);
-
-/* The following definitions come from printing/print_cups.c  */
-
-bool cups_cache_reload(void);
-bool cups_pull_comment_location(TALLOC_CTX *mem_ctx,
-                               const char *printername,
-                               char **comment,
-                               char **location);
-
-/* The following definitions come from printing/print_generic.c  */
-
-
-/* The following definitions come from printing/print_iprint.c  */
-
-bool iprint_cache_reload(void);
-
-/* The following definitions come from printing/print_svid.c  */
-
-bool sysv_cache_reload(void);
-
-/* The following definitions come from printing/print_standard.c  */
-
-bool std_pcap_cache_reload(const char *pcap_name);
 
 /* The following definitions come from printing/printfsp.c  */
 
index f8ec5d4983aa35ef501a6d02cc02bcd93a417f95..e1ec21f22c943ac2973057615f3a7fa2eafccb88 100644 (file)
@@ -334,7 +334,6 @@ struct idle_event;
 struct share_mode_entry;
 struct uuid;
 struct named_mutex;
-struct pcap_cache;
 struct wb_context;
 struct rpc_cli_smbd_conn;
 struct fncall_context;
index fc21f271bd9aa2aaba391edcbeaf31e76d27cbf1..d440a22ee584fef1c090b8095425037df8e4cbb5 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "includes.h"
+#include "pcap.h"
 
 
 /***************************************************************************
index d59e3c5ffd44d30a49cc51aa98e06c26e996d57e..a8bc577370544e8ba42f9cb8bc381026f3893736 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "librpc/gen_ndr/messaging.h"
+#include "printing/pcap.h"
 
 static TDB_CONTEXT *tdb_forms; /* used for forms files */
 static TDB_CONTEXT *tdb_drivers; /* used for driver files */
index f1cf58d6bcd9b760df107669bff7f70f594395dc..2b1ab632aceef93f311f9ec4247f25dda274ee13 100644 (file)
@@ -37,7 +37,7 @@
  */
 
 #include "includes.h"
-
+#include "pcap.h"
 
 struct pcap_cache {
        char *name;
diff --git a/source3/printing/pcap.h b/source3/printing/pcap.h
new file mode 100644 (file)
index 0000000..47abc0f
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+   Unix SMB/CIFS implementation.
+   printcap headers
+
+   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/>.
+*/
+
+struct pcap_cache;
+
+/* The following definitions come from printing/pcap.c  */
+
+bool pcap_cache_add_specific(struct pcap_cache **ppcache, const char *name, const char *comment);
+void pcap_cache_destroy_specific(struct pcap_cache **ppcache);
+bool pcap_cache_add(const char *name, const char *comment);
+bool pcap_cache_loaded(void);
+void pcap_cache_replace(const struct pcap_cache *cache);
+void pcap_printer_fn_specific(const struct pcap_cache *, void (*fn)(const char *, const char *, void *), void *);
+void pcap_printer_fn(void (*fn)(const char *, const char *, void *), void *);
+
+/* The following definitions come from printing/print_aix.c  */
+
+bool aix_cache_reload(void);
+
+/* The following definitions come from printing/print_cups.c  */
+
+bool cups_cache_reload(void);
+bool cups_pull_comment_location(TALLOC_CTX *mem_ctx,
+                               const char *printername,
+                               char **comment,
+                               char **location);
+
+/* The following definitions come from printing/print_iprint.c  */
+
+bool iprint_cache_reload(void);
+
+/* The following definitions come from printing/print_svid.c  */
+
+bool sysv_cache_reload(void);
+
+/* The following definitions come from printing/print_standard.c  */
+bool std_pcap_cache_reload(const char *pcap_name);
index 523be77f358da494d1636009a86dda8527265044..dbdfbc7a0d26b9477237fc0be4797f396fb7f08e 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include "includes.h"
+#include "pcap.h"
 
 #ifdef AIX
 bool aix_cache_reload(void)
index 6735f14f703312a333129258ff5532757ff66a70..1db0518dfac5e74cd6ca94d4f811d3a0c069731a 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "includes.h"
 #include "printing.h"
+#include "pcap.h"
 
 #ifdef HAVE_CUPS
 #include <cups/cups.h>
index b038f8d1fe85547917edb640689c02e4b4c2d059..4f483d9d2d4128765619c173bf35c0b81f39894e 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "printing.h"
+#include "pcap.h"
 
 #ifdef HAVE_IPRINT
 #include <cups/cups.h>
index 91d1c336e351fe79b58352a6e9f8fb01e8812454..99456995639551ccbbd41c8123923702557ccda7 100644 (file)
@@ -55,6 +55,7 @@
 
 
 #include "includes.h"
+#include "pcap.h"
 
 /* handle standard printcap - moved from pcap_printer_fn() */
 bool std_pcap_cache_reload(const char *pcap_name)
index 681b2bf459b93bc30e4e1e6547d6a8f5763f5387..4d4e92e82eef197420acaa974693117f89a0c0fb 100644 (file)
@@ -32,6 +32,7 @@
 
 
 #include "includes.h"
+#include "pcap.h"
 
 #if defined(SYSV) || defined(HPUX)
 bool sysv_cache_reload(void)