38d80987f3
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38167 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
725 B
C++
38 lines
725 B
C++
/*
|
|
* Copyright 2005-2010, Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Axel Dörfler, axeld@pinc-software.de
|
|
* Clemens Zeidler, haiku@clemens-zeidler.de
|
|
*/
|
|
#ifndef _PORT_LINK_H
|
|
#define _PORT_LINK_H
|
|
|
|
|
|
#include <ServerLink.h>
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
|
|
/*! Provide a new LinkSender and LinkReceiver for the ServerLink. */
|
|
class PortLink : public ServerLink {
|
|
public:
|
|
PortLink(port_id sender = -1,
|
|
port_id receiver = -1);
|
|
virtual ~PortLink();
|
|
};
|
|
|
|
|
|
/*! Use existing LinkSender and LinkReceiver in ServerLink. */
|
|
class PortLinkRef : public ServerLink {
|
|
public:
|
|
PortLinkRef(LinkSender* send, LinkReceiver* receive);
|
|
};
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
#endif /* _PORT_LINK_H */
|