summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorDavid O'Neill <dmo@samba.org>2000-11-14 15:26:53 +0000
committerDavid O'Neill <dmo@samba.org>2000-11-14 15:26:53 +0000
commitf9680a444bcba72540ab5e23bb44677ef74a9f13 (patch)
treecb75757616cb1aa7262c1b3b291094089ea6d75f /source3/param/loadparm.c
parente0bcc7ff5434e9f858acc6a79d1842d86d37d73e (diff)
downloadsamba-f9680a444bcba72540ab5e23bb44677ef74a9f13.tar.gz
samba-f9680a444bcba72540ab5e23bb44677ef74a9f13.tar.bz2
samba-f9680a444bcba72540ab5e23bb44677ef74a9f13.zip
Changes from APPLIANCE_HEAD:
- merged Tim's vlp (virtual lp) test program. Enable it with -DDEVELOPER or by using ./configure.developer (source/include/smb.h source/configure.developer source/printing/lpq_parse.c source/param/loadparm.c testsuite/printing/.cvsignore testsuite/printing/Makefile.vlp testsuite/printing/vlp.c) (This used to be commit fbcf83140da1823e74f63227f0a95d07c6e76764)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index dc2082423b..9dcd7bbc2e 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -561,6 +561,10 @@ static struct enum_list enum_printing[] = {
{PRINT_CUPS, "cups"},
{PRINT_LPRNT, "nt"},
{PRINT_LPROS2, "os2"},
+#ifdef DEVELOPER
+ {PRINT_TEST, "test"},
+ {PRINT_TEST, "vlp"},
+#endif /* DEVELOPER */
{-1, NULL}
};
@@ -1099,6 +1103,18 @@ static void init_printer_values(void)
string_set(&sDefault.szLpresumecommand,
"qstat -s -j%j -r");
break;
+#ifdef DEVELOPER
+ case PRINT_TEST:
+ case PRINT_VLP:
+ string_set(&sDefault.szPrintcommand, "vlp print %p %s");
+ string_set(&sDefault.szLpqcommand, "vlp lpq %p");
+ string_set(&sDefault.szLprmcommand, "vlp lprm %p %j");
+ string_set(&sDefault.szLppausecommand, "vlp lppause %p %j");
+ string_set(&sDefault.szLpresumecommand, "vlp lpresum %p %j");
+ string_set(&sDefault.szQueuepausecommand, "vlp queuepause %p");
+ string_set(&sDefault.szQueueresumecommand, "vlp queueresume %p");
+ break;
+#endif /* DEVELOPER */
}
}