Changeset ae972834 in mainline for uspace/lib/c/include/ipc/packet.h


Ignore:
Timestamp:
2010-10-08T21:47:40Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b278b4e
Parents:
c0e74b1 (diff), 368fb2c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jakub/helenos/net.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/packet.h

    rc0e74b1 rae972834  
    2727 */
    2828
    29 /** @addtogroup packet
     29/** @addtogroup libc
    3030 *  @{
    3131 */
     
    3535 */
    3636
    37 #ifndef __NET_PACKET_MESSAGES__
    38 #define __NET_PACKET_MESSAGES__
     37#ifndef LIBC_PACKET_MESSAGES_
     38#define LIBC_PACKET_MESSAGES_
    3939
    4040#include <ipc/ipc.h>
    4141#include <ipc/net.h>
    4242
    43 /** Packet server module messages.
    44  */
     43/** Packet server module messages. */
    4544typedef enum {
    4645        /** Create packet message with specified content length.
    47          *  @see packet_get_1()
     46         * @see packet_get_1()
    4847         */
    4948        NET_PACKET_CREATE_1 = NET_PACKET_FIRST,
    50         /** Create packet message with specified address length, prefix, content and suffix.
    51          *  @see packet_get_4()
     49       
     50        /**
     51         * Create packet message with specified address length, prefix, content
     52         * and suffix.
     53         * @see packet_get_4()
    5254         */
    5355        NET_PACKET_CREATE_4,
     56       
    5457        /** Get packet message.
    55          *  @see packet_return()
    56          */
     58         * @see packet_return() */
    5759        NET_PACKET_GET,
     60       
    5861        /** Get packet size message.
    59          *  @see packet_translate()
     62         * @see packet_translate()
    6063         */
    6164        NET_PACKET_GET_SIZE,
     65       
    6266        /** Release packet message.
    63          *  @see pq_release()
     67         * @see pq_release()
    6468         */
    6569        NET_PACKET_RELEASE
    6670} packet_messages;
    6771
    68 /** Returns the protocol service message parameter.
    69  */
    70 #define ARP_GET_PROTO(call)             (services_t) IPC_GET_ARG2(*call)
     72/** Returns the protocol service message parameter. */
     73#define ARP_GET_PROTO(call)     (services_t) IPC_GET_ARG2(*call)
    7174
    72 /** Returns the packet identifier message parameter.
    73  */
    74 #define IPC_GET_ID(call)                        (packet_id_t) IPC_GET_ARG1(*call)
     75/** Returns the packet identifier message parameter. */
     76#define IPC_GET_ID(call)        (packet_id_t) IPC_GET_ARG1(*call)
    7577
    76 /** Returns the maximal content length message parameter.
    77  */
    78 #define IPC_GET_CONTENT(call)           (size_t) IPC_GET_ARG1(*call)
     78/** Returns the maximal content length message parameter. */
     79#define IPC_GET_CONTENT(call)   (size_t) IPC_GET_ARG1(*call)
    7980
    80 /** Returns the maximal address length message parameter.
    81  */
     81/** Returns the maximal address length message parameter. */
    8282#define IPC_GET_ADDR_LEN(call)  (size_t) IPC_GET_ARG2(*call)
    8383
    84 /** Returns the maximal prefix length message parameter.
    85  */
    86 #define IPC_GET_PREFIX(call)            (size_t) IPC_GET_ARG3(*call)
     84/** Returns the maximal prefix length message parameter. */
     85#define IPC_GET_PREFIX(call)    (size_t) IPC_GET_ARG3(*call)
    8786
    88 /** Returns the maximal suffix length message parameter.
    89  */
    90 #define IPC_GET_SUFFIX(call)            (size_t) IPC_GET_ARG4(*call)
     87/** Returns the maximal suffix length message parameter. */
     88#define IPC_GET_SUFFIX(call)    (size_t) IPC_GET_ARG4(*call)
    9189
    9290#endif
Note: See TracChangeset for help on using the changeset viewer.