Changes in uspace/lib/packet/include/packet_server.h [515a00da:f63a591d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/packet/include/packet_server.h
r515a00da rf63a591d 27 27 */ 28 28 29 /** @addtogroup libpacket30 * @{29 /** @addtogroup packet 30 * @{ 31 31 */ 32 32 33 33 /** @file 34 * Packet server. 35 * The hosting module has to be compiled with both the packet.c and the 36 * packet_server.c source files. To function correctly, initialization of the 37 * packet map by the pm_init() function has to happen at the first place. Then 38 * the packet messages have to be processed by the packet_server_message() 39 * function. The packet map should be released by the pm_destroy() function 40 * during the module termination. 41 * @see IS_NET_PACKET_MESSAGE() 34 * Packet server. 35 * The hosting module has to be compiled with both the packet.c and the packet_server.c source files. 36 * To function correctly, initialization of the packet map by the pm_init() function has to happen at the first place. 37 * Then the packet messages have to be processed by the packet_server_message() function. 38 * The packet map should be released by the pm_destroy() function during the module termination. 39 * @see IS_NET_PACKET_MESSAGE() 42 40 */ 43 41 44 #ifndef LIBPACKET_PACKET_SERVER_H_45 #define LIBPACKET_PACKET_SERVER_H_42 #ifndef __NET_PACKET_SERVER_H__ 43 #define __NET_PACKET_SERVER_H__ 46 44 47 45 #include <ipc/ipc.h> 48 46 49 extern int packet_server_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, 50 int *); 47 /** Processes the packet server message. 48 * @param[in] callid The message identifier. 49 * @param[in] call The message parameters. 50 * @param[out] answer The message answer parameters. 51 * @param[out] answer_count The last parameter for the actual answer in the answer parameter. 52 * @returns EOK on success. 53 * @returns ENOMEM if there is not enough memory left. 54 * @returns ENOENT if there is no such packet as in the packet message parameter.. 55 * @returns ENOTSUP if the message is not known. 56 * @returns Other error codes as defined for the packet_release_wrapper() function. 57 */ 58 extern int packet_server_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 51 59 52 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.