diff options
author | Jeremy Allison <jra@samba.org> | 2000-09-26 00:54:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-09-26 00:54:18 +0000 |
commit | 5be845af6bea3d4795dc50fe9ee880527be5ecc0 (patch) | |
tree | 3e8cbbef53918757c7f8d6ca5b86ad116bc77e98 /source3/param/loadparm.c | |
parent | 233bc000209cf5759e0e49ad83da70b280d51dae (diff) | |
download | samba-5be845af6bea3d4795dc50fe9ee880527be5ecc0.tar.gz samba-5be845af6bea3d4795dc50fe9ee880527be5ecc0.tar.bz2 samba-5be845af6bea3d4795dc50fe9ee880527be5ecc0.zip |
Changes from John Reilly to add a parameter "show add printer wizard" that
allows Samba to turn off the display of APW (hmmm. This should probably
be a share specific parameter, I'll fix that in another commit).
Also a few small changes to JF's code to fix compiler warnings about
missing return statements and also change '//' comments (C++) to /* .. */
comments (C).
Jeremy.
(This used to be commit 0a9ccc99b335650d235eb747d803d059f7828fd7)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 883d03f6a4..c03e1025b1 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -219,6 +219,7 @@ typedef struct BOOL sslReqServerCert; BOOL sslCompatibility; #endif /* WITH_SSL */ + BOOL bMsAddPrinterWizard; BOOL bDNSproxy; BOOL bWINSsupport; BOOL bWINSproxy; @@ -806,6 +807,7 @@ static struct parm_struct parm_table[] = { {"enumports command", P_STRING, P_GLOBAL, &Globals.szEnumPortsCommand, NULL, NULL, 0}, {"addprinter command", P_STRING, P_GLOBAL, &Globals.szAddPrinterCommand, NULL, NULL, 0}, {"deleteprinter command", P_STRING, P_GLOBAL, &Globals.szDeletePrinterCommand, NULL, NULL, 0}, + {"show add printer wizard", P_BOOL, P_GLOBAL, &Globals.bMsAddPrinterWizard, NULL, NULL, 0}, {"printer name", P_STRING, P_LOCAL, &sDefault.szPrintername, NULL, NULL, FLAG_PRINT}, {"printer", P_STRING, P_LOCAL, &sDefault.szPrintername, NULL, NULL, 0}, @@ -1231,6 +1233,7 @@ static void init_globals(void) */ + Globals.bMsAddPrinterWizard = True; Globals.bPreferredMaster = Auto; /* depending on bDomainMaster */ Globals.os_level = 20; Globals.bLocalMaster = True; @@ -1406,6 +1409,7 @@ FN_GLOBAL_BOOL(lp_ssl_reqServerCert, &Globals.sslReqServerCert); FN_GLOBAL_BOOL(lp_ssl_compatibility, &Globals.sslCompatibility); #endif /* WITH_SSL */ +FN_GLOBAL_BOOL(lp_ms_add_printer_wizard, &Globals.bMsAddPrinterWizard) FN_GLOBAL_BOOL(lp_dns_proxy, &Globals.bDNSproxy) FN_GLOBAL_BOOL(lp_wins_support, &Globals.bWINSsupport) FN_GLOBAL_BOOL(lp_we_are_a_wins_server, &Globals.bWINSsupport) |