/* --------------------------------------------------------------------------- * RpcResults.h - v0.1 (c) 2008 Micro-key bv * --------------------------------------------------------------------------- * Micro-key bv * Industrieweg 28, 9804 TG Noordhorn * Postbus 92, 9800 AB Zuidhorn * The Netherlands * Tel: +31 594 503020 * Fax: +31 594 505825 * Email: support@microkey.nl * Web: www.microkey.nl * --------------------------------------------------------------------------- * Description: Holds supported Remote Procedure Calls * --------------------------------------------------------------------------- * Version(s): 0.1, Jan 29, 2008, FSc * Creation. * --------------------------------------------------------------------------- */ #ifndef __RPCRESULTS_H__ #define __RPCRESULTS_H__ /** \file RpcResults.h \brief */ /* --------------------------------------------------------------------------- * System include files. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Application include files. * --------------------------------------------------------------------------- */ #include "BusProtocol.h" #include "BpMessageFormat.h" /* --------------------------------------------------------------------------- * Constant and macro definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Type definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Variable declarations. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Function declarations. * --------------------------------------------------------------------------- */ /** \brief Initialises a Remote Procedure Call-Result administration */ int rpcrInit(); /** \brief Deinitialises the Remote Procedure Call-Result administration */ void rpcrDeinit( int handle ); /** \brief Adds a RPC-result handler to the administration */ void rpcrAdd( int handle, UINT8 functionId, t_bp_rpcresult_callback funcptr, UINT8 nrOfParams); /** \brief Removes a RPC-result handler to the administration */ void rpcrRemove( int handle, UINT8 functionId ); /** \brief Looks up a RPC-result handler to the administration */ t_bp_rpcresult_callback rpcrLookup( int handle, UINT8 functionId ); /** \brief Message handler for RPC-requests */ void rpcrRequestHandler(t_bpmsg_message *msg, int ownHandler); #endif /* __RPCRESULTS_H__ */