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