mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
[os2/process]: Add process list function
This commit is contained in:
@@ -104,6 +104,13 @@ get_ppid :: proc() -> int {
|
||||
return _get_ppid()
|
||||
}
|
||||
|
||||
/*
|
||||
Obtain ID's of all processes running in the system.
|
||||
*/
|
||||
process_list :: proc(allocator: runtime.Allocator) -> ([]int, Error) {
|
||||
return _process_list(allocator)
|
||||
}
|
||||
|
||||
|
||||
Process :: struct {
|
||||
pid: int,
|
||||
|
||||
Reference in New Issue
Block a user