* [PATCH 1/2] include: Add ofono_modem_get_gprs
@ 2018-04-26 14:00 Slava Monich
2018-04-26 14:00 ` [PATCH 2/2] modem: Implement ofono_modem_get_gprs Slava Monich
2018-04-27 16:13 ` [PATCH 1/2] include: Add ofono_modem_get_gprs Denis Kenzior
0 siblings, 2 replies; 3+ messages in thread
From: Slava Monich @ 2018-04-26 14:00 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
---
include/modem.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/modem.h b/include/modem.h
index c93b3d2..005a42e 100644
--- a/include/modem.h
+++ b/include/modem.h
@@ -29,6 +29,7 @@ extern "C" {
#include <ofono/types.h>
struct ofono_modem;
+struct ofono_gprs;
struct ofono_sim;
enum ofono_modem_type {
@@ -82,6 +83,7 @@ void ofono_modem_remove_interface(struct ofono_modem *modem,
const char *ofono_modem_get_path(struct ofono_modem *modem);
struct ofono_sim *ofono_modem_get_sim(struct ofono_modem *modem);
+struct ofono_gprs *ofono_modem_get_gprs(struct ofono_modem *modem);
void ofono_modem_set_data(struct ofono_modem *modem, void *data);
void *ofono_modem_get_data(struct ofono_modem *modem);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] modem: Implement ofono_modem_get_gprs
2018-04-26 14:00 [PATCH 1/2] include: Add ofono_modem_get_gprs Slava Monich
@ 2018-04-26 14:00 ` Slava Monich
2018-04-27 16:13 ` [PATCH 1/2] include: Add ofono_modem_get_gprs Denis Kenzior
1 sibling, 0 replies; 3+ messages in thread
From: Slava Monich @ 2018-04-26 14:00 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 628 bytes --]
---
src/modem.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/modem.c b/src/modem.c
index 0cee861..9409347 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -189,6 +189,11 @@ struct ofono_sim *ofono_modem_get_sim(struct ofono_modem *modem)
return __ofono_atom_find(OFONO_ATOM_TYPE_SIM, modem);
}
+struct ofono_gprs *ofono_modem_get_gprs(struct ofono_modem *modem)
+{
+ return __ofono_atom_find(OFONO_ATOM_TYPE_GPRS, modem);
+}
+
struct ofono_atom *__ofono_modem_add_atom(struct ofono_modem *modem,
enum ofono_atom_type type,
void (*destruct)(struct ofono_atom *),
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] include: Add ofono_modem_get_gprs
2018-04-26 14:00 [PATCH 1/2] include: Add ofono_modem_get_gprs Slava Monich
2018-04-26 14:00 ` [PATCH 2/2] modem: Implement ofono_modem_get_gprs Slava Monich
@ 2018-04-27 16:13 ` Denis Kenzior
1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2018-04-27 16:13 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
Hi Slava,
On 04/26/2018 09:00 AM, Slava Monich wrote:
> ---
> include/modem.h | 2 ++
> 1 file changed, 2 insertions(+)
Both applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-27 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26 14:00 [PATCH 1/2] include: Add ofono_modem_get_gprs Slava Monich
2018-04-26 14:00 ` [PATCH 2/2] modem: Implement ofono_modem_get_gprs Slava Monich
2018-04-27 16:13 ` [PATCH 1/2] include: Add ofono_modem_get_gprs Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.