mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
added kernel libraries bindings and cleaned up todos
This commit is contained in:
+26
-2
@@ -4,6 +4,7 @@ import "core:c"
|
||||
import sce "../common"
|
||||
|
||||
foreign import appmgr "system:SceAppMgr_stub"
|
||||
foreign import appmgrkern "system:SceAppMgrForDriver_stub"
|
||||
|
||||
foreign appmgr {
|
||||
/**
|
||||
@@ -194,8 +195,7 @@ foreign appmgr {
|
||||
*
|
||||
* @note SELF file must be located in app0: partition.
|
||||
*/
|
||||
// TODO: no idea how argv is supposed to be changed to odin types. C type is `char *argv[]`
|
||||
sceAppMgrLoadExec :: proc(appPath: cstring, argv: [][^]c.char, optParam: ^SceAppMgrExecOptParam) -> c.int ---
|
||||
sceAppMgrLoadExec :: proc(appPath: cstring, argv: [^]cstring, optParam: ^SceAppMgrExecOptParam) -> c.int ---
|
||||
|
||||
/**
|
||||
* Start an application by URI
|
||||
@@ -438,3 +438,27 @@ foreign appmgr {
|
||||
sceSharedFbEnd :: proc(fb_id: sce.UID) -> c.int ---
|
||||
sceSharedFbGetInfo :: proc(fb_id: sce.UID, info: ^SceSharedFbInfo) -> c.int ---
|
||||
}
|
||||
|
||||
@(link_prefix = "ksceAppMgr")
|
||||
foreign appmgrkern {
|
||||
/**
|
||||
* @brief Kill a process.
|
||||
* @param[in] pid The process to kill.
|
||||
* @return Zero on success, else < 0.
|
||||
*/
|
||||
KillProcess :: proc(pid: sce.UID) -> c.int ---
|
||||
|
||||
/**
|
||||
* @brief Launch an application for debugging
|
||||
*
|
||||
* @param[in] path Path to the executable to load
|
||||
* @param[in] args Arguments to pass to the executable and to configure appmgr
|
||||
* @param[in] arg_size The size of the args passed in
|
||||
* @param[in] type Set to 0x80000000 for debugging launch
|
||||
* @param[in] param pointer to launch params
|
||||
* @param unk unknown, set to nullptr
|
||||
*
|
||||
* @return pid on success, else < 0.
|
||||
*/
|
||||
LaunchAppByPath :: proc(path: cstring, args: cstring, arg_size: sce.Size, type: c.uint, #by_ptr param: SceAppMgrLaunchParam, unk: rawptr) -> c.int ---
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user