1/* 2 * Copyright 2016, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(D61_BSD) 11 */ 12 13#ifndef _TIMER_SERVER_DISPATCHER_SERV_INTERFACE_H_ 14#define _TIMER_SERVER_DISPATCHER_SERV_INTERFACE_H_ 15 16#include "../state.h" 17#include "dispatch.h" 18#include <refos-util/serv_connect.h> 19 20/*! @file 21 @brief Handles server connection and session establishment syscalls. */ 22 23int rpc_sv_serv_dispatcher(void *rpc_userptr, uint32_t label); 24 25/*! @brief Check whether the given recieved message is a server syscall. 26 @param m Struct containing info about the recieved message. 27 @param userptr Output user pointer. Pass this into the generated dispatcher function. 28 @return DISPATCH_SUCCESS if message is a dataspace syscall, DISPATCH_PASS otherwise. 29*/ 30int check_dispatch_serv(srv_msg_t *m, void **userptr); 31 32#endif /* _TIMER_SERVER_DISPATCHER_SERV_INTERFACE_H_ */