BPicture: Fix archive constructor.
[haiku.git] / src / kits / app / DesktopLink.cpp
blob8794a2bc9daa7d75dc39676955842d27a21e9ba2
1 /*
2 * Copyright 2006-2009, Haiku Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 */
10 #include <DesktopLink.h>
12 #include <AppMisc.h>
13 #include <ServerProtocol.h>
16 namespace BPrivate {
19 DesktopLink::DesktopLink()
21 create_desktop_connection(this, "desktop reply", 1);
25 DesktopLink::~DesktopLink()
27 delete_port(fReceiver->Port());
31 status_t
32 DesktopLink::InitCheck() const
34 return fReceiver->Port() < B_OK ? fReceiver->Port() : B_OK;
38 } // namespace BPrivate