Skip to main content

Crate objc2_service_management

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§

SMAppServiceobjc2 and SMAppService
An SMAppService is used to control helper executables that live inside of an app’s main bundle.
SMAppServiceStatusobjc2 and SMAppService
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
kSMRightBlessPrivilegedHelper
Apple’s documentation
kSMRightModifySystemDaemons
Apple’s documentation

Statics§

SMAppServiceErrorDomainobjc2-foundation and SMAppService
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 {
kSMErrorDomainFrameworkDeprecatedobjc2-core-foundation and SMErrors
Apple’s documentation
kSMErrorDomainIPCDeprecatedobjc2-core-foundation and SMErrors
Apple’s documentation
kSMErrorDomainLaunchdDeprecatedobjc2-core-foundation and SMErrors
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.
SMLoginItemSetEnabledDeprecatedobjc2-core-foundation and SMLoginItem
Enable a helper application located in the main application bundle’s Contents/Library/LoginItems directory.