-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7c29b6
commit 8ec0ad9
Showing
1 changed file
with
45 additions
and
45 deletions.
There are no files selected for viewing
90 changes: 45 additions & 45 deletions
90
extras/modules/xmbctrl/include/vshctrl.h → common/include/vshctrl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
#ifndef __VSHCTRL_H__ | ||
#define __VSHCTRL_H__ | ||
|
||
/** | ||
* This api is for vsh menu. (flash0:/vsh/module/satelite.prx) | ||
* | ||
* The vsh menu is an user mode module, and because of this, these functions are | ||
* only available to user mode. | ||
*/ | ||
|
||
/** | ||
* Registers the vsh menu. | ||
* When HOME is pressed, vshctrl will load the satelite module. | ||
* In module_start, call this function to register the vsh menu. | ||
* | ||
* @param ctrl - The function that will be executed each time | ||
* the system calls ReadBufferPositive. Despite satelite.prx being | ||
* an user module, this function will be executed in kernel mode. | ||
* | ||
* @returns 0 on success, < 0 on error. | ||
*/ | ||
int vctrlVSHRegisterVshMenu(int (* ctrl)(SceCtrlData *, int)); | ||
|
||
/** | ||
* Exits the vsh menu. | ||
* vshmenu module must call this module after destroying vsh menu display and | ||
* freeing resources. | ||
* | ||
* vshmenu module doesn't need to stop-unload itself, as that is vshctrl job. | ||
* | ||
* @param conf - Indicates the new config. vshctrl will update the internal | ||
* vshctrl and systemctrl variables with the new configuration given by this param. | ||
* However is job of satelite.prx to save those settings to the configuration file. | ||
* using sctrlSESetConfig. | ||
* | ||
* @param videoiso - Indicates the videoiso to mount, or NULL if none. | ||
* @param disctype - The disctype of the videoiso (0x20=video, 0x40=audio) | ||
* | ||
* @returns 0 on success, < 0 on error. | ||
*/ | ||
int vctrlVSHExitVSHMenu(SEConfig *conf, char *videoiso, int disctype); | ||
|
||
|
||
#endif | ||
#ifndef __VSHCTRL_H__ | ||
#define __VSHCTRL_H__ | ||
|
||
/** | ||
* This api is for vsh menu. (flash0:/vsh/module/satelite.prx) | ||
* | ||
* The vsh menu is an user mode module, and because of this, these functions are | ||
* only available to user mode. | ||
*/ | ||
|
||
/** | ||
* Registers the vsh menu. | ||
* When HOME is pressed, vshctrl will load the satelite module. | ||
* In module_start, call this function to register the vsh menu. | ||
* | ||
* @param ctrl - The function that will be executed each time | ||
* the system calls ReadBufferPositive. Despite satelite.prx being | ||
* an user module, this function will be executed in kernel mode. | ||
* | ||
* @returns 0 on success, < 0 on error. | ||
*/ | ||
int vctrlVSHRegisterVshMenu(int (* ctrl)(SceCtrlData *, int)); | ||
|
||
/** | ||
* Exits the vsh menu. | ||
* vshmenu module must call this module after destroying vsh menu display and | ||
* freeing resources. | ||
* | ||
* vshmenu module doesn't need to stop-unload itself, as that is vshctrl job. | ||
* | ||
* @param conf - Indicates the new config. vshctrl will update the internal | ||
* vshctrl and systemctrl variables with the new configuration given by this param. | ||
* However is job of satelite.prx to save those settings to the configuration file. | ||
* using sctrlSESetConfig. | ||
* | ||
* @param videoiso - Indicates the videoiso to mount, or NULL if none. | ||
* @param disctype - The disctype of the videoiso (0x20=video, 0x40=audio) | ||
* | ||
* @returns 0 on success, < 0 on error. | ||
*/ | ||
int vctrlVSHExitVSHMenu(SEConfig *conf, char *videoiso, int disctype); | ||
|
||
|
||
#endif | ||
|