diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 16:22:19 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-06-25 16:22:19 +0200 |
commit | 9d1137d9197552439af937fee4b9ec5368f562bf (patch) | |
tree | ea7fc5e6a73761d414daa9f09eadf05a5937bb89 /include/gen.h | |
parent | e207275718352c781c5ddcfdd1015fde36259e9b (diff) | |
download | external_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/gen.h')
-rw-r--r-- | include/gen.h | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/include/gen.h b/include/gen.h index f707151..7f2fe6d 100644 --- a/include/gen.h +++ b/include/gen.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,16 +19,31 @@ * */ -#ifndef __GEN_H__ -#define __GEN_H__ +#include <samsung-ipc.h> -#if defined(DEVICE_IPC_V4) -#include "device/ipc-v4/gen.h" -#elif defined(DEVICE_H1) -#include "device/h1/gen.h" -#endif +#ifndef __SAMSUNG_IPC_GEN_H__ +#define __SAMSUNG_IPC_GEN_H__ + +/* + * Types + */ + +#define IPC_GEN_PHONE_RES 0x8001 -#define IPC_GEN_PHONE_RES 0x8001 +/* + * Structures + */ + +struct ipc_gen_phone_res { + unsigned char group; + unsigned char index; + unsigned char type; + unsigned short code; +} __attribute__((__packed__)); + +/* + * Helpers + */ int ipc_gen_phone_res_check(struct ipc_gen_phone_res *res); |