From b469707433b2e306fe80b7da844fa87d284fa571 Mon Sep 17 00:00:00 2001 From: PaulK Date: Sat, 14 Jan 2012 16:56:48 +0100 Subject: Modified handlers with common handlers data and device-specific functions --- tools/modemctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/modemctrl.c') diff --git a/tools/modemctrl.c b/tools/modemctrl.c index dc7eaaa..75cfc83 100644 --- a/tools/modemctrl.c +++ b/tools/modemctrl.c @@ -440,7 +440,7 @@ int modem_start(struct ipc_client *client) int rc = -1; // ipc_client_set_handlers(client, &ipc_default_handlers); - ipc_client_set_all_handlers_data(client, &client_fd); + ipc_client_create_handlers_common_data(client); ipc_client_bootstrap_modem(client); @@ -450,6 +450,8 @@ int modem_start(struct ipc_client *client) if(rc < 0) return -1; + client_fd = ipc_client_get_handlers_common_data_fd(client); + rc = ipc_client_power_on(client); if(rc < 0) return -1; -- cgit v1.1