Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: *mut scf_service_t,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be *const?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Nice catch - thanks. Fixed both in 4869670

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,
Expand Down
16 changes: 16 additions & 0 deletions src/stubs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: *mut scf_service_t,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be *const?

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,
Expand Down