From a76fbd11508d1390e8c0ea65afef6222a29ff247 Mon Sep 17 00:00:00 2001 From: Simon Busch Date: Thu, 25 Aug 2011 08:26:51 +0200 Subject: Implement generic interface for ipc API --- samsung-ipc/ipc.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 samsung-ipc/ipc.h (limited to 'samsung-ipc/ipc.h') diff --git a/samsung-ipc/ipc.h b/samsung-ipc/ipc.h new file mode 100644 index 0000000..29a30bd --- /dev/null +++ b/samsung-ipc/ipc.h @@ -0,0 +1,36 @@ +/** + * This file is part of libsamsung-ipc. + * + * Copyright (C) 2011 Simon Busch + * + * 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 . + * + */ + +#ifndef __IPC_H__ +#define __IPC_H__ + +struct ipc_ops { + int (*open)(void); + int (*close)(void); + int (*power_on)(void); + int (*power_off)(void); + int (*send)(struct ipc_request*); + int (*recv)(struct ipc_response*); +}; + +#define IPC_CLIENT_TYPE_CRESPO 1 +#define IPC_CLIENT_TYPE_H1 2 + +#endif -- cgit v1.1