Ignore:
Timestamp:
2010-02-17T21:15:03Z (15 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6b7b198
Parents:
bfd7aac
Message:
  • change in the pq_add interface
File:
1 edited

Legend:

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

    rbfd7aac r1e2e0c1e  
    8686 *  The queue is sorted in the ascending order.
    8787 *  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.
     88 *  @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.
    8989 *  @param[in] packet The packet to be added.
    9090 *  @param[in] order The packet order value.
    9191 *  @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.
     92 *  @returns EOK on success.
     93 *  @returns EINVAL if the first parameter is NULL.
     94 *  @returns EINVAL if the packet is not valid.
    9495 */
    95 packet_t        pq_add( packet_t first, packet_t packet, size_t order, size_t metric );
     96int     pq_add( packet_t * first, packet_t packet, size_t order, size_t metric );
    9697
    9798/** Finds the packet with the given order.
Note: See TracChangeset for help on using the changeset viewer.