xref: /haiku/src/kits/app/DesktopLink.cpp (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
1 /*
2  * Copyright 2006-2009, Haiku Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler, axeld@pinc-software.de
7  */
8 
9 
10 #include <DesktopLink.h>
11 
12 #include <AppMisc.h>
13 #include <ServerProtocol.h>
14 
15 
16 namespace BPrivate {
17 
18 
19 DesktopLink::DesktopLink()
20 {
21 	create_desktop_connection(this, "desktop reply", 1);
22 }
23 
24 
25 DesktopLink::~DesktopLink()
26 {
27 	delete_port(fReceiver->Port());
28 }
29 
30 
31 status_t
32 DesktopLink::InitCheck() const
33 {
34 	return fReceiver->Port() < B_OK ? fReceiver->Port() : B_OK;
35 }
36 
37 
38 }	// namespace BPrivate
39