xref: /haiku/src/apps/cortex/support/AddOnHostProtocol.h (revision 1e36cfc2721ef13a187c6f7354dc9cbc485e89d3)
1 // AddOnHostProtocol.h
2 // * PURPOSE
3 //   contains all definitions needed for communications between
4 //   cortex/route and the add-on host app.
5 // * HISTORY
6 //   e.moon  02apr00   begun
7 
8 #if !defined(__CORTEX_ADD_ON_HOST_PROTOCOL_H__)
9 #define __CORTEX_ADD_ON_HOST_PROTOCOL_H__
10 
11 #include "cortex_defs.h"
12 __BEGIN_CORTEX_NAMESPACE
13 namespace addon_host {
14 
15 const char* const g_appSignature = "application/x-vnd.Cortex.AddOnHost";
16 
17 enum message_t {
18 	// inbound (sends reply)
19 	// 'info' B_RAW_TYPE (dormant_node_info)
20 	M_INSTANTIATE							= AddOnHostApp_message_base,
21 
22 	// outbound
23 	// 'node_id' int32 (media_node_id)
24 	M_INSTANTIATE_COMPLETE,
25 	// 'error' int32
26 	M_INSTANTIATE_FAILED,
27 
28 	// inbound (sends reply)
29 	// 'info' B_RAW_TYPE (live_node_info)
30 	M_RELEASE,
31 
32 	// outbound
33 	// 'node_id' int32
34 	M_RELEASE_COMPLETE,
35 	// 'error' int32
36 	M_RELEASE_FAILED
37 };
38 
39 }; // addon_host
40 __END_CORTEX_NAMESPACE
41 #endif //__CORTEX_ADD_ON_HOST_PROTOCOL_H__
42 
43