Crate objc2_service_management

Source
Expand description

§Bindings to the ServiceManagement framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

SMAppServiceSMAppService and objc2
An SMAppService is used to control helper executables that live inside of an app’s main bundle.
SMAppServiceStatusSMAppService and objc2
The values returned by SMAppService:status

Constants§

kSMErrorAlreadyRegisteredSMErrors
Apple’s documentation
kSMErrorAuthorizationFailureSMErrors
Apple’s documentation
kSMErrorInternalFailureSMErrors
Apple’s documentation
kSMErrorInvalidPlistSMErrors
Apple’s documentation
kSMErrorInvalidSignatureSMErrors
Apple’s documentation
kSMErrorJobMustBeEnabledSMErrors
Apple’s documentation
kSMErrorJobNotFoundSMErrors
Apple’s documentation
kSMErrorJobPlistNotFoundSMErrors
Apple’s documentation
kSMErrorLaunchDeniedByUserSMErrors
Apple’s documentation
kSMErrorServiceUnavailableSMErrors
Apple’s documentation
kSMErrorToolNotValidSMErrors
Apple’s documentation

Statics§

SMAppServiceErrorDomainSMAppService and objc2-foundation
Apple’s documentation
kSMDomainSystemLaunchdobjc2-core-foundation
A constant representing the privileged Mach bootstrap context. Modifications to this context require root privileges.
kSMDomainUserLaunchdobjc2-core-foundation
A constant representing the Mach bootstrap context associated with the caller’s UID. On iOS, this symbol is a synonym for {
kSMErrorDomainFrameworkSMErrors and objc2-core-foundation
Apple’s documentation
kSMErrorDomainIPCSMErrors and objc2-core-foundation
Apple’s documentation
kSMErrorDomainLaunchdSMErrors and objc2-core-foundation
Apple’s documentation

Functions§

SMCopyAllJobDictionariesDeprecatedobjc2-core-foundation
Copy the job description dictionaries for all jobs in the given domain.
SMJobBlessDeprecatedobjc2-core-foundation and objc2-security
If the job is already installed, success is returned.
SMJobCopyDictionaryDeprecatedobjc2-core-foundation
Copy the job description dictionary for the given job label.
SMJobRemoveDeprecatedobjc2-core-foundation and objc2-security
Removes the job with the given label from the specified domain. When this function is used to remove a job that is running, the invocation blocks until the job exits, commonly taking several seconds.
SMJobSubmitDeprecatedobjc2-core-foundation and objc2-security
Submits the given job to the specified domain.
SMLoginItemSetEnabledDeprecatedSMLoginItem and objc2-core-foundation
Enable a helper application located in the main application bundle’s Contents/Library/LoginItems directory.