diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2010-05-18 17:07:54 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-05-19 10:46:18 +0300 |
commit | b8ec7553efd0108cf453e763af5ba19f537366b2 (patch) | |
tree | c6f65f439ee3d1cc877cec85da958ab9c53d0046 /include/types.h | |
parent | 1d7fe6aa5a4958ff2723f02031774c08f3d3fee6 (diff) | |
download | ofono-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 'include/types.h')
-rw-r--r-- | include/types.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |