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
16namespace BPrivate {
17
18
19DesktopLink::DesktopLink()
20{
21	create_desktop_connection(this, "desktop reply", 1);
22}
23
24
25DesktopLink::~DesktopLink()
26{
27	delete_port(fReceiver->Port());
28}
29
30
31status_t
32DesktopLink::InitCheck() const
33{
34	return fReceiver->Port() < B_OK ? fReceiver->Port() : B_OK;
35}
36
37
38}	// namespace BPrivate
39