aboutsummaryrefslogtreecommitdiffstats
path: root/include/disp.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-06-25 16:22:19 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-06-25 16:22:19 +0200
commit9d1137d9197552439af937fee4b9ec5368f562bf (patch)
treeea7fc5e6a73761d414daa9f09eadf05a5937bb89 /include/disp.h
parente207275718352c781c5ddcfdd1015fde36259e9b (diff)
downloadexternal_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.zip
external_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.tar.gz
external_libsamsung-ipc-9d1137d9197552439af937fee4b9ec5368f562bf.tar.bz2
Drop support for the (incomplete) old protocol implementation used on H1.
Also refactor headers: values aligned to 16x4 spaces and other cosmetics Change-Id: I5a6f2c2471599c88c4be74591117d0ab2dfaaddf Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/disp.h')
-rw-r--r--include/disp.h34
1 files changed, 23 insertions, 11 deletions
diff --git a/include/disp.h b/include/disp.h
index 09c60c5..089031d 100644
--- a/include/disp.h
+++ b/include/disp.h
@@ -1,6 +1,7 @@
-/**
+/*
* This file is part of libsamsung-ipc.
*
+ * Copyright (C) 2011-2013 Paul Kocialkowski <contact@paulk.fr>
* Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
*
* libsamsung-ipc is free software: you can redistribute it and/or modify
@@ -18,18 +19,29 @@
*
*/
-#ifndef __DISP_H__
-#define __DISP_H__
+#include <samsung-ipc.h>
-#if defined(DEVICE_IPC_V4)
-#include "device/ipc-v4/disp.h"
-#elif defined(DEVICE_H1)
-#include "device/h1/disp.h"
-#endif
+#ifndef __SAMSUNG_IPC_DISP_H__
+#define __SAMSUNG_IPC_DISP_H__
+
+/*
+ * Types
+ */
+
+#define IPC_DISP_ICON_INFO 0x0701
+#define IPC_DISP_HOMEZONE_INFO 0x0702
+#define IPC_DISP_RSSI_INFO 0x0706
-#define IPC_DISP_ICON_INFO 0x0701
-#define IPC_DISP_HOMEZONE_INFO 0x0702
-#define IPC_DISP_RSSI_INFO 0x0706
+/*
+ * Structures
+ */
+
+struct ipc_disp_icon_info {
+ unsigned char rssi;
+ unsigned char bars;
+ unsigned char act;
+ unsigned char reg;
+} __attribute__((__packed__));
struct ipc_disp_rssi_info {
unsigned char rssi;