45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
unsigned int size;
|
|
uint32_t userId;
|
|
} SceShellUIUtilLaunchByUriParam;
|
|
|
|
typedef struct OrbisTick {
|
|
uint64_t mytick;
|
|
} OrbisTick;
|
|
|
|
typedef struct OrbisDateTime {
|
|
unsigned short year;
|
|
unsigned short month;
|
|
unsigned short day;
|
|
unsigned short hour;
|
|
unsigned short minute;
|
|
unsigned short second;
|
|
unsigned int microsecond;
|
|
} OrbisDateTime;
|
|
|
|
extern int (*sceRtcGetTick)(const OrbisDateTime *inOrbisDateTime, OrbisTick *outTick);
|
|
extern int (*sceRtcSetTick)(OrbisDateTime *outOrbisDateTime, const OrbisTick *inputTick);
|
|
extern int (*sceRtcConvertLocalTimeToUtc)(const OrbisTick *local_time, OrbisTick *utc);
|
|
extern int (*sceRtcConvertUtcToLocalTime)(const OrbisTick *utc, OrbisTick *local_time);
|
|
extern int (*sceRtcGetCurrentClockLocalTime)(OrbisDateTime *time);
|
|
extern int (*sceRtcGetCurrentTick)(OrbisTick *outTick);
|
|
extern int (*sceRtcFormatRFC3339LocalTime)(char *pszDateTime, const OrbisTick *tick);
|
|
extern unsigned int (*sceRtcGetTickResolution)();
|
|
extern int (*sceShellUIUtilLaunchByUri)(const char *uri, SceShellUIUtilLaunchByUriParam *param);
|
|
extern int (*sceShellUIUtilInitialize)();
|
|
|
|
int load_sys_modules();
|
|
void convertUtcToLocalTime(const OrbisDateTime *utc, OrbisDateTime *local_time);
|
|
void convertLocalTimeToUtc(const OrbisDateTime *local_time, OrbisDateTime *utc);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|