parent
c6643b50ea
commit
5b25f9d8bd
1 changed files with 6 additions and 8 deletions
|
@ -242,15 +242,13 @@ mod imp {
|
||||||
let mut res = Vec::new();
|
let mut res = Vec::new();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let process_info_sel =
|
let process_info_sel = sel_registerName(c"processInfo".as_ptr());
|
||||||
sel_registerName(c"processInfo".as_ptr() as *const libc::c_uchar);
|
let arguments_sel = sel_registerName(c"arguments".as_ptr());
|
||||||
let arguments_sel = sel_registerName(c"arguments".as_ptr() as *const libc::c_uchar);
|
let utf8_sel = sel_registerName(c"UTF8String".as_ptr());
|
||||||
let utf8_sel = sel_registerName(c"UTF8String".as_ptr() as *const libc::c_uchar);
|
let count_sel = sel_registerName(c"count".as_ptr());
|
||||||
let count_sel = sel_registerName(c"count".as_ptr() as *const libc::c_uchar);
|
let object_at_sel = sel_registerName(c"objectAtIndex:".as_ptr());
|
||||||
let object_at_sel =
|
|
||||||
sel_registerName(c"objectAtIndex:".as_ptr() as *const libc::c_uchar);
|
|
||||||
|
|
||||||
let klass = objc_getClass(c"NSProcessInfo".as_ptr() as *const libc::c_uchar);
|
let klass = objc_getClass(c"NSProcessInfo".as_ptr());
|
||||||
let info = objc_msgSend(klass, process_info_sel);
|
let info = objc_msgSend(klass, process_info_sel);
|
||||||
let args = objc_msgSend(info, arguments_sel);
|
let args = objc_msgSend(info, arguments_sel);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue