aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc.c
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-10 18:39:54 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-10 18:39:54 +0200
commit0cd14d307e91ce7d792f40c62d77c58f44272a8b (patch)
treecf72a2209777573400cfc19b247910d9bd0fecf5 /samsung-ipc/ipc.c
parent53ea21888ebdf0c860178544e52d4b1250efe27c (diff)
downloadexternal_libsamsung-ipc-0cd14d307e91ce7d792f40c62d77c58f44272a8b.zip
external_libsamsung-ipc-0cd14d307e91ce7d792f40c62d77c58f44272a8b.tar.gz
external_libsamsung-ipc-0cd14d307e91ce7d792f40c62d77c58f44272a8b.tar.bz2
Implement ipc_client_recv method so we can now retrieve data from the modem
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc/ipc.c')
-rw-r--r--samsung-ipc/ipc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index 7f8d7ab..d73cac8 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -147,6 +147,11 @@ void ipc_client_send(struct ipc_client *client, const int command, const int typ
int ipc_client_recv(struct ipc_client *client, struct ipc_response *response)
{
- return -1;
+ if (client == NULL ||
+ client->ops == NULL ||
+ client->ops->recv == NULL)
+ return -1;
+
+ return client->ops->recv(client, response);
}