vitasdk
Documentation of the vitasdk
triggerutil.h
Go to the documentation of this file.
1
7#ifndef _PSP2_TRIGGERUTIL_H_
8#define _PSP2_TRIGGERUTIL_H_
9
10#include <vitasdk/build_utils.h>
11#include <psp2/kernel/clib.h>
12#include <psp2/rtc.h>
13#include <psp2/types.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
28#define SCE_TRIGGER_UTIL_VERSION 0x3200000
29
42
54
64
73
74typedef struct SceTriggerUtilUserAppInfo { // size is 0x46A
77 short unk;
80
81typedef struct SceTriggerUtilSystemAppInfo { // size is 0x602
84 char reserved[2];
87
99int sceTriggerUtilRegisterDailyEvent(const char* titleid, const SceTriggerUtilEventParamDaily* param, int eventId, int a4, int a5);
100
112int sceTriggerUtilRegisterOneTimeEvent(const char* titleid, const SceTriggerUtilEventParamOneTime* param, int eventId, int a4, int a5);
113
123int sceTriggerUtilUnregisterDailyEvent(int eventId, int a2, int a3);
124
134int sceTriggerUtilUnregisterOneTimeEvent(int eventId, int a2, int a3);
135
145int sceTriggerUtilGetAutoStartStatus(int* status, int a2, int a3);
146
157int sceTriggerUtilGetOneTimeEventInfo(int eventId, SceRtcTick* triggerTime, int a4, int a5);
158
169int sceTriggerUtilGetDailyEventInfo(int eventId, SceTriggerUtilEventParamDaily* param, int a5, int a6);
170
181int sceTriggerUtilGetUserAppInfo(const char* titleid, SceTriggerUtilUserAppInfo* appInfo, int a4, int a5);
182
191int sceTriggerUtilGetRegisteredUserTitleIdList(char* titleIdBuffer, int numOfIds);
192
203int sceTriggerUtilGetSystemAppInfo(const char* titleid, SceTriggerUtilSystemAppInfo* appInfo, int a4, int a5);
204
214
215#ifdef __cplusplus
216}
217#endif /* __cplusplus */
218
219#endif /* _PSP2_TRIGGERUTIL_H_ */
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
void * buffer
Definition bt.h:6
char titleid[0xC]
Title id of the process where the event occurred.
Definition debug.h:4
Definition rtc.h:48
SceWChar16 name[0x34]
Definition triggerutil.h:75
SceChar8 reserved[0x40]
Definition triggerutil.h:61
SceTriggerUtilErrorCode
Error Codes.
Definition triggerutil.h:46
int sceTriggerUtilGetRegisteredSystemTitleIdList(char *buffer, int numOfIds)
Get list of system applications that has registered sceTriggerUtil events.
SceInt32 triggerTime
Definition triggerutil.h:59
int sceTriggerUtilGetSystemAppInfo(const char *titleid, SceTriggerUtilSystemAppInfo *appInfo, int a4, int a5)
Get info for system application that has registered sceTriggerUtil events.
int sceTriggerUtilUnregisterOneTimeEvent(int eventId, int a2, int a3)
Unregister one time event for caller application.
int sceTriggerUtilUnregisterDailyEvent(int eventId, int a2, int a3)
Unregister daily event for caller application.
SceUInt32 ver
Definition triggerutil.h:66
short unk
Definition triggerutil.h:77
SceChar8 iconPath[0x400]
Definition triggerutil.h:83
SceUInt16 repeatDays
Definition triggerutil.h:60
char reserved[2]
Definition triggerutil.h:84
int sceTriggerUtilGetRegisteredUserTitleIdList(char *titleIdBuffer, int numOfIds)
Get list of user applications that has registered sceTriggerUtil events.
int sceTriggerUtilGetAutoStartStatus(int *status, int a2, int a3)
Get value from "Settings->System->Auto-Start Settings" for caller application.
SceChar8 iconPath[0x400]
Definition triggerutil.h:76
int sceTriggerUtilRegisterDailyEvent(const char *titleid, const SceTriggerUtilEventParamDaily *param, int eventId, int a4, int a5)
Register application start event that will be repeated on certain days.
SceUInt8 extraParam1
Definition triggerutil.h:68
SceWChar16 name[0x100]
Definition triggerutil.h:82
int sceTriggerUtilGetUserAppInfo(const char *titleid, SceTriggerUtilUserAppInfo *appInfo, int a4, int a5)
Get info for user application that has registered sceTriggerUtil events.
SceUInt32 ver
Definition triggerutil.h:56
int sceTriggerUtilGetDailyEventInfo(int eventId, SceTriggerUtilEventParamDaily *param, int a5, int a6)
Get daily event info for caller application.
SceInt16 extraParam1
Definition triggerutil.h:57
SceInt16 extraParam2
Definition triggerutil.h:58
SceRtcTick triggerTime
Definition triggerutil.h:67
int sceTriggerUtilRegisterOneTimeEvent(const char *titleid, const SceTriggerUtilEventParamOneTime *param, int eventId, int a4, int a5)
Register one time application start event.
SceTriggerUtilDays
Days of the week for use in repeatDays member of SceTriggerUtilEventParamDaily.
Definition triggerutil.h:33
SceUInt8 extraParam2
Definition triggerutil.h:69
SceChar8 reserved[0x44]
Definition triggerutil.h:70
int sceTriggerUtilGetOneTimeEventInfo(int eventId, SceRtcTick *triggerTime, int a4, int a5)
Get one time event info for caller application.
@ SCE_TRIGGER_UTIL_ERROR_NOT_REGISTERED
Definition triggerutil.h:50
@ SCE_TRIGGER_UTIL_ERROR_EVENT_TYPE_MISMATCH
Definition triggerutil.h:51
@ SCE_TRIGGER_UTIL_ERROR_NOT_FOUND_SYSTEM
Definition triggerutil.h:49
@ SCE_TRIGGER_UTIL_ERROR_INVALID_ARG
Definition triggerutil.h:52
@ SCE_TRIGGER_UTIL_ERROR_NOT_FOUND_USER
Definition triggerutil.h:48
@ SCE_TRIGGER_UTIL_ERROR_BUSY
Definition triggerutil.h:47
@ SCE_TRIGGER_UTIL_THURSDAY
Definition triggerutil.h:38
@ SCE_TRIGGER_UTIL_WEDNESDAY
Definition triggerutil.h:37
@ SCE_TRIGGER_UTIL_SATURDAY
Definition triggerutil.h:40
@ SCE_TRIGGER_UTIL_TUESDAY
Definition triggerutil.h:36
@ SCE_TRIGGER_UTIL_SUNDAY
Definition triggerutil.h:34
@ SCE_TRIGGER_UTIL_FRIDAY
Definition triggerutil.h:39
@ SCE_TRIGGER_UTIL_MONDAY
Definition triggerutil.h:35
Definition triggerutil.h:55
Definition triggerutil.h:65
Definition triggerutil.h:81
Definition triggerutil.h:74
int16_t SceInt16
Definition types.h:41
int8_t SceChar8
Definition types.h:32
int32_t SceInt32
Definition types.h:44
uint16_t SceUInt16
Definition types.h:42
uint32_t SceUInt32
Definition types.h:45
uint16_t SceWChar16
Definition types.h:77
uint8_t SceUInt8
Definition types.h:36