2015-04-02 12:42:35 +03:00
|
|
|
/*
|
2016-01-12 17:55:36 +03:00
|
|
|
* Copyright 2015-2016, Haiku, Inc. All Rights Reserved.
|
2015-04-02 12:42:35 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Axel Dörfler, axeld@pinc-software.de
|
|
|
|
*/
|
|
|
|
#ifndef LAUNCH_DAEMON_DEFS_H
|
|
|
|
#define LAUNCH_DAEMON_DEFS_H
|
|
|
|
|
|
|
|
|
|
|
|
//! launch_daemon interface
|
|
|
|
|
|
|
|
|
|
|
|
#include <Errors.h>
|
|
|
|
#include <Roster.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
|
|
|
|
#define kLaunchDaemonSignature "application/x-vnd.Haiku-launch_daemon"
|
2015-06-15 19:50:04 +03:00
|
|
|
#define B_LAUNCH_DAEMON_PORT_NAME "system:launch_daemon"
|
2015-04-02 12:42:35 +03:00
|
|
|
|
|
|
|
|
2015-07-16 23:34:58 +03:00
|
|
|
// Message constants
|
2015-04-02 12:42:35 +03:00
|
|
|
enum {
|
2015-06-10 18:23:05 +03:00
|
|
|
B_GET_LAUNCH_DATA = 'lnda',
|
2015-06-15 19:50:04 +03:00
|
|
|
B_LAUNCH_TARGET = 'lntg',
|
2015-11-07 23:42:45 +03:00
|
|
|
B_LAUNCH_JOB = 'lnjo',
|
2016-01-12 17:55:36 +03:00
|
|
|
B_ENABLE_LAUNCH_JOB = 'lnje',
|
2015-11-07 23:42:45 +03:00
|
|
|
B_STOP_LAUNCH_JOB = 'lnsj',
|
2015-06-10 18:23:05 +03:00
|
|
|
B_LAUNCH_SESSION = 'lnse',
|
2015-06-15 19:50:04 +03:00
|
|
|
B_REGISTER_SESSION_DAEMON = 'lnrs',
|
2015-07-16 23:34:58 +03:00
|
|
|
B_REGISTER_LAUNCH_EVENT = 'lnre',
|
|
|
|
B_UNREGISTER_LAUNCH_EVENT = 'lnue',
|
|
|
|
B_NOTIFY_LAUNCH_EVENT = 'lnne',
|
2015-10-21 22:17:41 +03:00
|
|
|
B_RESET_STICKY_LAUNCH_EVENT = 'lnRe',
|
2015-11-04 23:25:08 +03:00
|
|
|
B_GET_LAUNCH_TARGETS = 'lngt',
|
|
|
|
B_GET_LAUNCH_JOBS = 'lngj',
|
|
|
|
B_GET_LAUNCH_TARGET_INFO = 'lntI',
|
|
|
|
B_GET_LAUNCH_JOB_INFO = 'lnjI',
|
2015-04-02 12:42:35 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
|
|
|
|
#endif // LAUNCH_DAEMON_DEFS_H
|
|
|
|
|