* [PATCH 1/2] lte.h: added ofono_lte_get_modem global function
@ 2018-09-22 10:04 Giacinto Cifelli
2018-09-22 10:04 ` [PATCH 2/2] src/lte.c: added implementation for ofono_lte_get_modem Giacinto Cifelli
2018-09-22 11:49 ` [PATCH 1/2] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
0 siblings, 2 replies; 4+ messages in thread
From: Giacinto Cifelli @ 2018-09-22 10:04 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
this function can be used in the drivers to query the functions
ofono_modem_get_* to retrieve modem-specific properties
---
include/lte.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/lte.h b/include/lte.h
index ef84ab99..0f2501c0 100644
--- a/include/lte.h
+++ b/include/lte.h
@@ -61,6 +61,8 @@ void ofono_lte_set_data(struct ofono_lte *lte, void *data);
void *ofono_lte_get_data(const struct ofono_lte *lte);
+struct ofono_modem *ofono_lte_get_modem(const struct ofono_lte *lte);
+
#ifdef __cplusplus
}
#endif
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] src/lte.c: added implementation for ofono_lte_get_modem
2018-09-22 10:04 [PATCH 1/2] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
@ 2018-09-22 10:04 ` Giacinto Cifelli
2018-09-22 11:49 ` Giacinto Cifelli
2018-09-22 11:49 ` [PATCH 1/2] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
1 sibling, 1 reply; 4+ messages in thread
From: Giacinto Cifelli @ 2018-09-22 10:04 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 419 bytes --]
---
src/lte.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/lte.c b/src/lte.c
index e16d9aab..23fe8e1c 100644
--- a/src/lte.c
+++ b/src/lte.c
@@ -373,3 +373,8 @@ void *ofono_lte_get_data(const struct ofono_lte *lte)
{
return lte->driver_data;
}
+
+struct ofono_modem *ofono_lte_get_modem(const struct ofono_lte *lte)
+{
+ return __ofono_atom_get_modem(lte->atom);
+}
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/2] lte.h: added ofono_lte_get_modem global function
2018-09-22 10:04 [PATCH 1/2] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
2018-09-22 10:04 ` [PATCH 2/2] src/lte.c: added implementation for ofono_lte_get_modem Giacinto Cifelli
@ 2018-09-22 11:49 ` Giacinto Cifelli
1 sibling, 0 replies; 4+ messages in thread
From: Giacinto Cifelli @ 2018-09-22 11:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 770 bytes --]
apologies, too hasty a submit. please disregard this. I will resubmit.
On Sat, Sep 22, 2018 at 12:04 PM Giacinto Cifelli <gciofono@gmail.com>
wrote:
> this function can be used in the drivers to query the functions
> ofono_modem_get_* to retrieve modem-specific properties
> ---
> include/lte.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/lte.h b/include/lte.h
> index ef84ab99..0f2501c0 100644
> --- a/include/lte.h
> +++ b/include/lte.h
> @@ -61,6 +61,8 @@ void ofono_lte_set_data(struct ofono_lte *lte, void
> *data);
>
> void *ofono_lte_get_data(const struct ofono_lte *lte);
>
> +struct ofono_modem *ofono_lte_get_modem(const struct ofono_lte *lte);
> +
> #ifdef __cplusplus
> }
> #endif
> --
> 2.17.1
>
>
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1031 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-09-22 11:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-22 10:04 [PATCH 1/2] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
2018-09-22 10:04 ` [PATCH 2/2] src/lte.c: added implementation for ofono_lte_get_modem Giacinto Cifelli
2018-09-22 11:49 ` Giacinto Cifelli
2018-09-22 11:49 ` [PATCH 1/2] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox