From: Giacinto Cifelli <gciofono@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] location-reporting.h: driver properties handling
Date: Sun, 23 Sep 2018 08:19:20 +0200 [thread overview]
Message-ID: <20180923061922.23288-1-gciofono@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
The GNSS receiver configuration is highly proprietary.
Some are configured through the GNSS port itself, some through other
ports. The properties themselves vary among the manufacturers, with no
standard available. Besides, ofono doesn't handle any state for a GNSS
receiver.
Therefore, this extensions allows to get and set directly D-Bus
properties by the driver.
---
include/location-reporting.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/location-reporting.h b/include/location-reporting.h
index 0717f710..d3f013d2 100644
--- a/include/location-reporting.h
+++ b/include/location-reporting.h
@@ -52,6 +52,9 @@ struct ofono_location_reporting_driver {
ofono_location_reporting_enable_cb_t cb, void *data);
void (*disable)(struct ofono_location_reporting *lr,
ofono_location_reporting_disable_cb_t cb, void *data);
+ void (*get_properties)(struct ofono_location_reporting *lr,
+ void *_dict);
+ void* (*set_property)(struct ofono_location_reporting *lr, void *_msg);
};
int ofono_location_reporting_driver_register(
--
2.17.1
next reply other threads:[~2018-09-23 6:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-23 6:19 Giacinto Cifelli [this message]
2018-09-23 6:19 ` [PATCH] src/location-reporting: driver properties handling Giacinto Cifelli
2018-09-23 6:19 ` [PATCH] gemalto/location-reporting: add driver properties Giacinto Cifelli
2018-09-24 21:07 ` [PATCH] location-reporting.h: driver properties handling Denis Kenzior
2018-09-25 3:49 ` Giacinto Cifelli
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=20180923061922.23288-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