diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-08-06 14:30:39 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-08-07 13:06:22 +0200 |
commit | 5333aed1cd832b7fc5cff59b191da67473f8ab6d (patch) | |
tree | 62ef4c7f2b3128e17336bbb3f46ff6bb2df92275 /samsung-ipc/ipc.c | |
parent | ffda67f121bc99de57031344d75ee1445bc9dd6f (diff) | |
download | hardware_replicant_libsamsung-ipc-5333aed1cd832b7fc5cff59b191da67473f8ab6d.tar.gz hardware_replicant_libsamsung-ipc-5333aed1cd832b7fc5cff59b191da67473f8ab6d.tar.bz2 hardware_replicant_libsamsung-ipc-5333aed1cd832b7fc5cff59b191da67473f8ab6d.zip |
External fds polling support
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/ipc.c')
-rw-r--r-- | samsung-ipc/ipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c index 5db8f4d..b3ee679 100644 --- a/samsung-ipc/ipc.c +++ b/samsung-ipc/ipc.c @@ -225,7 +225,7 @@ int ipc_client_transport_handlers_register(struct ipc_client *client, int (*close)(void *transport_data), int (*read)(void *transport_data, void *data, size_t size), int (*write)(void *transport_data, const void *data, size_t size), - int (*poll)(void *transport_data, struct timeval *timeout), + int (*poll)(void *transport_data, struct ipc_poll_fds *fds, struct timeval *timeout), void *transport_data) { if (client == NULL || client->handlers == NULL) @@ -358,12 +358,12 @@ int ipc_client_close(struct ipc_client *client) return client->handlers->close(client->handlers->transport_data); } -int ipc_client_poll(struct ipc_client *client, struct timeval *timeout) +int ipc_client_poll(struct ipc_client *client, struct ipc_poll_fds *fds, struct timeval *timeout) { if (client == NULL || client->handlers == NULL || client->handlers->poll == NULL) return -1; - return client->handlers->poll(client->handlers->transport_data, timeout); + return client->handlers->poll(client->handlers->transport_data, fds, timeout); } int ipc_client_power_on(struct ipc_client *client) |