aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
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')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/pwr.h38
-rw-r--r--include/types.h10
3 files changed, 40 insertions, 9 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 6cb2a76..ca83feb 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -11,6 +11,7 @@ samsung_ipcinclude_HEADERS = \
radio.h \
sec.h \
sms.h \
+ pwr.h \
types.h \
util.h \
$(NULL)
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
+
+
diff --git a/include/types.h b/include/types.h
index c20db86..3f8947a 100644
--- a/include/types.h
+++ b/include/types.h
@@ -28,6 +28,7 @@
#include "net.h"
#include "sec.h"
#include "sms.h"
+#include "pwr.h"
/* AP -> Baseband */
#define IPC_TYPE_EXEC 0x01
@@ -61,15 +62,6 @@
#define IPC_GROUP_SAP 0x12
#define IPC_GROUP_GEN 0x80
-/* Power */
-#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
-
/* Pb */
#define IPC_PB_ACCESS 0x0601
#define IPC_PB_STORAGE 0x0602