diff options
author | Günther Deschner <gd@samba.org> | 2004-11-10 00:53:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:11 -0500 |
commit | d7bbbb28bde0149ff98f2e3bacee455235e3fb92 (patch) | |
tree | 4e1ff15f263292f849c6a062745d8f0a585ae317 /source3/rpc_parse | |
parent | a8caf25bd86ebe9f616b3fc88cca120850eb05d6 (diff) | |
download | samba-d7bbbb28bde0149ff98f2e3bacee455235e3fb92.tar.gz samba-d7bbbb28bde0149ff98f2e3bacee455235e3fb92.tar.bz2 samba-d7bbbb28bde0149ff98f2e3bacee455235e3fb92.zip |
r3645: Allow deldriverex in rpcclient to delete drivers for a specific
architecture and a specific version.
Guenther
(This used to be commit a24df09386f177e625fb99c975896cbe7a594b4b)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_spoolss.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index 503a9454fc..6362dcf0f1 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -1225,7 +1225,8 @@ BOOL make_spoolss_q_deleteprinterdriverex( TALLOC_CTX *mem_ctx, SPOOL_Q_DELETEPRINTERDRIVEREX *q_u, const char *server, const char* arch, - const char* driver ) + const char* driver, + uint32 version) { DEBUG(5,("make_spoolss_q_deleteprinterdriverex\n")); @@ -1237,7 +1238,12 @@ BOOL make_spoolss_q_deleteprinterdriverex( TALLOC_CTX *mem_ctx, init_unistr2(&q_u->server, server, UNI_STR_TERMINATE); init_unistr2(&q_u->arch, arch, UNI_STR_TERMINATE); init_unistr2(&q_u->driver, driver, UNI_STR_TERMINATE); - + + if (version >= 0) { + q_u->delete_flags |= DPD_DELETE_SPECIFIC_VERSION; + q_u->version = version; + } + return True; } |