added timezone_offset and dst_observed fields to real_time_data
added prototypes for set_tzspecs, used for setting these fields git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10132 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d2ab012d92
commit
35bec416bb
|
@ -17,7 +17,10 @@ status_t rtc_init(kernel_args *args);
|
|||
bigtime_t rtc_boot_time(void);
|
||||
// Returns the time at which the system was booted in microseconds since Jan 1, 1970.
|
||||
|
||||
status_t set_tzspecs(int32 timezone_offset, bool dst_observed);
|
||||
|
||||
status_t _user_set_real_time_clock(uint32 time);
|
||||
status_t _user_set_tzspecs(int32 timezone_offset, bool dst_observed);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
struct real_time_data {
|
||||
uint64 boot_time;
|
||||
uint32 system_time_conversion_factor;
|
||||
bigtime_t timezone_offset;
|
||||
bool dst_observed;
|
||||
};
|
||||
|
||||
#endif /* _KERNEL_REAL_TIME_DATA_H */
|
||||
|
|
|
@ -184,6 +184,7 @@ extern status_t _kern_stop_watching(dev_t device, ino_t node, uint32 flags,
|
|||
|
||||
// time functions
|
||||
extern status_t _kern_set_real_time_clock(uint32 time);
|
||||
extern status_t _kern_set_tzspecs(int32 timezone_offset, bool dst_observed);
|
||||
|
||||
// area functions
|
||||
area_id _kern_create_area(const char *name, void **address, uint32 addressSpec,
|
||||
|
|
Loading…
Reference in New Issue