aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/pies.h b/src/pies.h
index ad8e8ee..39977c7 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -270,7 +270,8 @@ enum pies_action {
ACTION_RESTART,
ACTION_RELOAD,
ACTION_CTRLALTDEL,
- ACTION_KBREQUEST
+ ACTION_KBREQUEST,
+ ACTION_POWER
};
extern char *instance;
@@ -316,7 +317,7 @@ void pies_schedule_action (int act);
void free_action (struct action *act);
void register_prog (struct component *comp);
-int progman_running_p (void);
+int progman_waiting_p (void);
size_t progman_running_count (void);
void progman_start (void);
void progman_wake_sleeping (int);
@@ -513,6 +514,7 @@ int inittab_parse (const char *file);
int sysvinit_sigtrans (int sig, int *pact);
void sysvinit_runlevel_setup (int mask, int *wait);
void sysvinit_sysdep_begin (void);
+void sysvinit_power (void);
extern char *sysvinit_environ_hint[];
extern char *init_fifo;
@@ -521,6 +523,16 @@ extern char *init_fifo;
# define INIT_FIFO "/dev/initctl"
#endif
+#ifndef POWER_STAT_FILE
+# define POWER_STAT_FILE "/var/run/powerstatus"
+#endif
+
+/* Power status values */
+#define POWER_STAT_FAIL 'F'
+#define POWER_STAT_LOW 'L'
+#define POWER_STAT_OK 'O'
+
+/* Request codes */
#define INIT_MAGIC 0x03091969
#define INIT_CMD_START 0
#define INIT_CMD_RUNLVL 1

Return to:

Send suggestions and report system problems to the System administrator.