xref: /haiku/headers/private/app/LaunchDaemonDefs.h (revision a77aa747eaf779898d401614a11b98fe58dddf35)
1 /*
2  * Copyright 2015-2018, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler, axeld@pinc-software.de
7  */
8 #ifndef LAUNCH_DAEMON_DEFS_H
9 #define LAUNCH_DAEMON_DEFS_H
10 
11 
12 //!	launch_daemon interface
13 
14 
15 #include <Errors.h>
16 #include <Roster.h>
17 
18 
19 namespace BPrivate {
20 
21 
22 #define kLaunchDaemonSignature "application/x-vnd.Haiku-launch_daemon"
23 #ifdef TEST_MODE
24 #	define B_LAUNCH_DAEMON_PORT_NAME "test:launch_daemon"
25 #else
26 #	define B_LAUNCH_DAEMON_PORT_NAME "system:launch_daemon"
27 #endif
28 
29 
30 // Message constants
31 enum {
32 	B_GET_LAUNCH_DATA			= 'lnda',
33 	B_LAUNCH_TARGET				= 'lntg',
34 	B_STOP_LAUNCH_TARGET		= 'lnst',
35 	B_LAUNCH_JOB				= 'lnjo',
36 	B_ENABLE_LAUNCH_JOB			= 'lnje',
37 	B_STOP_LAUNCH_JOB			= 'lnsj',
38 	B_LAUNCH_SESSION			= 'lnse',
39 	B_REGISTER_SESSION_DAEMON	= 'lnrs',
40 	B_REGISTER_LAUNCH_EVENT		= 'lnre',
41 	B_UNREGISTER_LAUNCH_EVENT	= 'lnue',
42 	B_NOTIFY_LAUNCH_EVENT		= 'lnne',
43 	B_RESET_STICKY_LAUNCH_EVENT	= 'lnRe',
44 	B_GET_LAUNCH_TARGETS		= 'lngt',
45 	B_GET_LAUNCH_JOBS			= 'lngj',
46 	B_GET_LAUNCH_TARGET_INFO	= 'lntI',
47 	B_GET_LAUNCH_JOB_INFO		= 'lnjI',
48 	B_GET_LAUNCH_LOG			= 'lnLL',
49 };
50 
51 
52 }	// namespace BPrivate
53 
54 
55 #endif	// LAUNCH_DAEMON_DEFS_H
56 
57