mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
83 lines
4.1 KiB
Odin
83 lines
4.1 KiB
Odin
package fios2
|
|
|
|
import "core:c"
|
|
import sce "../common"
|
|
|
|
foreign import fios2 "system:SceFios2Kernel_stub"
|
|
foreign import fios2kern "system:SceFios2KernelForDriver_stub"
|
|
|
|
foreign fios2 {
|
|
_sceFiosKernelOverlayAdd :: proc(overlay: ^SceFiosKernelOverlay, out_id: ^SceFiosKernelOverlayID) -> c.int ---
|
|
_sceFiosKernelOverlayAddForProcess :: proc(target_process: sce.UID, overlay: ^SceFiosKernelOverlay, out_id: ^SceFiosKernelOverlayID) -> c.int ---
|
|
_sceFiosKernelOverlayDHChstatSync :: proc(dh: SceFiosKernelOverlayDH, new_stat: ^SceFiosNativeStat, cbit: c.uint) -> c.int ---
|
|
_sceFiosKernelOverlayDHCloseSync :: proc(dh: SceFiosKernelOverlayDH) -> c.int ---
|
|
|
|
_sceFiosKernelOverlayDHOpenSync :: proc(out_dh: ^SceFiosKernelOverlayDH, path: cstring, from_order: sce.UInt8, args: ^SceFiosDHOpenSyncSyscallArgs) -> c.int ---
|
|
_sceFiosKernelOverlayDHReadSync :: proc(dh: SceFiosKernelOverlayDH, out_entry: ^SceFiosNativeDirEntry) -> c.int ---
|
|
_sceFiosKernelOverlayDHStatSync :: proc(dh: SceFiosKernelOverlayDH, out_stat: ^SceFiosNativeStat) -> c.int ---
|
|
_sceFiosKernelOverlayDHSyncSync :: proc(dh: SceFiosKernelOverlayDH, flag: c.int) -> c.int ---
|
|
_sceFiosKernelOverlayGetInfo :: proc(id: SceFiosKernelOverlayID, out_overlay: ^SceFiosKernelOverlay) -> c.int ---
|
|
_sceFiosKernelOverlayGetInfoForProcess :: proc(target_process: sce.UID, id: SceFiosKernelOverlayID, out_overlay: ^SceFiosKernelOverlay) -> c.int ---
|
|
|
|
_sceFiosKernelOverlayGetList :: proc(pid: sce.UID, min_order: sce.UInt8, max_order: sce.UInt8, args: ^SceFiosGetListSyscallArgs) -> c.int ---
|
|
_sceFiosKernelOverlayGetRecommendedScheduler :: proc(avail: c.int, partially_resolved_path: cstring, a3: ^sce.UInt64) -> c.int ---
|
|
_sceFiosKernelOverlayModify :: proc(id: SceFiosKernelOverlayID, new_value: ^SceFiosKernelOverlay) -> c.int ---
|
|
_sceFiosKernelOverlayModifyForProcess :: proc(target_process: sce.UID, id: SceFiosKernelOverlayID, new_value: ^SceFiosKernelOverlay) -> c.int ---
|
|
_sceFiosKernelOverlayRemove :: proc(id: SceFiosKernelOverlayID) -> c.int ---
|
|
_sceFiosKernelOverlayRemoveForProcess :: proc(target_process: sce.UID, id: SceFiosKernelOverlayID) -> c.int ---
|
|
|
|
_sceFiosKernelOverlayResolveSync :: proc(pid: sce.UID, resolve_flag: c.int, in_path: cstring, args: ^SceFiosResolveSyncSyscallArgs) -> c.int ---
|
|
|
|
_sceFiosKernelOverlayResolveWithRangeSync :: proc(pid: sce.UID, resolve_flag: c.int, in_path: cstring, args: ^SceFiosResolveWithRangeSyncSyscallArgs) -> c.int ---
|
|
_sceFiosKernelOverlayThreadIsDisabled :: proc() -> c.int ---
|
|
_sceFiosKernelOverlayThreadSetDisabled :: proc(disabled: sce.Int32) -> c.int ---
|
|
|
|
sceFiosKernelOverlayAddForProcess02 :: proc(pid: sce.UID, overlay: ^SceFiosOverlay, outID: ^SceFiosOverlayID) -> c.int ---
|
|
}
|
|
|
|
foreign fios2kern {
|
|
/**
|
|
* Overlay process file system overlay
|
|
*
|
|
* @param[in] overlay - Overlay config pointer
|
|
* @param[out] outID - outID pointer
|
|
*
|
|
* @return Error code or zero on success
|
|
*/
|
|
ksceFiosKernelOverlayAdd :: proc(overlay: ^SceFiosOverlay, outID: ^SceFiosOverlayID) -> c.int ---
|
|
|
|
/**
|
|
* Overlay process file system overlay
|
|
*
|
|
* @param[in] pid - Process id
|
|
* @param[in] overlay - Overlay config pointer
|
|
* @param[out] outID - outID pointer
|
|
*
|
|
* @return Error code or zero on success
|
|
*/
|
|
ksceFiosKernelOverlayAddForProcess :: proc(pid: sce.UID, overlay: ^SceFiosOverlay, outID: ^SceFiosOverlayID) -> c.int ---
|
|
|
|
/**
|
|
* Remove process file system overlay
|
|
*
|
|
* @param[in] pid - Process id
|
|
* @param[in] id - Overlay id
|
|
*
|
|
* @return Error code or zero on success
|
|
*/
|
|
ksceFiosKernelOverlayRemoveForProcess :: proc(pid: sce.UID, id: SceFiosOverlayID) -> c.int ---
|
|
|
|
/**
|
|
* Resolve process file system overlay with sync
|
|
*
|
|
* @param[in] pid - Process id
|
|
* @param[in] resolveFlag - Some flags
|
|
* @param[in] inPath - Path input
|
|
* @param[out] outPath - Path output
|
|
* @param[in] maxPath - Path output max length
|
|
*
|
|
* @return Error code or zero on success
|
|
*/
|
|
ksceFiosKernelOverlayResolveSync :: proc(pid: sce.UID, resolveFlag: c.int, inPath: cstring, outPath: [^]c.char, maxPath: sce.Size) -> c.int ---
|
|
}
|