Contents

SMJobSubmit(_:_:_:_:)

Submits the specified job to the specified domain.

Declaration

func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: UnsafeMutableRawPointer!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

  • domain:

    The job’s domain (for example, Ksmdomainsystemlaunchd).

  • job:

    A dictionary describing a job.

  • auth:

    An AuthorizationRef containing the Ksmrightmodifysystemdaemons right if the specified

    domain is Ksmdomainsystemlaunchd.

  • outError:

    An output reference to a CFErrorRef describing the specific error when submitting the job, or NULL if no error occurred. It’s the responsibility of the app to release the error reference. This argument can be NULL.

Return Value

Returns true if the system successfully submits the job, otherwise false.

See Also

Deprecated Functions