Lines Matching refs:form

41 	if (pps->forms && (pps->forms[trayNum].form == pfs)) {
50 * Unmount the old form.
52 if (pps->forms && pps->forms[trayNum].form) {
53 register FSTATUS *Opfs = pps->forms[trayNum].form;
55 pps->forms[trayNum].form = 0;
60 * Unmounting the form may make some print requests
62 * only because the form was already mounted.
63 * Unmounting the form will also force some requests
64 * to another printer (where the form is mounted)
77 * Mount the new form?
81 pfs, (pfs ? pfs->form->name : "NULL"), trayNum);
90 pps->forms[trayNum].form = pfs;
94 return; /* nothing to do, can't mount form,
101 * form. This may cause some unnecessary shuffling, but
103 * without the form mounted, so that the alert check is
118 * Attract first request that doesn't need a form mounted.
266 ppfs[i].form = NULL;
291 char *printer, *form, *pwheel_name;
296 (void) getmessage(m, S_MOUNT, &printer, &form, &pwheel_name);
298 (form ? form : "NULL"), (pwheel_name ? pwheel_name : "NULL"));
300 if (!*form && !*pwheel_name)
307 /* How about the form? */
308 else if (*form && !(pfs = search_fstatus(form)))
319 if (*form)
337 char *printer, *form, *pwheel_name;
343 (void) getmessage(m, S_MOUNT_TRAY, &printer, &form, &pwheel_name,
346 (printer ? printer : "NULL"), (form ? form : "NULL"),
349 if (!*form && !*pwheel_name)
356 /* How about the form? */
357 else if (*form && !(pfs = search_fstatus(form)))
372 if (*form)
391 *form,
396 (void)getmessage (m, S_UNMOUNT, &printer, &form, &pwheel_name);
398 (printer ? printer : "NULL"), (form ? form : "NULL"),
401 if (!*form && !*pwheel_name)
413 * we can't unmount the current form/pwheel.
422 if (*form)
441 *form,
449 (void)getmessage (m, S_UNMOUNT_TRAY, &printer, &form, &pwheel_name,
452 (printer ? printer : "NULL"), (form ? form : "NULL"),
456 if (!*form && !*pwheel_name)
470 if (*form)
489 char *form;
494 (void)getmessage (m, S_LOAD_FORM, &form);
495 syslog(LOG_DEBUG, "s_load_form(%s)", (form ? form : "NULL"));
497 if (!*form)
498 /* no form specified */
500 else if (!(pf = Getform(form))) {
501 /* strange or missing form */
512 } else if ((pfs = search_fstatus(form))) {
513 /* Have we seen this form before? */
550 * Room for a new form?
554 * No alert is possible for a new form, of course,
581 * Unmount this form everywhere and get rid of it.
588 if (ppfs[j].form == pfs) ppfs[j].form= NULL;
597 char *form;
602 (void)getmessage (m, S_UNLOAD_FORM, &form);
603 syslog(LOG_DEBUG, "s_unload_form(%s)", (form ? form : "NULL"));
605 if (!*form || STREQU(form, NAME_ALL)) {
607 /* If we have a request queued for ANY form, we can't do it. */
612 if (prs->form == FStatus[i]) {
625 } else if (!*form || !(pfs = search_fstatus(form)))
626 /* Have we seen this form before? */
629 /* Is there even one request waiting for this form? */
632 if (prs->form == pfs) {
740 * similar code for unloading a form, because, to be able to
741 * unload a form we first require NO requests pending. If no