function to set the powered timeout dynamically.
The function is effective if called before Powered=true,
so it is best called in udevng.
If not called, the timeout is set by default to 20 seconds.
---
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
--
2.17.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono