aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/modems/xmm626/xmm626_sec_modem.h
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-30 18:21:15 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-02-21 00:53:50 +0100
commitfce498bdef8f6179ef477ecdd3b9407e673af640 (patch)
treed107cb279eaa1925b75c9cfc743796d8662e3e83 /samsung-ipc/modems/xmm626/xmm626_sec_modem.h
parente03710c1f462f74ac6bea5f03047feae9a81a866 (diff)
downloadhardware_replicant_libsamsung-ipc-fce498bdef8f6179ef477ecdd3b9407e673af640.tar.gz
hardware_replicant_libsamsung-ipc-fce498bdef8f6179ef477ecdd3b9407e673af640.tar.bz2
hardware_replicant_libsamsung-ipc-fce498bdef8f6179ef477ecdd3b9407e673af640.zip
modem 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 'samsung-ipc/modems/xmm626/xmm626_sec_modem.h')
-rw-r--r--samsung-ipc/modems/xmm626/xmm626_sec_modem.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/samsung-ipc/modems/xmm626/xmm626_sec_modem.h b/samsung-ipc/modems/xmm626/xmm626_sec_modem.h
index 9599a84..943c101 100644
--- a/samsung-ipc/modems/xmm626/xmm626_sec_modem.h
+++ b/samsung-ipc/modems/xmm626/xmm626_sec_modem.h
@@ -31,14 +31,20 @@
#define XMM626_SEC_MODEM_GPRS_IFACE_PREFIX "rmnet"
#define XMM626_SEC_MODEM_GPRS_IFACE_COUNT 3
-int xmm626_sec_modem_power(int device_fd, int power);
-int xmm626_sec_modem_boot_power(int device_fd, int power);
-int xmm626_sec_modem_status_online_wait(int device_fd);
-int xmm626_sec_modem_hci_power(int power);
-int xmm626_sec_modem_link_control_enable(int device_fd, int enable);
-int xmm626_sec_modem_link_control_active(int device_fd, int active);
-int xmm626_sec_modem_link_connected_wait(int device_fd);
-int xmm626_sec_modem_link_get_hostwake_wait(int device_fd);
+int xmm626_sec_modem_power(struct ipc_client *client, int device_fd, int power);
+int xmm626_sec_modem_boot_power(struct ipc_client *client, int device_fd,
+ int power);
+int xmm626_sec_modem_status_online_wait(struct ipc_client *client,
+ int device_fd);
+int xmm626_sec_modem_hci_power(struct ipc_client *client, int power);
+int xmm626_sec_modem_link_control_enable(struct ipc_client *client,
+ int device_fd, int enable);
+int xmm626_sec_modem_link_control_active(struct ipc_client *client,
+ int device_fd, int active);
+int xmm626_sec_modem_link_connected_wait(struct ipc_client *client,
+ int device_fd);
+int xmm626_sec_modem_link_get_hostwake_wait(struct ipc_client *client,
+ int device_fd);
int xmm626_sec_modem_fmt_send(struct ipc_client *client,
struct ipc_message *message);