Lines Matching defs:pps

38 remount_form(register PSTATUS *pps, FSTATUS *pfs, short trayNum)
41 if (pps->forms && (pps->forms[trayNum].form == pfs)) {
42 pps->forms[trayNum].isAvailable = (pfs ? 1 : 0);
45 } else if ((!pps->forms) && (!pfs)) {
52 if (pps->forms && pps->forms[trayNum].form) {
53 register FSTATUS *Opfs = pps->forms[trayNum].form;
55 pps->forms[trayNum].form = 0;
56 pps->forms[trayNum].isAvailable = 1;
68 (void)queue_repel (pps, 0, qchk_form);
83 if (pps && !pps->forms) {
84 pps->forms = (PFSTATUS *)calloc((trayNum +1),
86 pps->numForms = trayNum + 1;
89 if (pps && pps->forms && (pps->numForms > trayNum)) {
90 pps->forms[trayNum].form = pfs;
91 pps->forms[trayNum].isAvailable = 1;
108 queue_attract (pps, qchk_form, 0);
123 queue_attract (pps, qchk_form, 1);
136 remount_pwheel(register PSTATUS *pps, char *pwheel_name)
140 if (SAME(pps->pwheel_name, pwheel_name))
146 if (pps->pwheel_name) {
147 register PWSTATUS *Oppws = pps->pwheel;
149 pps->pwheel = 0;
161 pwheel_in_question = pps->pwheel_name;
162 (void)queue_repel (pps, 0, qchk_pwheel);
164 unload_str (&pps->pwheel_name);
177 load_str (&pps->pwheel_name, pwheel_name);
179 pps->pwheel = ppws;
192 queue_attract (pps, qchk_pwheel, 0);
209 queue_attract (pps, qchk_pwheel, 1);
220 queue_attract (pps, qchk_pwheel, 1);
240 register PSTATUS *pps;
248 if (!*printer || !(pps = search_pstatus(printer)))
256 else if (pps->request)
259 else if (pps->forms) {
260 if (!(ppfs = Realloc(pps->forms,numTrays * sizeof(PFSTATUS))))
265 for (i = pps->numForms; i < numTrays; i++) {
269 pps->forms = ppfs;
270 pps->numForms = numTrays;
276 pps->forms = ppfs;
277 pps->numForms = numTrays;
293 register PSTATUS *pps;
304 else if (!*printer || !(pps = search_pstatus(printer)))
312 else if (pps->request)
320 remount_form (pps, pfs,1);
322 remount_pwheel(pps, pwheel_name);
340 register PSTATUS *pps;
353 else if (!*printer || !(pps = search_pstatus(printer)))
361 else if ((trayNum <=0) || (trayNum > pps->numForms))
365 else if (pps->request)
373 remount_form(pps, pfs,trayNum);
375 remount_pwheel(pps, pwheel_name);
394 register PSTATUS *pps;
407 else if (!*printer || !(pps = search_pstatus(printer)))
415 else if (pps->request)
423 remount_form (pps, (FSTATUS *)0,1);
425 remount_pwheel (pps, (char *)0);
447 register PSTATUS *pps;
459 else if (!*printer || !(pps = search_pstatus(printer)))
462 else if ((trayNum <=0) || (trayNum > pps->numForms))
465 else if (pps->request)
471 remount_form (pps, (FSTATUS *)0,trayNum);
473 remount_pwheel (pps, (char *)0);
717 register PSTATUS *pps;