lte.h: added ofono_lte_get_modem global function
PATCH 1/2 lte.h: added ofono_lte_get_modem global function
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(+)
include/lte.h +2 -0
@@ -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
Signature · 1 line
2.17.1
PATCH 2/2 src/lte.c: added implementation for ofono_lte_get_modem
--- src/lte.c | 5 +++++ 1 file changed, 5 insertions(+)
src/lte.c +5 -0
@@ -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); +}
Signature · 1 line
2.17.1
Re: [PATCH 2/2] src/lte.c: added implementation for ofono_lte_get_modem
apologies, too hasty a submit. please disregard this. I will resubmit.
Quoted 21 lines · Giacinto Cifelli
--- src/lte.c | 5 +++++ 1 file changed, 5 insertions(+)src/lte.c +5
-1@@ -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
apologies, too hasty a submit. please disregard this. I will resubmit.
Quoted 24 lines · Giacinto Cifelli
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(+)include/lte.h +2
-0@@ -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