From b8ec7553efd0108cf453e763af5ba19f537366b2 Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Tue, 18 May 2010 17:07:54 +0300 Subject: 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. --- include/types.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/types.h') diff --git a/include/types.h b/include/types.h index 7b08b8c7..2b154f00 100644 --- a/include/types.h +++ b/include/types.h @@ -92,6 +92,17 @@ struct ofono_call { int clip_validity; }; +struct ofono_network_time { + int sec; /* Seconds [0..59], -1 if unavailable */ + int min; /* Minutes [0..59], -1 if unavailable */ + int hour; /* Hours [0..23], -1 if unavailable */ + int mday; /* Day of month [1..31], -1 if unavailable */ + int mon; /* Month [1..12], -1 if unavailable */ + int year; /* Current year, -1 if unavailable */ + int dst; /* Current adjustment, in seconds */ + int utcoff; /* Offset from UTC in seconds */ +}; + #ifdef __cplusplus } #endif -- cgit v1.2.3