1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

lib:printer_driver: Add printer_driver library to parse printer driver inf files

Pair-Programmed-With: Justin Stephenson <jstephen@redhat.com>
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
This commit is contained in:
Guenther Deschner 2018-10-08 11:14:37 -04:00 committed by Bjoern Jacke
parent 7d42029ff7
commit b6712ab902
5 changed files with 1282 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,33 @@
/*
Unix SMB/CIFS implementation.
Copyright (C) Guenther Deschner 2016
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
struct spoolss_AddDriverInfo8;
NTSTATUS driver_inf_parse(TALLOC_CTX *mem_ctx,
const char *core_driver_inf,
const char *filename,
const char *environment,
const char *driver_name,
struct spoolss_AddDriverInfo8 *r,
const char **source_disk_name);
NTSTATUS driver_inf_list(TALLOC_CTX *mem_ctx,
const char *core_driver_inf,
const char *filename,
const char *environment,
uint32_t *count,
struct spoolss_AddDriverInfo8 **r);

View File

@ -0,0 +1,6 @@
#!/usr/bin/env python
bld.SAMBA_LIBRARY('printer_driver',
source='printer_driver.c',
deps='gpo cli_spoolss',
private_library=True)

View File

@ -192,6 +192,7 @@ bld.SAMBA_MODULE('torture_rpc',
RPC_NDR_BACKUPKEY
RPC_NDR_WINSPOOL
IREMOTEWINSPOOL_COMMON
printer_driver
''' % samba_net + ntvfs_specific['deps'],
internal_module=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED())

View File

@ -46,6 +46,7 @@ bld.RECURSE('lib/texpect')
bld.RECURSE('lib/addns')
bld.RECURSE('lib/ldb')
bld.RECURSE('lib/param')
bld.RECURSE('lib/printer_driver')
bld.RECURSE('lib/audit_logging')
bld.RECURSE('dynconfig')
bld.RECURSE('lib/util/charset')