aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/device/h1/disp.h30
-rw-r--r--include/device/ipc-v4/disp.h31
-rw-r--r--include/disp.h10
3 files changed, 67 insertions, 4 deletions
diff --git a/include/device/h1/disp.h b/include/device/h1/disp.h
new file mode 100644
index 0000000..81129c2
--- /dev/null
+++ b/include/device/h1/disp.h
@@ -0,0 +1,30 @@
+/**
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
+ *
+ * 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 __DEVICE_H1_DISP_H__
+#define __DEVICE_H1_DISP_H__
+
+struct ipc_disp_icon_info {
+ unsigned char unk, rssi, battery, act, reg;
+} __attribute__((__packed__));
+
+#endif
+
+// vim:ts=4:sw=4:expandtab
diff --git a/include/device/ipc-v4/disp.h b/include/device/ipc-v4/disp.h
new file mode 100644
index 0000000..8f0e64e
--- /dev/null
+++ b/include/device/ipc-v4/disp.h
@@ -0,0 +1,31 @@
+/**
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
+ * Copyright (C) 2012 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
+ * 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 __DEVICE_IPC_V4_DISP_H__
+#define __DEVICE_IPC_V4_DISP_H__
+
+struct ipc_disp_icon_info {
+ unsigned char rssi, battery, act, reg;
+} __attribute__((__packed__));
+
+#endif
+
+// vim:ts=4:sw=4:expandtab
diff --git a/include/disp.h b/include/disp.h
index 607e86a..906ed58 100644
--- a/include/disp.h
+++ b/include/disp.h
@@ -21,14 +21,16 @@
#ifndef __DISP_H__
#define __DISP_H__
+#if defined(DEVICE_IPC_V4)
+#include "device/ipc-v4/disp.h"
+#elif defined(DEVICE_H1)
+#include "device/h1/disp.h"
+#endif
+
#define IPC_DISP_ICON_INFO 0x0701
#define IPC_DISP_HOMEZONE_INFO 0x0702
#define IPC_DISP_RSSI_INFO 0x0706
-struct ipc_disp_icon_info {
- unsigned char unk, rssi, battery, act, reg;
-} __attribute__((__packed__));
-
struct ipc_disp_rssi_info {
unsigned char rssi;
} __attribute__((__packed__));