Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH] lte.h: added ofono_lte_get_modem global function
@ 2018-09-23  4:41 Giacinto Cifelli
  2018-09-23  4:41 ` [PATCH] src/lte.c: added implementation for ofono_lte_get_modem Giacinto Cifelli
  2018-09-24 20:57 ` [PATCH] lte.h: added ofono_lte_get_modem global function Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Giacinto Cifelli @ 2018-09-23  4:41 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] 3+ messages in thread

* [PATCH] src/lte.c: added implementation for ofono_lte_get_modem
  2018-09-23  4:41 [PATCH] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
@ 2018-09-23  4:41 ` Giacinto Cifelli
  2018-09-24 20:57 ` [PATCH] lte.h: added ofono_lte_get_modem global function Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Giacinto Cifelli @ 2018-09-23  4:41 UTC (permalink / raw)
  To: ofono

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

---
 src/lte.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lte.c b/src/lte.c
index e16d9aab..4b14f6e8 100644
--- a/src/lte.c
+++ b/src/lte.c
@@ -373,3 +373,9 @@ 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] 3+ messages in thread

* Re: [PATCH] lte.h: added ofono_lte_get_modem global function
  2018-09-23  4:41 [PATCH] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
  2018-09-23  4:41 ` [PATCH] src/lte.c: added implementation for ofono_lte_get_modem Giacinto Cifelli
@ 2018-09-24 20:57 ` Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2018-09-24 20:57 UTC (permalink / raw)
  To: ofono

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

Hi Giacinto,

On 09/22/2018 11:41 PM, Giacinto Cifelli 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(+)
> 

Both applied after tweaking the commit description.

Regards,
-Denis


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

end of thread, other threads:[~2018-09-24 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-23  4:41 [PATCH] lte.h: added ofono_lte_get_modem global function Giacinto Cifelli
2018-09-23  4:41 ` [PATCH] src/lte.c: added implementation for ofono_lte_get_modem Giacinto Cifelli
2018-09-24 20:57 ` [PATCH] lte.h: added ofono_lte_get_modem global function Denis Kenzior

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