From: Giacinto Cifelli <gciofono@gmail.com>
To: ofono@ofono.org
Subject: [PATCH 1/2] modem.h: ofono_modem_set_powered_timeout_hint
Date: Wed, 24 Oct 2018 07:28:09 +0200 [thread overview]
Message-ID: <20181024052810.28128-1-gciofono@gmail.com> (raw)
[-- 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
next reply other threads:[~2018-10-24 5:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 5:28 Giacinto Cifelli [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181024052810.28128-1-gciofono@gmail.com \
--to=gciofono@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox