summaryrefslogtreecommitdiffstats
path: root/src/network.c
diff options
context:
space:
mode:
authorAki Niemi <aki.niemi@nokia.com>2010-05-18 17:07:54 +0300
committerAki Niemi <aki.niemi@nokia.com>2010-05-19 10:46:18 +0300
commitb8ec7553efd0108cf453e763af5ba19f537366b2 (patch)
treec6f65f439ee3d1cc877cec85da958ab9c53d0046 /src/network.c
parent1d7fe6aa5a4958ff2723f02031774c08f3d3fee6 (diff)
downloadofono-b8ec7553efd0108cf453e763af5ba19f537366b2.tar.bz2
Add network time support
Adding a new notify function in the netreg atom for notifying a received Network Identification and Timezone (NITZ) indication. This data is consumed via a nettime plugin, of which there is also an example.
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c
index b2e5821c..87a73e3c 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1065,6 +1065,17 @@ void ofono_netreg_status_notify(struct ofono_netreg *netreg, int status,
notify_status_watches(netreg);
}
+void ofono_netreg_time_notify(struct ofono_netreg *netreg,
+ struct ofono_network_time *info)
+{
+ struct ofono_modem *modem = __ofono_atom_get_modem(netreg->atom);
+
+ if (!info)
+ return;
+
+ __ofono_nettime_info_received(modem, info);
+}
+
static GSList *compress_operator_list(const struct ofono_network_operator *list,
int total)
{