aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-06-25 20:03:27 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-06-25 20:03:27 +0200
commit0e0c698a13ae658640af085591b809bbc9a6f658 (patch)
treeb3becdaca8a25299b0cf48501382b0aa4262857f /samsung-ipc
parentb8eb72bed49a0353ca8d6fe2dc0d051d482c5d0e (diff)
downloadexternal_libsamsung-ipc-0e0c698a13ae658640af085591b809bbc9a6f658.zip
external_libsamsung-ipc-0e0c698a13ae658640af085591b809bbc9a6f658.tar.gz
external_libsamsung-ipc-0e0c698a13ae658640af085591b809bbc9a6f658.tar.bz2
Renamed ipc_private.h to ipc.h
Change-Id: Ie80159518b6d7d1a6422d3dc47a903eb7fdad6d8 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/Makefile.am2
-rw-r--r--samsung-ipc/device/aries/aries_ipc.c2
-rw-r--r--samsung-ipc/device/crespo/crespo_ipc.c2
-rw-r--r--samsung-ipc/device/galaxys2/galaxys2_ipc.c2
-rw-r--r--samsung-ipc/device/galaxys2/galaxys2_loader.c2
-rw-r--r--samsung-ipc/device/maguro/maguro_ipc.c2
-rw-r--r--samsung-ipc/device/maguro/maguro_loader.c2
-rw-r--r--samsung-ipc/device/piranha/piranha_ipc.c2
-rw-r--r--samsung-ipc/device/piranha/piranha_loader.c2
-rw-r--r--samsung-ipc/device/xmm6260/xmm6260_ipc.c2
-rw-r--r--samsung-ipc/device/xmm6260/xmm6260_loader.c2
-rw-r--r--samsung-ipc/device/xmm6260/xmm6260_modemctl.c2
-rw-r--r--samsung-ipc/ipc.c2
-rw-r--r--samsung-ipc/ipc.h (renamed from samsung-ipc/ipc_private.h)16
-rw-r--r--samsung-ipc/ipc_util.c3
-rw-r--r--samsung-ipc/rfs.c2
16 files changed, 28 insertions, 19 deletions
diff --git a/samsung-ipc/Makefile.am b/samsung-ipc/Makefile.am
index 2942973..ea2035f 100644
--- a/samsung-ipc/Makefile.am
+++ b/samsung-ipc/Makefile.am
@@ -28,7 +28,7 @@ libsamsung_ipc_la_SOURCES = \
call.c \
net.c \
wakelock.c \
- ipc_private.h \
+ ipc.h \
ipc_devices.h \
device/crespo/crespo_ipc.c \
device/aries/aries_ipc.c \
diff --git a/samsung-ipc/device/aries/aries_ipc.c b/samsung-ipc/device/aries/aries_ipc.c
index 4f5bf42..5c8705d 100644
--- a/samsung-ipc/device/aries/aries_ipc.c
+++ b/samsung-ipc/device/aries/aries_ipc.c
@@ -43,7 +43,7 @@
#include <samsung-ipc.h>
#include "aries_ipc.h"
-#include "ipc_private.h"
+#include "ipc.h"
#include "sipc4.h"
#include "onedram.h"
#include "phonet.h"
diff --git a/samsung-ipc/device/crespo/crespo_ipc.c b/samsung-ipc/device/crespo/crespo_ipc.c
index 026bb1f..6bef48a 100644
--- a/samsung-ipc/device/crespo/crespo_ipc.c
+++ b/samsung-ipc/device/crespo/crespo_ipc.c
@@ -38,7 +38,7 @@
#include "crespo_modem_ctl.h"
#include "crespo_ipc.h"
-#include "ipc_private.h"
+#include "ipc.h"
int crespo_modem_bootstrap(struct ipc_client *client)
{
diff --git a/samsung-ipc/device/galaxys2/galaxys2_ipc.c b/samsung-ipc/device/galaxys2/galaxys2_ipc.c
index e9ae68f..dbaced5 100644
--- a/samsung-ipc/device/galaxys2/galaxys2_ipc.c
+++ b/samsung-ipc/device/galaxys2/galaxys2_ipc.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "xmm6260_ipc.h"
#include "galaxys2_loader.h"
diff --git a/samsung-ipc/device/galaxys2/galaxys2_loader.c b/samsung-ipc/device/galaxys2/galaxys2_loader.c
index c0610af..35fb4e1 100644
--- a/samsung-ipc/device/galaxys2/galaxys2_loader.c
+++ b/samsung-ipc/device/galaxys2/galaxys2_loader.c
@@ -38,7 +38,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "galaxys2_loader.h"
#include "xmm6260_loader.h"
diff --git a/samsung-ipc/device/maguro/maguro_ipc.c b/samsung-ipc/device/maguro/maguro_ipc.c
index d746bb6..a25d357 100644
--- a/samsung-ipc/device/maguro/maguro_ipc.c
+++ b/samsung-ipc/device/maguro/maguro_ipc.c
@@ -26,7 +26,7 @@
#include <stdlib.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "xmm6260_ipc.h"
#include "maguro_loader.h"
diff --git a/samsung-ipc/device/maguro/maguro_loader.c b/samsung-ipc/device/maguro/maguro_loader.c
index 0d72d54..e6d8287 100644
--- a/samsung-ipc/device/maguro/maguro_loader.c
+++ b/samsung-ipc/device/maguro/maguro_loader.c
@@ -36,7 +36,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "maguro_loader.h"
#include "xmm6260_loader.h"
diff --git a/samsung-ipc/device/piranha/piranha_ipc.c b/samsung-ipc/device/piranha/piranha_ipc.c
index 0277ec3..81761b9 100644
--- a/samsung-ipc/device/piranha/piranha_ipc.c
+++ b/samsung-ipc/device/piranha/piranha_ipc.c
@@ -19,7 +19,7 @@
#include <stdlib.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "xmm6260_ipc.h"
#include "piranha_loader.h"
diff --git a/samsung-ipc/device/piranha/piranha_loader.c b/samsung-ipc/device/piranha/piranha_loader.c
index 1577d54..d5b28ad 100644
--- a/samsung-ipc/device/piranha/piranha_loader.c
+++ b/samsung-ipc/device/piranha/piranha_loader.c
@@ -37,7 +37,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "xmm6260_loader.h"
#include "xmm6260_modemctl.h"
diff --git a/samsung-ipc/device/xmm6260/xmm6260_ipc.c b/samsung-ipc/device/xmm6260/xmm6260_ipc.c
index 99d4727..c2d7a3b 100644
--- a/samsung-ipc/device/xmm6260/xmm6260_ipc.c
+++ b/samsung-ipc/device/xmm6260/xmm6260_ipc.c
@@ -40,7 +40,7 @@
#include <samsung-ipc.h>
#include <wakelock.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "xmm6260_ipc.h"
#include "xmm6260_loader.h"
diff --git a/samsung-ipc/device/xmm6260/xmm6260_loader.c b/samsung-ipc/device/xmm6260/xmm6260_loader.c
index 49de352..0c077c6 100644
--- a/samsung-ipc/device/xmm6260/xmm6260_loader.c
+++ b/samsung-ipc/device/xmm6260/xmm6260_loader.c
@@ -36,7 +36,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "xmm6260_loader.h"
#include "xmm6260_modemctl.h"
diff --git a/samsung-ipc/device/xmm6260/xmm6260_modemctl.c b/samsung-ipc/device/xmm6260/xmm6260_modemctl.c
index 161a024..e0048e7 100644
--- a/samsung-ipc/device/xmm6260/xmm6260_modemctl.c
+++ b/samsung-ipc/device/xmm6260/xmm6260_modemctl.c
@@ -36,7 +36,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "xmm6260_loader.h"
#include "xmm6260_modemctl.h"
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index 1201823..7225901 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -39,7 +39,7 @@
#include <samsung-ipc.h>
-#include "ipc_private.h"
+#include "ipc.h"
#include "ipc_devices.h"
void log_handler_default(const char *message, void *user_data)
diff --git a/samsung-ipc/ipc_private.h b/samsung-ipc/ipc.h
index cf51d4f..98d7935 100644
--- a/samsung-ipc/ipc_private.h
+++ b/samsung-ipc/ipc.h
@@ -1,4 +1,4 @@
-/**
+/*
* This file is part of libsamsung-ipc.
*
* Copyright (C) 2011 Simon Busch <morphis@gravedo.de>
@@ -18,11 +18,15 @@
*
*/
-#ifndef __IPC_PRIVATE_H__
-#define __IPC_PRIVATE_H__
-
#include <samsung-ipc.h>
+#ifndef __IPC_H__
+#define __IPC_H__
+
+/*
+ * Structures
+ */
+
struct ipc_ops {
int (*bootstrap)(struct ipc_client *client);
int (*send)(struct ipc_client *client, struct ipc_message_info *);
@@ -90,6 +94,10 @@ struct ipc_client {
struct ipc_nv_data_specs *nv_data_specs;
};
+/*
+ * Helpers
+ */
+
void ipc_client_log(struct ipc_client *client, const char *message, ...);
#endif
diff --git a/samsung-ipc/ipc_util.c b/samsung-ipc/ipc_util.c
index adfc99a..249f2e2 100644
--- a/samsung-ipc/ipc_util.c
+++ b/samsung-ipc/ipc_util.c
@@ -30,7 +30,8 @@
#include <mtd/mtd-abi.h>
#include <samsung-ipc.h>
-#include "ipc_private.h"
+
+#include "ipc.h"
#define IPC_STR(f) case f: return strdup(#f);
diff --git a/samsung-ipc/rfs.c b/samsung-ipc/rfs.c
index aa38cff..7075bd1 100644
--- a/samsung-ipc/rfs.c
+++ b/samsung-ipc/rfs.c
@@ -31,7 +31,7 @@
#include <samsung-ipc.h>
-#include "ipc_private.h"
+#include "ipc.h"
void md5hash2string(char *out, unsigned char *in)
{