Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 1/2] modem.h: ofono_modem_set_powered_timeout_hint
@ 2018-10-24  5:28 Giacinto Cifelli
  2018-10-24  5:28 ` [PATCH 2/2] src/modem - timeout_hint Giacinto Cifelli
  2018-10-24 19:32 ` [PATCH 1/2] modem.h: ofono_modem_set_powered_timeout_hint Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Giacinto Cifelli @ 2018-10-24  5:28 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-24 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-24  5:28 [PATCH 1/2] modem.h: ofono_modem_set_powered_timeout_hint Giacinto Cifelli
2018-10-24  5:28 ` [PATCH 2/2] src/modem - timeout_hint Giacinto Cifelli
2018-10-24 19:32 ` [PATCH 1/2] modem.h: ofono_modem_set_powered_timeout_hint Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox