summaryrefslogtreecommitdiff
path: root/scheduler/sysman.h
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-08-30 01:51:22 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-08-30 01:51:22 +0000
commit1deb86fdaf8ca1e9bee08b0218b355bac6a9447d (patch)
tree6e3e1d65d12cda6c283e683fac60dfebdca60659 /scheduler/sysman.h
parent1b6d468c9a837ec1620369a6dbf9770fc3914ff8 (diff)
Re-introduce dark wake support, but this time while monitoring the current
power source (<rdar://problem/17325852>) This allows printing to work while the system is visibly asleep. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12140 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/sysman.h')
-rw-r--r--scheduler/sysman.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/scheduler/sysman.h b/scheduler/sysman.h
index 810b185f0..e3497ed0e 100644
--- a/scheduler/sysman.h
+++ b/scheduler/sysman.h
@@ -1,16 +1,16 @@
/*
* "$Id$"
*
- * System management definitions for the CUPS scheduler.
+ * System management definitions for the CUPS scheduler.
*
- * Copyright 2007-2011 by Apple Inc.
- * Copyright 2006 by Easy Software Products.
+ * Copyright 2007-2014 by Apple Inc.
+ * Copyright 2006 by Easy Software Products.
*
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * which should have been included with this file. If this file is
- * file is missing or damaged, see the license at "http://www.cups.org/".
+ * These coded instructions, statements, and computer programs are the
+ * property of Apple Inc. and are protected by Federal copyright
+ * law. Distribution and use rights are outlined in the file "LICENSE.txt"
+ * which should have been included with this file. If this file is
+ * file is missing or damaged, see the license at "http://www.cups.org/".
*/
/*
@@ -35,7 +35,9 @@ VAR int DirtyFiles VALUE(CUPSD_DIRTY_NONE),
/* How often do we write dirty files? */
VAR time_t DirtyCleanTime VALUE(0);
/* When to clean dirty files next */
-VAR int Sleeping VALUE(0);
+VAR int ACPower VALUE(-1),
+ /* Is the system on AC power? */
+ Sleeping VALUE(0);
/* Non-zero if machine is entering or *
* in a sleep state... */
VAR time_t SleepJobs VALUE(0);