aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc_util.c
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-13 19:09:53 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-13 19:10:12 +0200
commite6d23fad3e0a4670ca47f5fa399998c6e0792c67 (patch)
tree1a790f3f77488b0ff74cf96d2b7c9d87f1da9d1a /samsung-ipc/ipc_util.c
parent40bbce7f48bff2ea366fbd611cb3b18d6b2201d9 (diff)
downloadexternal_libsamsung-ipc-e6d23fad3e0a4670ca47f5fa399998c6e0792c67.zip
external_libsamsung-ipc-e6d23fad3e0a4670ca47f5fa399998c6e0792c67.tar.gz
external_libsamsung-ipc-e6d23fad3e0a4670ca47f5fa399998c6e0792c67.tar.bz2
Several updates regarding better vala api description support
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc/ipc_util.c')
-rw-r--r--samsung-ipc/ipc_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/samsung-ipc/ipc_util.c b/samsung-ipc/ipc_util.c
index 06e7161..e927587 100644
--- a/samsung-ipc/ipc_util.c
+++ b/samsung-ipc/ipc_util.c
@@ -22,8 +22,8 @@
#define IPC_STR(f) case f: return #f;
-const char *ipc_response_type(struct ipc_response *frame) {
- switch(frame->type) {
+const char *ipc_response_type_to_str(int type) {
+ switch(type) {
case IPC_TYPE_INDICATION:
return "INDICATION";
case IPC_TYPE_RESPONSE:
@@ -35,8 +35,8 @@ const char *ipc_response_type(struct ipc_response *frame) {
}
}
-const char *ipc_str(struct ipc_response *frame) {
- switch(frame->command) {
+const char *ipc_command_type_to_str(int command) {
+ switch(command) {
IPC_STR(IPC_PWR_PHONE_PWR_UP)
IPC_STR(IPC_PWR_PHONE_PWR_OFF)
IPC_STR(IPC_PWR_PHONE_RESET)