diff --git a/src/native.rs b/src/native.rs index e8074c7..de1c26a 100644 --- a/src/native.rs +++ b/src/native.rs @@ -88,6 +88,18 @@ extern "C" { name: *const c_char, out: *mut scf_instance_t, ) -> c_int; + pub fn scf_service_get_pg( + service: *const scf_service_t, + name: *const c_char, + out: *mut scf_propertygroup_t, + ) -> c_int; + pub fn scf_service_add_pg( + service: *const scf_service_t, + name: *const c_char, + pgtype: *const c_char, + flags: u32, + out: *mut scf_propertygroup_t, + ) -> c_int; pub fn scf_iter_scope_services( iter: *mut scf_iter_t, diff --git a/src/stubs.rs b/src/stubs.rs index 148e3cf..0ccc296 100644 --- a/src/stubs.rs +++ b/src/stubs.rs @@ -159,6 +159,22 @@ mod stubs { ) -> c_int { unimplemented!() } + pub unsafe fn scf_service_get_pg( + service: *const scf_service_t, + name: *const c_char, + out: *mut scf_propertygroup_t, + ) -> c_int { + unimplemented!() + } + pub unsafe fn scf_service_add_pg( + service: *const scf_service_t, + name: *const c_char, + pgtype: *const c_char, + flags: u32, + out: *mut scf_propertygroup_t, + ) -> c_int { + unimplemented!() + } pub unsafe fn scf_iter_scope_services( iter: *mut scf_iter_t,