107,6 → 107,14 |
*/ |
packet_t pq_add( packet_t first, packet_t packet, int order, size_t metric ); |
|
/** Inserts packet after the given one. |
* @param packet The packet in the queue. Input parameter. |
* @param new_packet The new packet to be inserted. |
* @returns EOK on success. |
* @returns EINVAL if etiher of the packets is invalid. |
*/ |
int pq_insert_after( packet_t packet, packet_t new_packet ); |
|
/** Detach the packet from the queue. |
* @param packet The packet to be detached. Input parameter. |
* @returns The next packet in the queue. If the packet is the first one of the queue, this becomes the new first one. |