aboutsummaryrefslogtreecommitdiffstats
path: root/include/protocol.h
diff options
context:
space:
mode:
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