aboutsummaryrefslogtreecommitdiffstats
path: root/include/protocol.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-02-15 20:16:19 +0100
committerPaul Kocialkowski <contact@paulk.fr>2014-02-15 20:58:20 +0100
commit005645221f3d4dd432970f8f28d9092d66d61213 (patch)
tree6ff93168ae04da425313ada33631fee507cfd7da /include/protocol.h
parentec82c3a5350b8747e1c0a7a0393ab0374dd9fbd5 (diff)
downloadexternal_libsamsung-ipc-005645221f3d4dd432970f8f28d9092d66d61213.zip
external_libsamsung-ipc-005645221f3d4dd432970f8f28d9092d66d61213.tar.gz
external_libsamsung-ipc-005645221f3d4dd432970f8f28d9092d66d61213.tar.bz2
ipc: Consistent coding style and major cleanup
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/protocol.h')
-rw-r--r--include/protocol.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/protocol.h b/include/protocol.h
index 1de64df..d2b58d0 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -2,6 +2,7 @@
* This file is part of libsamsung-ipc.
*
* Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
+ * Copyright (C) 2014 Paul Kocialkowski <contact@paulk.fr>
*
* 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
@@ -66,9 +67,9 @@
* Macros
*/
-#define IPC_COMMAND(f) ((f->group << 8) | f->index)
-#define IPC_GROUP(m) (m >> 8)
-#define IPC_INDEX(m) (m & 0xff)
+#define IPC_COMMAND(group, index) ((group << 8) | index)
+#define IPC_GROUP(command) (command >> 8)
+#define IPC_INDEX(command) (command & 0xff)
/*
* Structures