summaryrefslogtreecommitdiffstats
path: root/ipc.h
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2011-12-21 21:54:03 +0100
committerPaulK <contact@paulk.fr>2011-12-21 21:54:03 +0100
commit0091ceae5f7cbeeb42e3b43de3dcf8e500fe8752 (patch)
treedff5b107e7c51dcbb71d636fd6189d3570881a39 /ipc.h
parentcb295e0a15c8bc5087a542f25bc369aecbecde80 (diff)
downloadhardware_ril_samsung-ril-0091ceae5f7cbeeb42e3b43de3dcf8e500fe8752.zip
hardware_ril_samsung-ril-0091ceae5f7cbeeb42e3b43de3dcf8e500fe8752.tar.gz
hardware_ril_samsung-ril-0091ceae5f7cbeeb42e3b43de3dcf8e500fe8752.tar.bz2
RIL rework: multi-client, more stable, added GPLv3 copyright notice
Diffstat (limited to 'ipc.h')
-rw-r--r--ipc.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/ipc.h b/ipc.h
new file mode 100644
index 0000000..5edc58d
--- /dev/null
+++ b/ipc.h
@@ -0,0 +1,45 @@
+/**
+ * This file is part of samsung-ril.
+ *
+ * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
+ * Copyright (C) 2011 Paul Kocialkowski <contact@oaulk.fr>
+ *
+ * samsung-ril 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.
+ *
+ * samsung-ril 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 samsung-ril. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef _SAMSUNG_RIL_IPC_H_
+#define _SAMSUNG_RIL_IPC_H_
+
+#include "samsung-ril.h"
+
+#define ipc_fmt_send_get(command, mseq) \
+ ipc_fmt_send(command, IPC_TYPE_GET, NULL, 0, mseq)
+
+#define ipc_fmt_send_set(command, mseq, data, length) \
+ ipc_fmt_send(command, IPC_TYPE_SET, data, length, mseq)
+
+#define ipc_fmt_send_exec(command, mseq) \
+ ipc_fmt_send(command, IPC_TYPE_EXEC, NULL, 0, mseq)
+
+struct ipc_client_object {
+ struct ipc_client *ipc_client;
+ int ipc_client_fd;
+};
+
+extern struct ril_client_funcs ipc_fmt_client_funcs;
+
+void ipc_fmt_send(const unsigned short command, const char type, unsigned char *data, const int length, unsigned char mseq);
+
+#endif