diff options
author | Jeremy Allison <jra@samba.org> | 2000-08-31 19:04:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-08-31 19:04:51 +0000 |
commit | fa810d4c8001c10bddce452b4ab1178eb80dee87 (patch) | |
tree | 59edc49534184b4b766e65e416630a2a2763f16d /source3/include | |
parent | 288ea15a564e0931f8002cfb2ca3b4064bb4c227 (diff) | |
download | samba-fa810d4c8001c10bddce452b4ab1178eb80dee87.tar.gz samba-fa810d4c8001c10bddce452b4ab1178eb80dee87.tar.bz2 samba-fa810d4c8001c10bddce452b4ab1178eb80dee87.zip |
Implemented DELETEFORM tested using Gerald's Win32 test code :-).
Jeremy.
(This used to be commit 596c21a2af0309ce43a5e52a343a671036d05ebf)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 4 | ||||
-rwxr-xr-x | source3/include/rpc_spoolss.h | 15 |
2 files changed, 18 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 4fc65f8eda..38393e3de8 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1682,6 +1682,7 @@ BOOL nt_printing_init(void); int get_ntforms(nt_forms_struct **list); int write_ntforms(nt_forms_struct **list, int number); BOOL add_a_form(nt_forms_struct **list, const FORM *form, int *count); +BOOL delete_a_form(nt_forms_struct **list, UNISTR2 *del_name, int *count, uint32 *ret); void update_a_form(nt_forms_struct **list, const FORM *form, int count); int get_ntdrivers(fstring **list, char *architecture, uint32 version); BOOL get_short_archi(char *short_archi, char *long_archi); @@ -2886,6 +2887,8 @@ void free_spoolss_q_setprinterdata(SPOOL_Q_SETPRINTERDATA *q_u); BOOL spoolss_io_r_setprinterdata(char *desc, SPOOL_R_SETPRINTERDATA *r_u, prs_struct *ps, int depth); BOOL convert_specific_param(NT_PRINTER_PARAM **param, const UNISTR2 *value, uint32 type, const uint8 *data, uint32 len); +BOOL spoolss_io_q_deleteform(char *desc, SPOOL_Q_DELETEFORM *q_u, prs_struct *ps, int depth); +BOOL spoolss_io_r_deleteform(char *desc, SPOOL_R_DELETEFORM *r_u, prs_struct *ps, int depth); BOOL spoolss_io_q_addform(char *desc, SPOOL_Q_ADDFORM *q_u, prs_struct *ps, int depth); BOOL spoolss_io_r_addform(char *desc, SPOOL_R_ADDFORM *r_u, prs_struct *ps, int depth); BOOL spoolss_io_q_setform(char *desc, SPOOL_Q_SETFORM *q_u, prs_struct *ps, int depth); @@ -3180,6 +3183,7 @@ uint32 _spoolss_setprinterdata( POLICY_HND *handle, uint32 _spoolss_addform( POLICY_HND *handle, uint32 level, const FORM *form); +uint32 _spoolss_deleteform( POLICY_HND *handle, UNISTR2 *form_name); uint32 _spoolss_setform( POLICY_HND *handle, const UNISTR2 *uni_name, uint32 level, diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h index 7b3ee354ed..a77ce55063 100755 --- a/source3/include/rpc_spoolss.h +++ b/source3/include/rpc_spoolss.h @@ -35,7 +35,6 @@ #define SPOOLSS_GETPRINTPROCESSORDIRECTORY 0x10 #define SPOOLSS_READPRINTER 0x16 #define SPOOLSS_WAITFORPRINTERCHANGE 0x1c -#define SPOOLSS_DELETEFORM 0x1f #define SPOOLSS_GETFORM 0x20 #define SPOOLSS_ADDPORT 0x25 #define SPOOLSS_CONFIGUREPORT 0x26 @@ -91,6 +90,7 @@ #define SPOOLSS_SETPRINTERDATA 0x1b #define SPOOLSS_CLOSEPRINTER 0x1d #define SPOOLSS_ADDFORM 0x1e +#define SPOOLSS_DELETEFORM 0x1f #define SPOOLSS_SETFORM 0x21 #define SPOOLSS_ENUMFORMS 0x22 #define SPOOLSS_ENUMPORTS 0x23 @@ -1686,6 +1686,19 @@ typedef struct spool_r_setform } SPOOL_R_SETFORM; +typedef struct spool_q_deleteform +{ + POLICY_HND handle; + UNISTR2 name; +} +SPOOL_Q_DELETEFORM; + +typedef struct spool_r_deleteform +{ + uint32 status; +} +SPOOL_R_DELETEFORM; + typedef struct spool_q_getjob { POLICY_HND handle; |