Changes in uspace/lib/packet/include/packet_server.h [f63a591d:515a00da] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/packet/include/packet_server.h
rf63a591d r515a00da 27 27 */ 28 28 29 /** @addtogroup packet30 * 29 /** @addtogroup libpacket 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 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() 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() 40 42 */ 41 43 42 #ifndef __NET_PACKET_SERVER_H__43 #define __NET_PACKET_SERVER_H__44 #ifndef LIBPACKET_PACKET_SERVER_H_ 45 #define LIBPACKET_PACKET_SERVER_H_ 44 46 45 47 #include <ipc/ipc.h> 46 48 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); 49 extern int packet_server_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, 50 int *); 59 51 60 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.