s3-rpc_client: move protos to init_spoolss.h
authorGünther Deschner <gd@samba.org>
Tue, 18 May 2010 16:58:45 +0000 (18:58 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 18 May 2010 19:42:48 +0000 (21:42 +0200)
Guenther

source3/include/proto.h
source3/rpc_client/init_spoolss.c
source3/rpc_client/init_spoolss.h [new file with mode: 0644]
source3/rpc_server/srv_spoolss_nt.c
source3/rpcclient/cmd_spoolss.c
source3/smbd/lanman.c

index b6060cb9d792b475d578f2a289e27ea0c6c3470b..f3954344fc206066eede1594b870688c39791205 100644 (file)
@@ -5011,19 +5011,6 @@ struct cli_state *rpc_pipe_smbd_smb_conn(struct rpc_pipe_client *p);
 NTSTATUS rpc_transport_sock_init(TALLOC_CTX *mem_ctx, int fd,
                                 struct rpc_cli_transport **presult);
 
-/* The following definitions come from rpc_client/init_spoolss.c  */
-
-bool init_systemtime(struct spoolss_Time *r,
-                    struct tm *unixtime);
-time_t spoolss_Time_to_time_t(const struct spoolss_Time *r);
-WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx,
-                               const DATA_BLOB *blob,
-                               union spoolss_PrinterData *data,
-                               enum winreg_Type type);
-WERROR push_spoolss_PrinterData(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
-                               enum winreg_Type type,
-                               union spoolss_PrinterData *data);
-
 /* The following definitions come from rpc_client/init_lsa.c  */
 
 void init_lsa_String(struct lsa_String *name, const char *s);
index 864e80d0f971b95eccf1eb434c6c0d937b33a820..737dbdc664f76b856557e4dd99297442c865135d 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include "includes.h"
+#include "rpc_client/init_spoolss.h"
 
 /*******************************************************************
 ********************************************************************/
diff --git a/source3/rpc_client/init_spoolss.h b/source3/rpc_client/init_spoolss.h
new file mode 100644 (file)
index 0000000..50ccf47
--- /dev/null
@@ -0,0 +1,14 @@
+
+/* The following definitions come from rpc_client/init_spoolss.c  */
+
+bool init_systemtime(struct spoolss_Time *r,
+                    struct tm *unixtime);
+time_t spoolss_Time_to_time_t(const struct spoolss_Time *r);
+WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx,
+                               const DATA_BLOB *blob,
+                               union spoolss_PrinterData *data,
+                               enum winreg_Type type);
+WERROR push_spoolss_PrinterData(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
+                               enum winreg_Type type,
+                               union spoolss_PrinterData *data);
+
index a9935150150771c845a7955b8afe773833592744..37d1044ef639905f67bd53874394c884d3cfa56e 100644 (file)
@@ -29,6 +29,7 @@
 #include "includes.h"
 #include "../librpc/gen_ndr/srv_spoolss.h"
 #include "../librpc/gen_ndr/cli_spoolss.h"
+#include "rpc_client/init_spoolss.h"
 #include "librpc/gen_ndr/messaging.h"
 #include "registry.h"
 
index e56f4496f792e6c4278110f4d4ba7fd4af9e5f86..b5f34c4b2e99624f81ba613c84f5ad123f87fd7e 100644 (file)
@@ -26,6 +26,7 @@
 #include "rpcclient.h"
 #include "../librpc/gen_ndr/cli_spoolss.h"
 #include "rpc_client/cli_spoolss.h"
+#include "rpc_client/init_spoolss.h"
 #include "registry.h"
 
 #define RPCCLIENT_PRINTERNAME(_printername, _cli, _arg) \
index 498c8acedab6e60930fcce980752e17492840bbb..91eb135ead24d5254340c8202f05f35150b0d22d 100644 (file)
@@ -30,6 +30,7 @@
 #include "../librpc/gen_ndr/cli_samr.h"
 #include "../librpc/gen_ndr/cli_spoolss.h"
 #include "rpc_client/cli_spoolss.h"
+#include "rpc_client/init_spoolss.h"
 #include "../librpc/gen_ndr/cli_srvsvc.h"
 #include "../librpc/gen_ndr/srv_samr.h"
 #include "../librpc/gen_ndr/srv_spoolss.h"