]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/sysman.h
Add support for ASL and journald when doing "syslog" logging (STR #4474)
[thirdparty/cups.git] / scheduler / sysman.h
CommitLineData
09ec0018 1/*
f2d18633 2 * "$Id$"
09ec0018 3 *
1deb86fd 4 * System management definitions for the CUPS scheduler.
09ec0018 5 *
1deb86fd
MS
6 * Copyright 2007-2014 by Apple Inc.
7 * Copyright 2006 by Easy Software Products.
09ec0018 8 *
1deb86fd
MS
9 * These coded instructions, statements, and computer programs are the
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 */
a2326b5b
MS
23#define CUPSD_DIRTY_PRINTCAP 4 /* printcap is dirty */
24#define CUPSD_DIRTY_JOBS 8 /* jobs.cache or "c" file(s) are dirty */
25#define CUPSD_DIRTY_SUBSCRIPTIONS 16 /* subscriptions.conf is dirty */
26
3dfe78b3 27
09ec0018 28/*
29 * Globals...
30 */
31
3dfe78b3
MS
32VAR int DirtyFiles VALUE(CUPSD_DIRTY_NONE),
33 /* What files are dirty? */
49d87452 34 DirtyCleanInterval VALUE(DEFAULT_KEEPALIVE);
3dfe78b3
MS
35 /* How often do we write dirty files? */
36VAR time_t DirtyCleanTime VALUE(0);
37 /* When to clean dirty files next */
1deb86fd
MS
38VAR int ACPower VALUE(-1),
39 /* Is the system on AC power? */
40 Sleeping VALUE(0);
09ec0018 41 /* Non-zero if machine is entering or *
42 * in a sleep state... */
e6013cfa
MS
43VAR time_t SleepJobs VALUE(0);
44 /* Time when all jobs must be *
45 * canceled for system sleep. */
09ec0018 46#ifdef __APPLE__
47VAR int SysEventPipes[2] VALUE2(-1,-1);
48 /* System event notification pipes */
49#endif /* __APPLE__ */
50
51
52/*
53 * Prototypes...
54 */
55
e6013cfa 56extern void cupsdAllowSleep(void);
3dfe78b3
MS
57extern void cupsdCleanDirty(void);
58extern void cupsdMarkDirty(int what);
59extern void cupsdSetBusyState(void);
09ec0018 60extern void cupsdStartSystemMonitor(void);
61extern void cupsdStopSystemMonitor(void);
09ec0018 62
63
64/*
f2d18633 65 * End of "$Id$".
09ec0018 66 */