From 0cd14d307e91ce7d792f40c62d77c58f44272a8b Mon Sep 17 00:00:00 2001 From: Simon Busch Date: Mon, 10 Oct 2011 18:39:54 +0200 Subject: Implement ipc_client_recv method so we can now retrieve data from the modem Signed-off-by: Simon Busch --- samsung-ipc/ipc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'samsung-ipc/ipc.c') 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); } -- cgit v1.1