]>
Commit | Line | Data |
---|---|---|
09ec0018 | 1 | /* |
1deb86fd | 2 | * System management definitions for the CUPS scheduler. |
09ec0018 | 3 | * |
1deb86fd MS |
4 | * Copyright 2007-2014 by Apple Inc. |
5 | * Copyright 2006 by Easy Software Products. | |
09ec0018 | 6 | * |
1deb86fd MS |
7 | * These coded instructions, statements, and computer programs are the |
8 | * property of Apple Inc. and are protected by Federal copyright | |
9 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
10 | * which should have been included with this file. If this file is | |
57b7b66b | 11 | * missing or damaged, see the license at "http://www.cups.org/". |
09ec0018 | 12 | */ |
13 | ||
3dfe78b3 MS |
14 | /* |
15 | * Constants... | |
16 | */ | |
17 | ||
18 | #define CUPSD_DIRTY_NONE 0 /* Nothing is dirty */ | |
19 | #define CUPSD_DIRTY_PRINTERS 1 /* printers.conf is dirty */ | |
20 | #define CUPSD_DIRTY_CLASSES 2 /* classes.conf is dirty */ | |
a2326b5b MS |
21 | #define CUPSD_DIRTY_PRINTCAP 4 /* printcap is dirty */ |
22 | #define CUPSD_DIRTY_JOBS 8 /* jobs.cache or "c" file(s) are dirty */ | |
23 | #define CUPSD_DIRTY_SUBSCRIPTIONS 16 /* subscriptions.conf is dirty */ | |
24 | ||
3dfe78b3 | 25 | |
09ec0018 | 26 | /* |
27 | * Globals... | |
28 | */ | |
29 | ||
3dfe78b3 MS |
30 | VAR int DirtyFiles VALUE(CUPSD_DIRTY_NONE), |
31 | /* What files are dirty? */ | |
49d87452 | 32 | DirtyCleanInterval VALUE(DEFAULT_KEEPALIVE); |
3dfe78b3 MS |
33 | /* How often do we write dirty files? */ |
34 | VAR time_t DirtyCleanTime VALUE(0); | |
35 | /* When to clean dirty files next */ | |
1deb86fd MS |
36 | VAR int ACPower VALUE(-1), |
37 | /* Is the system on AC power? */ | |
38 | Sleeping VALUE(0); | |
09ec0018 | 39 | /* Non-zero if machine is entering or * |
40 | * in a sleep state... */ | |
e6013cfa MS |
41 | VAR time_t SleepJobs VALUE(0); |
42 | /* Time when all jobs must be * | |
43 | * canceled for system sleep. */ | |
09ec0018 | 44 | #ifdef __APPLE__ |
45 | VAR int SysEventPipes[2] VALUE2(-1,-1); | |
46 | /* System event notification pipes */ | |
47 | #endif /* __APPLE__ */ | |
48 | ||
49 | ||
50 | /* | |
51 | * Prototypes... | |
52 | */ | |
53 | ||
e6013cfa | 54 | extern void cupsdAllowSleep(void); |
3dfe78b3 MS |
55 | extern void cupsdCleanDirty(void); |
56 | extern void cupsdMarkDirty(int what); | |
57 | extern void cupsdSetBusyState(void); | |
09ec0018 | 58 | extern void cupsdStartSystemMonitor(void); |
59 | extern void cupsdStopSystemMonitor(void); |