summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-06-10 22:35:52 +0000
committerJean-François Micouleau <jfm@samba.org>2000-06-10 22:35:52 +0000
commit4ec7597d1154c60f0f55feab93f2dc9c776d56f8 (patch)
tree2af152c02a5013ed5bd954303e6a0829f7aff8ec /source3/include
parent26848a3478ab132cd924f14a66f85f74c2433329 (diff)
downloadsamba-4ec7597d1154c60f0f55feab93f2dc9c776d56f8.tar.gz
samba-4ec7597d1154c60f0f55feab93f2dc9c776d56f8.tar.bz2
samba-4ec7597d1154c60f0f55feab93f2dc9c776d56f8.zip
parsing code for reply[open|close]printer in preparation of the event
stuff. J.F. (This used to be commit 1871d4a3f64401f9a6f749ce26d1715e3bcdeac3)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h10
-rwxr-xr-xsource3/include/rpc_spoolss.h30
2 files changed, 39 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 4d57740877..b6aeb19232 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2623,6 +2623,10 @@ void free_print1_array(uint32 num_entries, PRINTER_INFO_1 **entries);
void free_job1_array(uint32 num_entries, JOB_INFO_1 **entries);
void free_job_info_2(JOB_INFO_2 *job);
void free_job2_array(uint32 num_entries, JOB_INFO_2 **entries);
+BOOL spoolss_io_q_replyopenprinter(char *desc, SPOOL_Q_REPLYOPENPRINTER *q_u, prs_struct *ps, int depth);
+BOOL spoolss_io_r_replyopenprinter(char *desc, SPOOL_R_REPLYOPENPRINTER *r_u, prs_struct *ps, int depth);
+BOOL spoolss_io_q_replycloseprinter(char *desc, SPOOL_Q_REPLYCLOSEPRINTER *q_u, prs_struct *ps, int depth);
+BOOL spoolss_io_r_replycloseprinter(char *desc, SPOOL_R_REPLYCLOSEPRINTER *r_u, prs_struct *ps, int depth);
/*The following definitions come from rpc_parse/parse_srv.c */
@@ -3295,6 +3299,12 @@ BOOL init_oplocks(void);
struct kernel_oplocks *irix_init_kernel_oplocks(void) ;
#endif
+/*The following definitions come from smbd/oplock_linux.c */
+
+#if OLD_NTDOMAIN
+struct kernel_oplocks *linux_init_kernel_oplocks(void) ;
+#endif
+
/*The following definitions come from smbd/password.c */
#if OLD_NTDOMAIN
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index 40851533cf..de3f04ca3d 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -1680,10 +1680,38 @@ typedef struct spool_r_getjob
NEW_BUFFER *buffer;
uint32 needed;
uint32 status;
-
}
SPOOL_R_GETJOB;
+typedef struct spool_q_replyopenprinter
+{
+ UNISTR2 string;
+ uint32 printer;
+ uint32 type;
+ NEW_BUFFER *buffer;
+}
+SPOOL_Q_REPLYOPENPRINTER;
+
+typedef struct spool_r_replyopenprinter
+{
+ POLICY_HND handle;
+ uint32 status;
+}
+SPOOL_R_REPLYOPENPRINTER;
+
+typedef struct spool_q_replycloseprinter
+{
+ POLICY_HND handle;
+}
+SPOOL_Q_REPLYCLOSEPRINTER;
+
+typedef struct spool_r_replycloseprinter
+{
+ POLICY_HND handle;
+ uint32 status;
+}
+SPOOL_R_REPLYCLOSEPRINTER;
+
#define PRINTER_DRIVER_VERSION 2
#define PRINTER_DRIVER_ARCHITECTURE "Windows NT x86"