aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc.h
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-08-25 08:26:51 +0200
committerSimon Busch <morphis@gravedo.de>2011-08-25 08:26:51 +0200
commita76fbd11508d1390e8c0ea65afef6222a29ff247 (patch)
treeaafa8fe4cba16d3529258f70f537dfb85e9db25c /samsung-ipc/ipc.h
parent66e708c0098ca2a882fe05c9e4fd452d03d2f557 (diff)
downloadexternal_libsamsung-ipc-a76fbd11508d1390e8c0ea65afef6222a29ff247.zip
external_libsamsung-ipc-a76fbd11508d1390e8c0ea65afef6222a29ff247.tar.gz
external_libsamsung-ipc-a76fbd11508d1390e8c0ea65afef6222a29ff247.tar.bz2
Implement generic interface for ipc API
Diffstat (limited to 'samsung-ipc/ipc.h')
-rw-r--r--samsung-ipc/ipc.h36
1 files changed, 36 insertions, 0 deletions
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 <morphis@gravedo.de>
+ *
+ * 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 __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