Changeset d52fbaf in mainline


Ignore:
Timestamp:
2010-10-08T19:03:28Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0a866eeb
Parents:
d9e2e0e
Message:

Move packet_messages.h to the standard library.

Location:
uspace/lib
Files:
2 edited
1 moved

Legend:

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

    rd9e2e0e rd52fbaf  
    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
  • uspace/lib/net/generic/packet_remote.c

    rd9e2e0e rd52fbaf  
    4040#include <err.h>
    4141#include <ipc/ipc.h>
     42#include <ipc/packet.h>
    4243#include <sys/mman.h>
    4344
     
    4647#include <packet/packet_client.h>
    4748#include <packet/packet_header.h>
    48 #include <packet/packet_messages.h>
    4949#include <packet_remote.h>
    5050
  • uspace/lib/socket/packet/packet_server.c

    rd9e2e0e rd52fbaf  
    4242#include <fibril_synch.h>
    4343#include <unistd.h>
     44#include <sys/mman.h>
    4445
    4546#include <ipc/ipc.h>
    46 #include <sys/mman.h>
     47#include <ipc/packet.h>
    4748
    4849#include <net_messages.h>
     
    5051#include <packet/packet_client.h>
    5152#include <packet/packet_header.h>
    52 #include <packet/packet_messages.h>
    5353#include <packet/packet_server.h>
    5454
Note: See TracChangeset for help on using the changeset viewer.