Move time services to new IPC.
Add some fixes/improvements to usage with the new IPC
This commit is contained in:
parent
bd8635e26a
commit
da410506a4
42 changed files with 1256 additions and 2091 deletions
4
externals/tz/tz/tz.cpp
vendored
4
externals/tz/tz/tz.cpp
vendored
|
@ -1625,11 +1625,11 @@ s32 ParseTimeZoneBinary(Rule& out_rule, std::span<const u8> binary) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool localtime_rz(CalendarTimeInternal* tmp, Rule* sp, time_t* timep) {
|
||||
bool localtime_rz(CalendarTimeInternal* tmp, Rule const* sp, time_t* timep) {
|
||||
return localsub(sp, timep, 0, tmp) == nullptr;
|
||||
}
|
||||
|
||||
u32 mktime_tzname(time_t* out_time, Rule* sp, CalendarTimeInternal* tmp) {
|
||||
u32 mktime_tzname(time_t* out_time, Rule const* sp, CalendarTimeInternal* tmp) {
|
||||
return time1(out_time, tmp, localsub, sp, 0);
|
||||
}
|
||||
|
||||
|
|
4
externals/tz/tz/tz.h
vendored
4
externals/tz/tz/tz.h
vendored
|
@ -75,7 +75,7 @@ static_assert(sizeof(CalendarTimeInternal) == 0x3C, "CalendarTimeInternal has th
|
|||
|
||||
s32 ParseTimeZoneBinary(Rule& out_rule, std::span<const u8> binary);
|
||||
|
||||
bool localtime_rz(CalendarTimeInternal* tmp, Rule* sp, time_t* timep);
|
||||
u32 mktime_tzname(time_t* out_time, Rule* sp, CalendarTimeInternal* tmp);
|
||||
bool localtime_rz(CalendarTimeInternal* tmp, Rule const* sp, time_t* timep);
|
||||
u32 mktime_tzname(time_t* out_time, Rule const* sp, CalendarTimeInternal* tmp);
|
||||
|
||||
} // namespace Tz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue