52,19 → 52,21 |
*/ |
typedef packet_t * packet_ref; |
|
/** Packet operation mode type. |
/** Type of the received packet. |
*/ |
typedef enum packet_mode packet_mode_t; |
|
/** Packet operation mode. |
enum packet_type{ |
/** The packet is from the local subsystem. |
*/ |
enum packet_mode{ |
/** The packet is processed in one direction and can be released at any time. |
PACKET_SELF, |
/** The packet is for all hosts. |
*/ |
PM_ONE_WAY, |
/** The packet should be returned at the end of the processing back to its initiator. |
PACKET_BROADCAST, |
/** The packet target complies with the local subsystem filter. |
*/ |
PM_RETURN |
PACKET_MULTICAST, |
/** The packet is for the local subsystem from other host. |
*/ |
PACKET_OTHERHOST |
}; |
|
/** Finds the packet mapping. |
108,6 → 110,7 |
/** 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. |
* @returns NULL if there is no packet left. |
* @returns NULL if the packet is not valid. |
*/ |
packet_t pq_detach( packet_t packet ); |