Ignore:
Timestamp:
2010-02-18T10:00:30Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e326edc
Parents:
b8da2a3 (diff), 91478aa (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 the networking branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/structures/packet/packet.h

    rb8da2a3 rca2d142  
    5353typedef packet_t *              packet_ref;
    5454
     55/** Type definition of the packet dimension.
     56 *  @see packet_dimension
     57 */
     58typedef struct packet_dimension packet_dimension_t;
     59
     60/** Type definition of the packet dimension pointer.
     61 *  @see packet_dimension
     62 */
     63typedef packet_dimension_t *    packet_dimension_ref;
     64
     65/** Packet dimension.
     66 */
     67struct packet_dimension{
     68        /** Reserved packet prefix length.
     69         */
     70        size_t                  prefix;
     71        /** Maximal packet content length.
     72         */
     73        size_t                  content;
     74        /** Reserved packet suffix length.
     75         */
     76        size_t                  suffix;
     77        /** Maximal packet address length.
     78         */
     79        size_t                  addr_len;
     80};
     81
    5582/** @name Packet management system interface
    5683 */
     
    86113 *  The queue is sorted in the ascending order.
    87114 *  The packet is inserted right before the packets of the same order value.
    88  *  @param[in] first The first packet of the queue. May be NULL.
     115 *  @param[in,out] first The first packet of the queue. Sets the first packet of the queue. The original first packet may be shifted by the new packet.
    89116 *  @param[in] packet The packet to be added.
    90117 *  @param[in] order The packet order value.
    91118 *  @param[in] metric The metric value of the packet.
    92  *  @returns The first packet of the queue. The original first packet may be shifted by the new packet.
    93  *  @returns NULL if the packet is not valid.
     119 *  @returns EOK on success.
     120 *  @returns EINVAL if the first parameter is NULL.
     121 *  @returns EINVAL if the packet is not valid.
    94122 */
    95 packet_t        pq_add( packet_t first, packet_t packet, size_t order, size_t metric );
     123int     pq_add( packet_t * first, packet_t packet, size_t order, size_t metric );
    96124
    97125/** Finds the packet with the given order.
Note: See TracChangeset for help on using the changeset viewer.