xref: /haiku/src/kits/app/link_message.h (revision 820dca4df6c7bf955c46e8f6521b9408f50b2900)
1 /*
2  * Copyright 2005, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler
7  */
8 #ifndef _LINK_MESSAGE_H_
9 #define _LINK_MESSAGE_H_
10 
11 
12 #include <SupportDefs.h>
13 
14 
15 static const int32 kLinkCode = '_PTL';
16 
17 static const size_t kInitialBufferSize = 2048;
18 static const size_t kMaxBufferSize = 65536;
19 	// anything beyond that should be sent with a different mechanism
20 
21 struct message_header {
22 	int32	size;
23 	uint32	code;
24 	uint32	flags;
25 };
26 
27 static const uint32 kNeedsReply = 0x01;
28 
29 #endif	/* _LINK_MESSAGE_H_ */
30