aboutsummaryrefslogtreecommitdiffstats
path: root/include/pwr.h
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-17 20:53:51 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-17 20:53:51 +0200
commit6f5f9d7e01d11b7264806fca558bdcfaff06aed8 (patch)
tree9de720bd2d15a6a923a3ae9192b16f2c4e3e48f5 /include/pwr.h
parent58804670e5a3ca3dc5a8c452ae15c121959e5b6b (diff)
downloadexternal_libsamsung-ipc-6f5f9d7e01d11b7264806fca558bdcfaff06aed8.zip
external_libsamsung-ipc-6f5f9d7e01d11b7264806fca558bdcfaff06aed8.tar.gz
external_libsamsung-ipc-6f5f9d7e01d11b7264806fca558bdcfaff06aed8.tar.bz2
More work regarding vala APi description
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'include/pwr.h')
-rw-r--r--include/pwr.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/pwr.h b/include/pwr.h
new file mode 100644
index 0000000..a977557
--- /dev/null
+++ b/include/pwr.h
@@ -0,0 +1,38 @@
+/**
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
+ * 2011 Simon Busch <morphis@gravedo.de>
+ *
+ * libsamsung-ipc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * libsamsung-ipc is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef __PWR_H__
+#define __PWR_H__
+
+#define IPC_PWR_PHONE_PWR_UP 0x0101
+#define IPC_PWR_PHONE_PWR_OFF 0x0102
+#define IPC_PWR_PHONE_RESET 0x0103
+#define IPC_PWR_BATT_STATUS 0x0104
+#define IPC_PWR_BATT_TYPE 0x0105
+#define IPC_PWR_BATT_COMP 0x0106
+#define IPC_PWR_PHONE_STATE 0x0107
+
+#define IPC_PWR_PHONE_STATE_LPM 0x0
+#define IPC_PWR_PHONE_STATE_NORMAL 0x2
+
+#endif
+
+