Rev 4243 | Rev 4704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4243 | Rev 4505 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | * @returns The first packet of the queue. The original first packet may be shifted by the new packet. |
105 | * @returns The first packet of the queue. The original first packet may be shifted by the new packet. |
106 | * @returns NULL if the packet is not valid. |
106 | * @returns NULL if the packet is not valid. |
107 | */ |
107 | */ |
108 | packet_t pq_add( packet_t first, packet_t packet, int order, size_t metric ); |
108 | packet_t pq_add( packet_t first, packet_t packet, int order, size_t metric ); |
109 | 109 | ||
- | 110 | /** Inserts packet after the given one. |
|
- | 111 | * @param packet The packet in the queue. Input parameter. |
|
- | 112 | * @param new_packet The new packet to be inserted. |
|
- | 113 | * @returns EOK on success. |
|
- | 114 | * @returns EINVAL if etiher of the packets is invalid. |
|
- | 115 | */ |
|
- | 116 | int pq_insert_after( packet_t packet, packet_t new_packet ); |
|
- | 117 | ||
110 | /** Detach the packet from the queue. |
118 | /** Detach the packet from the queue. |
111 | * @param packet The packet to be detached. Input parameter. |
119 | * @param packet The packet to be detached. Input parameter. |
112 | * @returns The next packet in the queue. If the packet is the first one of the queue, this becomes the new first one. |
120 | * @returns The next packet in the queue. If the packet is the first one of the queue, this becomes the new first one. |
113 | * @returns NULL if there is no packet left. |
121 | * @returns NULL if there is no packet left. |
114 | * @returns NULL if the packet is not valid. |
122 | * @returns NULL if the packet is not valid. |