1feb15cc6SPawel Dziepak/*
2feb15cc6SPawel Dziepak * Copyright 2012 Haiku, Inc. All rights reserved.
3feb15cc6SPawel Dziepak * Distributed under the terms of the MIT License.
4feb15cc6SPawel Dziepak *
5feb15cc6SPawel Dziepak * Authors:
6feb15cc6SPawel Dziepak *		Pawe�� Dziepak, pdziepak@quarnos.org
7feb15cc6SPawel Dziepak */
8feb15cc6SPawel Dziepak
9feb15cc6SPawel Dziepak
10feb15cc6SPawel Dziepak#include "RPCCallbackReply.h"
11feb15cc6SPawel Dziepak
12feb15cc6SPawel Dziepak#include <util/kernel_cpp.h>
13feb15cc6SPawel Dziepak
14feb15cc6SPawel Dziepak#include "RPCDefs.h"
15feb15cc6SPawel Dziepak
16feb15cc6SPawel Dziepak
17feb15cc6SPawel Dziepakusing namespace RPC;
18feb15cc6SPawel Dziepak
19feb15cc6SPawel Dziepak
20feb15cc6SPawel DziepakCallbackReply::CallbackReply()
21feb15cc6SPawel Dziepak{
22feb15cc6SPawel Dziepak}
23feb15cc6SPawel Dziepak
24feb15cc6SPawel Dziepak
25feb15cc6SPawel DziepakCallbackReply*
26feb15cc6SPawel DziepakCallbackReply::Create(uint32 xid, AcceptStat rpcError)
27feb15cc6SPawel Dziepak{
28feb15cc6SPawel Dziepak	CallbackReply* reply = new(std::nothrow) CallbackReply;
29feb15cc6SPawel Dziepak	if (reply == NULL)
30feb15cc6SPawel Dziepak		return NULL;
31feb15cc6SPawel Dziepak
32feb15cc6SPawel Dziepak	reply->fStream.AddUInt(xid);
33feb15cc6SPawel Dziepak
34feb15cc6SPawel Dziepak	reply->fStream.AddInt(REPLY);
35feb15cc6SPawel Dziepak	reply->fStream.AddUInt(MSG_ACCEPTED);
36feb15cc6SPawel Dziepak
37feb15cc6SPawel Dziepak	reply->fStream.AddInt(AUTH_NONE);
38feb15cc6SPawel Dziepak	reply->fStream.AddOpaque(NULL, 0);
39feb15cc6SPawel Dziepak
40feb15cc6SPawel Dziepak	reply->fStream.AddUInt(rpcError);
41feb15cc6SPawel Dziepak
42feb15cc6SPawel Dziepak	return reply;
43feb15cc6SPawel Dziepak}
44feb15cc6SPawel Dziepak
45feb15cc6SPawel Dziepak
46feb15cc6SPawel DziepakCallbackReply::~CallbackReply()
47feb15cc6SPawel Dziepak{
48feb15cc6SPawel Dziepak}
49feb15cc6SPawel Dziepak
50