Expand description
§Bindings to the ServiceManagement framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- SMApp
Service SMAppServiceandobjc2 - An SMAppService is used to control helper executables that live inside of an app’s main bundle.
- SMApp
Service Status SMAppServiceandobjc2 - The values returned by SMAppService:status
Constants§
- kSMError
Already Registered SMErrors - Apple’s documentation
- kSMError
Authorization Failure SMErrors - Apple’s documentation
- kSMError
Internal Failure SMErrors - Apple’s documentation
- kSMError
Invalid Plist SMErrors - Apple’s documentation
- kSMError
Invalid Signature SMErrors - Apple’s documentation
- kSMError
JobMust BeEnabled SMErrors - Apple’s documentation
- kSMError
JobNot Found SMErrors - Apple’s documentation
- kSMError
JobPlist NotFound SMErrors - Apple’s documentation
- kSMError
Launch Denied ByUser SMErrors - Apple’s documentation
- kSMError
Service Unavailable SMErrors - Apple’s documentation
- kSMError
Tool NotValid SMErrors - Apple’s documentation
- kSMRight
Bless Privileged Helper - Apple’s documentation
- kSMRight
Modify System Daemons - Apple’s documentation
Statics§
- SMApp
Service ⚠Error Domain SMAppServiceandobjc2-foundation - Apple’s documentation
- kSMDomain
System ⚠Launchd objc2-core-foundation - A constant representing the privileged Mach bootstrap context. Modifications to this context require root privileges.
- kSMDomain
User ⚠Launchd objc2-core-foundation - A constant representing the Mach bootstrap context associated with the caller’s UID. On iOS, this symbol is a synonym for {
- kSMError
Domain ⚠Framework Deprecated SMErrorsandobjc2-core-foundation - Apple’s documentation
- kSMError
DomainIPC ⚠Deprecated SMErrorsandobjc2-core-foundation - Apple’s documentation
- kSMError
Domain ⚠Launchd Deprecated SMErrorsandobjc2-core-foundation - Apple’s documentation
Functions§
- SMCopy
AllJob ⚠Dictionaries Deprecated objc2-core-foundation - Copy the job description dictionaries for all jobs in the given domain.
- SMJob
Bless ⚠Deprecated objc2-core-foundationandobjc2-security - If the job is already installed, success is returned.
- SMJob
Copy ⚠Dictionary Deprecated objc2-core-foundation - Copy the job description dictionary for the given job label.
- SMJob
Remove ⚠Deprecated objc2-core-foundationandobjc2-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.
- SMJob
Submit ⚠Deprecated objc2-core-foundationandobjc2-security - Submits the given job to the specified domain.
- SMLogin
Item ⚠SetEnabled Deprecated SMLoginItemandobjc2-core-foundation - Enable a helper application located in the main application bundle’s Contents/Library/LoginItems directory.