diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-20 18:27:28 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-21 00:53:50 +0100 |
commit | e03710c1f462f74ac6bea5f03047feae9a81a866 (patch) | |
tree | 77d0e06d600ffaa269922edd289e45c528987e62 /include | |
parent | 9b755d1be592d17be3e84f73fc444441d6cd4082 (diff) | |
download | hardware_replicant_libsamsung-ipc-e03710c1f462f74ac6bea5f03047feae9a81a866.tar.gz hardware_replicant_libsamsung-ipc-e03710c1f462f74ac6bea5f03047feae9a81a866.tar.bz2 hardware_replicant_libsamsung-ipc-e03710c1f462f74ac6bea5f03047feae9a81a866.zip |
device boot handlers: pass it the ipc_client struct
This enables to use logging inside the handlers:
ipc_client_log needs access to the ipc_client struct to
work.
At this point the ipc_client struct is already available,
so it is safe to do that.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/samsung-ipc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h index 1202da3..f78cc74 100644 --- a/include/samsung-ipc.h +++ b/include/samsung-ipc.h @@ -77,7 +77,8 @@ int ipc_client_transport_handlers_register(struct ipc_client *client, int (*poll)(void *transport_data, struct ipc_poll_fds *fds, struct timeval *timeout), void *transport_data); int ipc_client_power_handlers_register(struct ipc_client *client, - int (*power_on)(void *power_data), int (*power_off)(void *power_data), + int (*power_on)(struct ipc_client *client, void *power_data), + int (*power_off)(struct ipc_client *client, void *power_data), void *power_data); int ipc_client_gprs_handlers_register(struct ipc_client *client, int (*gprs_activate)(void *gprs_data, unsigned int cid), |