13 #ifndef MAC_STARTUP_ITEM_H
14 #define MAC_STARTUP_ITEM_H
18 #if defined(__APPLE__)
39 ServiceTypeSystemDaemon = 0,
41 ServiceTypeCurrentUserAgent
50 static bool create(
ServiceType type,
const std::string &serviceId,
const std::list<std::string> &arguments,
const std::string &userName = std::string());
static bool unload(ServiceType type, const std::string &serviceId)
Unload startup daemon/agent config.
ServiceType
Type of startup service.
@ ServiceTypeAllUsersAgent
Per-user agent provided by the administrator for all users.
static bool create(ServiceType type, const std::string &serviceId, const std::list< std::string > &arguments, const std::string &userName=std::string())
Create new startup daemon/agent config file.
static bool remove(ServiceType type, const std::string &serviceId)
Remove existing startup daemon/agent config file.
static bool load(ServiceType type, const std::string &serviceId)
Load startup daemon/agent config.
static const std::string CurrentUser
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.