1 /* 2 * Copyright 2012 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Paweł Dziepak, pdziepak@quarnos.org 7 */ 8 9 10 #include "RPCCallback.h" 11 12 #include "RPCCallbackRequest.h" 13 #include "RPCServer.h" 14 15 16 using namespace RPC; 17 18 19 Callback::Callback(Server* server) 20 : 21 fServer(server) 22 { 23 } 24 25 26 status_t 27 Callback::EnqueueRequest(CallbackRequest* request, Connection* connection) 28 { 29 ASSERT(request != NULL); 30 ASSERT(connection != NULL); 31 return fServer->PrivateData()->ProcessCallback(request, connection); 32 } 33 34