2 * Copyright 2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Paweł Dziepak, pdziepak@quarnos.org
10 #include "RPCCallbackReply.h"
12 #include <util/kernel_cpp.h>
20 CallbackReply::CallbackReply()
26 CallbackReply::Create(uint32 xid
, AcceptStat rpcError
)
28 CallbackReply
* reply
= new(std::nothrow
) CallbackReply
;
32 reply
->fStream
.AddUInt(xid
);
34 reply
->fStream
.AddInt(REPLY
);
35 reply
->fStream
.AddUInt(MSG_ACCEPTED
);
37 reply
->fStream
.AddInt(AUTH_NONE
);
38 reply
->fStream
.AddOpaque(NULL
, 0);
40 reply
->fStream
.AddUInt(rpcError
);
46 CallbackReply::~CallbackReply()