2012-08-15 17:14:05 +00:00
|
|
|
/*
|
|
|
|
* \brief Client-side PD session interface
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2012-08-15
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
2012-08-15 17:14:05 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__LINUX_PD_SESSION__CLIENT_H_
|
|
|
|
#define _INCLUDE__LINUX_PD_SESSION__CLIENT_H_
|
|
|
|
|
|
|
|
#include <linux_pd_session/linux_pd_session.h>
|
|
|
|
#include <base/rpc_client.h>
|
|
|
|
|
|
|
|
namespace Genode {
|
|
|
|
|
|
|
|
struct Linux_pd_session_client : Rpc_client<Linux_pd_session>
|
|
|
|
{
|
|
|
|
explicit Linux_pd_session_client(Capability<Linux_pd_session> session)
|
|
|
|
: Rpc_client<Linux_pd_session>(session) { }
|
|
|
|
|
|
|
|
int bind_thread(Thread_capability thread) {
|
|
|
|
return call<Rpc_bind_thread>(thread); }
|
|
|
|
|
|
|
|
int assign_parent(Parent_capability parent) {
|
|
|
|
return call<Rpc_assign_parent>(parent); }
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************
|
|
|
|
* Linux-specific extension **
|
|
|
|
*****************************/
|
|
|
|
|
2012-10-11 18:57:10 +00:00
|
|
|
void start(Capability<Dataspace> binary) {
|
|
|
|
call<Rpc_start>(binary); }
|
2012-08-15 17:14:05 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__LINUX_PD_SESSION__CLIENT_H_ */
|