| 1 |
/* |
| 2 |
* PrintQueue.h |
| 3 |
* C interface to routines for processing and printing spool files. |
| 4 |
* |
| 5 |
* Written by: Ken McLeod, 2026-01-16 |
| 6 |
* Last update: 2026-01-28 |
| 7 |
* |
| 8 |
* This software is provided as-is, with no warranties expressed or implied, |
| 9 |
* under the terms of the BSD 2-Clause License. See separate "LICENSE" file. |
| 10 |
*/ |
| 11 |
|
| 12 |
#ifndef __PRINT_QUEUE__ |
| 13 |
#define __PRINT_QUEUE__ |
| 14 |
|
| 15 |
#include <Types.h> |
| 16 |
|
| 17 |
#ifdef __cplusplus |
| 18 |
extern "C" { |
| 19 |
#endif |
| 20 |
|
| 21 |
/* call this in main event loop to check and process spooled print jobs. */ |
| 22 |
/* startHour and endHour values define a time window when we can actually print. */ |
| 23 |
void CheckPrintQueue(Boolean printingEnabled, short startHour, short endHour); |
| 24 |
|
| 25 |
void StartPrintQueue(char *prefixToAccept, char *serialPortName); |
| 26 |
void StopPrintQueue(void); |
| 27 |
|
| 28 |
long JobsPrinted(void); |
| 29 |
|
| 30 |
|
| 31 |
#ifdef __cplusplus |
| 32 |
} |
| 33 |
#endif |
| 34 |
|
| 35 |
#endif /* __PRINT_QUEUE__ */ |