Ignore:
Timestamp:
2010-10-24T21:32:54Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
57f737a
Parents:
95e3fd0b
Message:

Cleanup libpacket.

File:
1 edited

Legend:

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

    r95e3fd0b r515a00da  
    2727 */
    2828
    29 /** @addtogroup packet
    30  *  @{
     29/** @addtogroup libpacket
     30 * @{
    3131 */
    3232
    3333/** @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()
    4042 */
    4143
    42 #ifndef __NET_PACKET_SERVER_H__
    43 #define __NET_PACKET_SERVER_H__
     44#ifndef LIBPACKET_PACKET_SERVER_H_
     45#define LIBPACKET_PACKET_SERVER_H_
    4446
    4547#include <ipc/ipc.h>
    4648
    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);
     49extern int packet_server_message(ipc_callid_t, ipc_call_t *, ipc_call_t *,
     50    int *);
    5951
    6052#endif
Note: See TracChangeset for help on using the changeset viewer.