vitasdk
Documentation of the vitasdk
incoming_dialog.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_INCOMING_DIALOG_H_
8 #define _PSP2_INCOMING_DIALOG_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/kernel/clib.h>
12 #include <psp2/types.h>
13 #include <psp2common/defs.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
31 
38 
39 typedef struct SceIncomingDialogParam {
41  SceChar8 audioPath[0x80]; //Path to audio file that will be played during dialog, .mp3, .at9, m4a. Can be NULL
42  SceChar8 titleid[0x10]; //TitleId of the application to open when "accept" button has been pressed. Can be NULL
43  SceInt32 unk_BC; //Can be set to 0
44  SceUInt32 dialogTimer; //Time to show dialog in seconds
46  SceWChar16 buttonRightText[0x1F]; //Text for "accept" button
47  SceInt16 separator0; //must be 0
48  SceWChar16 buttonLeftText[0x1F]; //Text for "reject" button. If NULL, only "accept" button will be created
49  SceInt16 separator1; //must be 0
50  SceWChar16 dialogText[0x80]; //Text for dialog window, also shared with notification
51  SceInt16 separator2; //must be 0
54 
59 
64 
69 
74 
79 
84 
85 static inline
86 void sceIncomingDialogParamInit(SceIncomingDialogParam* dialogParam)
87 {
88  sceClibMemset(dialogParam, 0x0, sizeof(SceIncomingDialogParam));
89  dialogParam->sdkVersion = PSP2_SDK_VERSION;
90 }
91 
92 #ifdef __cplusplus
93 }
94 #endif /* __cplusplus */
95 
96 #endif /* _PSP2_INCOMING_DIALOG_H_ */
void * sceClibMemset(void *dst, int ch, SceSize len)
#define PSP2_SDK_VERSION
Definition: defs.h:11
SceInt32 sceIncomingDialogOpen(SceIncomingDialogParam *dialogParam)
Open incoming dialog.
SceInt16 separator2
Definition: incoming_dialog.h:51
SceUInt32 dialogTimer
Definition: incoming_dialog.h:44
SceInt32 sceIncomingDialogInitialize(int init_type)
Initialize incoming dialog library, init_type must be 1.
SceIncomingDialogStatus
Dialog status.
Definition: incoming_dialog.h:22
SceChar8 audioPath[0x80]
Definition: incoming_dialog.h:41
SceInt16 separator0
Definition: incoming_dialog.h:47
SceInt32 sdkVersion
Definition: incoming_dialog.h:40
SceIncomingDialogErrorCode
Error Codes.
Definition: incoming_dialog.h:35
SceWChar16 buttonRightText[0x1F]
Definition: incoming_dialog.h:46
SceInt32 sceIncomingDialogFinish(void)
Finish incoming dialog library.
SceInt16 separator1
Definition: incoming_dialog.h:49
SceInt32 sceIncomingDialogGetStatus(void)
Returns current status of incoming dialog.
SceWChar16 buttonLeftText[0x1F]
Definition: incoming_dialog.h:48
SceInt32 sceIncomingDialogClose(void)
Close incoming dialog.
SceInt32 unk_BC
Definition: incoming_dialog.h:43
SceChar8 reserved1[0x3E]
Definition: incoming_dialog.h:45
VITASDK_BUILD_ASSERT_EQ(0x25C, SceIncomingDialogParam)
SceInt32 sceIncomingDialogSwitchToDialog(void)
Force exit to LiveArea and show dialog window.
SceWChar16 dialogText[0x80]
Definition: incoming_dialog.h:50
SceChar8 titleid[0x10]
Definition: incoming_dialog.h:42
@ SCE_INCOMING_DIALOG_CLOSED
Definition: incoming_dialog.h:27
@ SCE_INCOMING_DIALOG_TIMEOUT
Definition: incoming_dialog.h:29
@ SCE_INCOMING_DIALOG_NOT_RUNNING
Definition: incoming_dialog.h:23
@ SCE_INCOMING_DIALOG_ACCEPTED
Definition: incoming_dialog.h:24
@ SCE_INCOMING_DIALOG_REJECTED
Definition: incoming_dialog.h:26
@ SCE_INCOMING_DIALOG_BUSY
Definition: incoming_dialog.h:28
@ SCE_INCOMING_DIALOG_RUNNING
Definition: incoming_dialog.h:25
@ SCE_INCOMINGDIALOG_ERROR_INVALID_ARG
Definition: incoming_dialog.h:36
Definition: incoming_dialog.h:39
int16_t SceInt16
Definition: types.h:41
int8_t SceChar8
Definition: types.h:32
int32_t SceInt32
Definition: types.h:44
uint32_t SceUInt32
Definition: types.h:45
uint16_t SceWChar16
Definition: types.h:77