Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/packet/include/packet_server.h

    r515a00da rf63a591d  
    2727 */
    2828
    29 /** @addtogroup libpacket
    30  * @{
     29/** @addtogroup packet
     30 *  @{
    3131 */
    3232
    3333/** @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()
    4240 */
    4341
    44 #ifndef LIBPACKET_PACKET_SERVER_H_
    45 #define LIBPACKET_PACKET_SERVER_H_
     42#ifndef __NET_PACKET_SERVER_H__
     43#define __NET_PACKET_SERVER_H__
    4644
    4745#include <ipc/ipc.h>
    4846
    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 */
     58extern int packet_server_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);
    5159
    5260#endif
Note: See TracChangeset for help on using the changeset viewer.