Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F680034
lib.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
lib.rs
View Options
pub
mod
config
;
pub
mod
file
;
pub
mod
helpers
;
pub
mod
log
;
pub
mod
process
;
#[repr(transparent)]
pub
struct
Callback
(
pub
extern
"C"
fn
());
unsafe
impl
cxx
::
ExternType
for
Callback
{
type
Id
=
cxx
::
type_id
!
(
"Callback"
);
type
Kind
=
cxx
::
kind
::
Trivial
;
}
#[cxx::bridge]
pub
mod
service
{
#[repr(u8)]
enum
Fork
{
Parent
,
Child
,
}
pub
struct
ProcessMetadata
{
pub
name
:
String
,
pub
shell
:
String
,
pub
command
:
String
,
pub
log_path
:
String
,
pub
args
:
Vec
<
String
>
,
pub
env
:
Vec
<
String
>
,
}
unsafe
extern
"C++"
{
include!
(
"pmc/lib/include/process.h"
);
include!
(
"pmc/lib/include/bridge.h"
);
include!
(
"pmc/lib/include/fork.h"
);
type
Callback
=
crate
::
Callback
;
pub
fn
stop
(
pid
:
i64
)
->
i64
;
pub
fn
set_program_name
(
name
:
String
);
pub
fn
get_child_pid
(
parentPID
:
i64
)
->
i64
;
pub
fn
run
(
metadata
:
ProcessMetadata
)
->
i64
;
pub
fn
find_chidren
(
parentPID
:
i64
)
->
Vec
<
i64
>
;
pub
fn
try_fork
(
nochdir
:
bool
,
noclose
:
bool
,
callback
:
Callback
)
->
i32
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 27, 8:57 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
170230
Default Alt Text
lib.rs (1 KB)
Attached To
Mode
rPMC Process Management Controller
Attached
Detach File
Event Timeline
Log In to Comment