summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGiacinto Cifelli <gciofono@gmail.com>2018-10-24 07:28:09 +0200
committerDenis Kenzior <denkenz@gmail.com>2018-10-24 14:26:59 -0500
commit13467d5dcb197e247b13527b8b77dfb5823767dc (patch)
treeac3269de6078bf5cd7bc26071edab3b839c62f5a /include
parent92bf7fb867020f4893c36939c93de4d0085ea859 (diff)
downloadofono-13467d5dcb197e247b13527b8b77dfb5823767dc.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/modem.h3
1 files changed, 3 insertions, 0 deletions
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