summaryrefslogtreecommitdiff
path: root/util/powerd_lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/powerd_lock.h')
-rw-r--r--util/powerd_lock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/powerd_lock.h b/util/powerd_lock.h
index c486047035..ddcd5f0553 100644
--- a/util/powerd_lock.h
+++ b/util/powerd_lock.h
@@ -24,6 +24,14 @@
#ifndef __POWER_H__
#define __POWER_H__ 1
+enum POWERD_ERROR_CODE {
+ POWERD_OK = 0,
+ POWERD_CREATE_LOCK_FILE_ERROR = 0x1,
+ POWERD_WRITE_LOCK_FILE_ERROR = 0x2,
+ POWERD_CLOSE_LOCK_FILE_ERROR = 0x4,
+ POWERD_DELETE_LOCK_FILE_ERROR = 0x8
+};
+
/* Disable power management. */
int disable_power_management(void);