xref: /haiku/src/kits/app/RegistrarDefs.cpp (revision acc71e7c7c666824557eacb3bd42a9aa802c1196)
1 /*
2  * Copyright 2001-2009, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Ingo Weinhold (bonefish@users.sf.net)
7  */
8 
9 
10 //! API classes - registrar interface.
11 
12 
13 #include <AppMisc.h>
14 #include <RegistrarDefs.h>
15 
16 
17 namespace BPrivate {
18 
19 // names
20 #ifdef HAIKU_TARGET_PLATFORM_HAIKU
21 const char* kRegistrarSignature = "application/x-vnd.haiku-registrar";
22 const char* kRAppLooperPortName = "rAppLooperPort";
23 #else
24 const char* kRegistrarSignature = "application/x-vnd.test-registrar";
25 const char* kRAppLooperPortName = "haiku-test:rAppLooperPort";
26 #endif
27 const char* kRosterThreadName = "_roster_thread_";
28 
29 
30 /*!	\brief Returns the name of the main request port of the registrar (roster).
31 	\return the name of the registrar request port.
32 */
33 const char*
34 get_roster_port_name()
35 {
36 #ifdef HAIKU_TARGET_PLATFORM_HAIKU
37 	return "system:roster";
38 #else
39 	return "haiku-test:roster";
40 #endif
41 }
42 
43 }	// namespace BPrivate
44