From 13467d5dcb197e247b13527b8b77dfb5823767dc Mon Sep 17 00:00:00 2001 From: Giacinto Cifelli Date: Wed, 24 Oct 2018 07:28:09 +0200 Subject: [PATCH] include: add ofono_modem_set_powered_timeout_hint function to set the powered timeout for those cases where a device might require longer time to boot (uncommon). The function is effective if called before Powered=true, so it is best called by modem detection logic and prior to calling ofono_modem_register. --- include/modem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/modem.h b/include/modem.h index bed46c2b..9b12cfad 100644 --- a/include/modem.h +++ b/include/modem.h @@ -127,6 +127,9 @@ void ofono_modem_driver_unregister(const struct ofono_modem_driver *); struct ofono_modem *ofono_modem_find(ofono_modem_compare_cb_t func, void *user_data); +void ofono_modem_set_powered_timeout_hint(struct ofono_modem *modem, + unsigned int seconds); + #ifdef __cplusplus } #endif