Rev 4704 | Rev 4731 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4704 | Rev 4705 | ||
|---|---|---|---|
| Line 75... | Line 75... | ||
| 75 | * @param packet The packet to be trimmed. Input parameter. |
75 | * @param packet The packet to be trimmed. Input parameter. |
| 76 | * @param prefix The type of the prefix to be removed from the beginning of the packet content. Input parameter. |
76 | * @param prefix The type of the prefix to be removed from the beginning of the packet content. Input parameter. |
| 77 | * @param suffix The type of the suffix to be removed from the end of the packet content. Input parameter. |
77 | * @param suffix The type of the suffix to be removed from the end of the packet content. Input parameter. |
| 78 | * @returns EOK on success. |
78 | * @returns EOK on success. |
| 79 | * @returns EINVAL if the packet is not valid. |
79 | * @returns EINVAL if the packet is not valid. |
| 80 | * @returns EINVAL if there is not enough memory left. |
80 | * @returns ENOMEM if there is not enough memory left. |
| 81 | */ |
81 | */ |
| 82 | #define PACKET_TRIM( packet, prefix, suffix ) packet_trim(( packet ), sizeof( prefix ), sizeof( suffix )) |
82 | #define PACKET_TRIM( packet, prefix, suffix ) packet_trim(( packet ), sizeof( prefix ), sizeof( suffix )) |
| 83 | 83 | ||
| 84 | /** Allocates the specified space right before the actual packet content and returns its pointer. |
84 | /** Allocates the specified space right before the actual packet content and returns its pointer. |
| 85 | * @param packet The packet to be used. Input parameter. |
85 | * @param packet The packet to be used. Input parameter. |