xref: /haiku/src/tests/kits/app/bmessenger/SMRemoteTargetApp.h (revision 40c28b75d4e1f94802f6e41e5bba3383584cc910)
1*40c28b75SIngo Weinhold // SMRemoteTargetApp.h
2*40c28b75SIngo Weinhold 
3*40c28b75SIngo Weinhold #ifndef SM_REMOTE_TARGET_APP_H
4*40c28b75SIngo Weinhold #define SM_REMOTE_TARGET_APP_H
5*40c28b75SIngo Weinhold 
6*40c28b75SIngo Weinhold #include <Messenger.h>
7*40c28b75SIngo Weinhold 
8*40c28b75SIngo Weinhold enum {
9*40c28b75SIngo Weinhold 	SMRT_INIT						= 'init',
10*40c28b75SIngo Weinhold 	SMRT_QUIT						= 'quit',
11*40c28b75SIngo Weinhold 	SMRT_GET_READY					= 'gtrd',
12*40c28b75SIngo Weinhold 	SMRT_DELIVERY_SUCCESS_REQUEST	= 'dsrq',
13*40c28b75SIngo Weinhold 	SMRT_DELIVERY_SUCCESS_REPLY		= 'dsre',
14*40c28b75SIngo Weinhold };
15*40c28b75SIngo Weinhold 
16*40c28b75SIngo Weinhold struct smrt_init {
17*40c28b75SIngo Weinhold 	port_id		port;
18*40c28b75SIngo Weinhold 	BMessenger	messenger;
19*40c28b75SIngo Weinhold };
20*40c28b75SIngo Weinhold 
21*40c28b75SIngo Weinhold struct smrt_delivery_success {
22*40c28b75SIngo Weinhold 	bool success;
23*40c28b75SIngo Weinhold };
24*40c28b75SIngo Weinhold 
25*40c28b75SIngo Weinhold struct smrt_get_ready {
26*40c28b75SIngo Weinhold 	bigtime_t unblock_time;
27*40c28b75SIngo Weinhold 	bigtime_t reply_delay;
28*40c28b75SIngo Weinhold };
29*40c28b75SIngo Weinhold 
30*40c28b75SIngo Weinhold #endif	// SM_REMOTE_TARGET_APP_H
31