Ignore:
Timestamp:
2010-03-07T22:51:38Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3
Parents:
b5cbff4 (diff), 31c80a5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

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

    rb5cbff4 r71b00dcc  
    6868        /** Reserved packet prefix length.
    6969         */
    70         size_t                  prefix;
     70        size_t prefix;
    7171        /** Maximal packet content length.
    7272         */
    73         size_t                  content;
     73        size_t content;
    7474        /** Reserved packet suffix length.
    7575         */
    76         size_t                  suffix;
     76        size_t suffix;
    7777        /** Maximal packet address length.
    7878         */
    79         size_t                  addr_len;
     79        size_t addr_len;
    8080};
    8181
     
    8989 *  @returns NULL if the mapping does not exist.
    9090 */
    91 packet_t        pm_find( packet_id_t packet_id );
     91packet_t pm_find(packet_id_t packet_id);
    9292
    9393/** Adds the packet mapping.
     
    9898 *  @returns ENOMEM if there is not enough memory left.
    9999 */
    100 int     pm_add( packet_t packet );
     100int pm_add(packet_t packet);
    101101
    102102/** Initializes the packet map.
     
    104104 *  @returns ENOMEM if there is not enough memory left.
    105105 */
    106 int     pm_init( void );
     106int pm_init(void);
    107107
    108108/** Releases the packet map.
    109109 */
    110 void    pm_destroy( void );
     110void pm_destroy(void);
    111111
    112112/** Add packet to the sorted queue.
     
    121121 *  @returns EINVAL if the packet is not valid.
    122122 */
    123 int     pq_add( packet_t * first, packet_t packet, size_t order, size_t metric );
     123int pq_add(packet_t * first, packet_t packet, size_t order, size_t metric);
    124124
    125125/** Finds the packet with the given order.
     
    130130 *  @returns NULL if the packet is not found.
    131131 */
    132 packet_t        pq_find( packet_t first, size_t order );
     132packet_t pq_find(packet_t first, size_t order);
    133133
    134134/** Inserts packet after the given one.
     
    138138 *  @returns EINVAL if etiher of the packets is invalid.
    139139 */
    140 int     pq_insert_after( packet_t packet, packet_t new_packet );
     140int pq_insert_after(packet_t packet, packet_t new_packet);
    141141
    142142/** Detach the packet from the queue.
     
    146146 *  @returns NULL if the packet is not valid.
    147147 */
    148 packet_t        pq_detach( packet_t packet );
     148packet_t pq_detach(packet_t packet);
    149149
    150150/** Sets the packet order and metric attributes.
     
    155155 *  @returns EINVAL if the packet is invalid..
    156156 */
    157 int     pq_set_order( packet_t packet, size_t order, size_t metric );
     157int pq_set_order(packet_t packet, size_t order, size_t metric);
    158158
    159159/** Sets the packet order and metric attributes.
     
    164164 *  @returns EINVAL if the packet is invalid..
    165165 */
    166 int     pq_get_order( packet_t packet, size_t * order, size_t * metric );
     166int pq_get_order(packet_t packet, size_t * order, size_t * metric);
    167167
    168168/** Releases the whole queue.
     
    171171 *  @param[in] packet_release The releasing function called for each of the packets after its detachment.
    172172 */
    173 void    pq_destroy( packet_t first, void ( * packet_release )( packet_t packet ));
     173void pq_destroy(packet_t first, void (*packet_release)(packet_t packet));
    174174
    175175/** Returns the next packet in the queue.
     
    179179 *  @returns NULL if the packet is not valid.
    180180 */
    181 packet_t        pq_next( packet_t packet );
     181packet_t pq_next(packet_t packet);
    182182
    183183/** Returns the previous packet in the queue.
     
    187187 *  @returns NULL if the packet is not valid.
    188188 */
    189 packet_t        pq_previous( packet_t packet );
     189packet_t pq_previous(packet_t packet);
    190190
    191191/*@}*/
Note: See TracChangeset for help on using the changeset viewer.