s3-printing: Moved remaining prototypes to nt_printing.h.
authorAndreas Schneider <asn@samba.org>
Tue, 11 May 2010 09:14:55 +0000 (11:14 +0200)
committerSimo Sorce <idra@samba.org>
Tue, 27 Jul 2010 14:27:13 +0000 (10:27 -0400)
Signed-off-by: Jim McDonough <jmcd@samba.org>
source3/include/nt_printing.h
source3/include/proto.h

index b83be9de28970e7d53182c215d2ea54cd497cb22..0ed0fce1b98995a34294d9220549917ddceee07e 100644 (file)
@@ -223,10 +223,18 @@ struct print_architecture_table_node {
        int     version;
 };
 
+bool nt_printing_init(struct messaging_context *msg_ctx);
+
 WERROR spoolss_create_default_devmode(TALLOC_CTX *mem_ctx,
                                      const char *devicename,
                                      struct spoolss_DeviceMode **devmode);
 
+int pack_devicemode(struct spoolss_DeviceMode *devmode, uint8 *buf, int buflen);
+
+int unpack_devicemode(TALLOC_CTX *mem_ctx,
+                     const uint8 *buf, int buflen,
+                     struct spoolss_DeviceMode **devmode);
+
 WERROR spoolss_create_default_secdesc(TALLOC_CTX *mem_ctx,
                                      struct spoolss_security_descriptor **secdesc);
 
@@ -250,6 +258,11 @@ bool is_printer_published(TALLOC_CTX *mem_ctx,
                          char *servername, char *printer, struct GUID *guid,
                          struct spoolss_PrinterInfo2 **info2);
 
+WERROR check_published_printers(void);
+
+bool driver_info_ctr_to_info8(struct spoolss_AddDriverInfoCtr *r,
+                             struct spoolss_DriverInfo8 *_info8);
+
 bool printer_driver_in_use(TALLOC_CTX *mem_ctx,
                           struct auth_serversupplied_info *server_info,
                           const struct spoolss_DriverInfo8 *r);
@@ -267,4 +280,15 @@ WERROR clean_up_driver_struct(TALLOC_CTX *mem_ctx,
                              struct pipes_struct *rpc_pipe,
                              struct spoolss_AddDriverInfoCtr *r);
 
+void map_printer_permissions(struct security_descriptor *sd);
+
+void map_job_permissions(struct security_descriptor *sd);
+
+bool print_time_access_check(struct auth_serversupplied_info *server_info,
+                            const char *servicename);
+
+void nt_printer_remove(TALLOC_CTX *mem_ctx,
+                       struct auth_serversupplied_info *server_info,
+                       const char *printer);
+
 #endif /* NT_PRINTING_H_ */
index c66f45f0a8c86472173ad8c6bb61521c736ad3b0..32ccc48e14c53da8a54b887768204d0f0b48b887 100644 (file)
@@ -4719,24 +4719,6 @@ void notify_printer_port(int snum, const char *port_name);
 void notify_printer_location(int snum, const char *location);
 void notify_printer_byname( const char *printername, uint32 change, const char *value );
 
-/* The following definitions come from printing/nt_printing.c  */
-
-bool nt_printing_init(struct messaging_context *msg_ctx);
-int pack_devicemode(struct spoolss_DeviceMode *devmode, uint8 *buf, int buflen);
-int unpack_devicemode(TALLOC_CTX *mem_ctx,
-                     const uint8 *buf, int buflen,
-                     struct spoolss_DeviceMode **devmode);
-WERROR check_published_printers(void);
-bool driver_info_ctr_to_info8(struct spoolss_AddDriverInfoCtr *r,
-                             struct spoolss_DriverInfo8 *_info8);
-void map_printer_permissions(struct security_descriptor *sd);
-void map_job_permissions(struct security_descriptor *sd);
-bool print_time_access_check(struct auth_serversupplied_info *server_info,
-                            const char *servicename);
-void nt_printer_remove(TALLOC_CTX *mem_ctx,
-                       struct auth_serversupplied_info *server_info,
-                       const char *printer);
-
 /* The following definitions come from printing/pcap.c  */
 
 void pcap_cache_reload(void);