Skip to content

Commit 6b8a6d1

Browse files
localccmadsmtm
authored andcommitted
Add missing ServiceManagement functions (#698)
1 parent 10878c4 commit 6b8a6d1

File tree

5 files changed

+32
-22
lines changed

5 files changed

+32
-22
lines changed

Cargo.lock

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework-crates/objc2-service-management/Cargo.toml

+23-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework-crates/objc2-service-management/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ extern crate std;
1818
mod generated;
1919
#[allow(unused_imports, unreachable_pub)]
2020
pub use self::generated::*;
21+
22+
// MacTypes.h
23+
#[allow(dead_code)]
24+
pub(crate) type Boolean = u8; // unsigned char
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
framework = "ServiceManagement"
22
crate = "objc2-service-management"
3-
required-crates = ["objc2", "objc2-foundation"]
3+
required-crates = ["objc2-core-foundation"]
4+
custom-lib-rs = true
45
macos = "10.6"
56
maccatalyst = "13.0"
6-
7-
# Items from ServiceManagement that uses types from CoreFoundation
8-
fn.SMJobBless.skipped = true
9-
fn.SMLoginItemSetEnabled.skipped = true
10-
static.kSMDomainSystemLaunchd.skipped = true
11-
static.kSMDomainUserLaunchd.skipped = true
12-
static.kSMErrorDomainFramework.skipped = true
13-
static.kSMErrorDomainIPC.skipped = true
14-
static.kSMErrorDomainLaunchd.skipped = true
15-
fn.SMCopyAllJobDictionaries.skipped = true
16-
fn.SMJobCopyDictionary.skipped = true
17-
fn.SMJobRemove.skipped = true
18-
fn.SMJobSubmit.skipped = true

0 commit comments

Comments
 (0)