Changeset 46d4d9f in mainline for uspace/lib/c/include/net/packet.h


Ignore:
Timestamp:
2010-11-20T17:04:59Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd5046dd
Parents:
fdbc3ff
Message:

Redefine packet_t to be just a type alias for struct packet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/net/packet.h

    rfdbc3ff r46d4d9f  
    4646 * @see packet
    4747 */
    48 typedef struct packet * packet_t;
     48typedef struct packet packet_t;
    4949
    5050/** Type definition of the packet dimension.
     
    6969/*@{*/
    7070
    71 extern packet_t pm_find(packet_id_t);
    72 extern int pm_add(packet_t);
     71extern packet_t *pm_find(packet_id_t);
     72extern int pm_add(packet_t *);
    7373extern int pm_init(void);
    7474extern void pm_destroy(void);
    7575
    76 extern int pq_add(packet_t *, packet_t, size_t, size_t);
    77 extern packet_t pq_find(packet_t, size_t);
    78 extern int pq_insert_after(packet_t, packet_t);
    79 extern packet_t pq_detach(packet_t);
    80 extern int pq_set_order(packet_t, size_t, size_t);
    81 extern int pq_get_order(packet_t, size_t *, size_t *);
    82 extern void pq_destroy(packet_t, void (*)(packet_t));
    83 extern packet_t pq_next(packet_t);
    84 extern packet_t pq_previous(packet_t);
     76extern int pq_add(packet_t **, packet_t *, size_t, size_t);
     77extern packet_t *pq_find(packet_t *, size_t);
     78extern int pq_insert_after(packet_t *, packet_t *);
     79extern packet_t *pq_detach(packet_t *);
     80extern int pq_set_order(packet_t *, size_t, size_t);
     81extern int pq_get_order(packet_t *, size_t *, size_t *);
     82extern void pq_destroy(packet_t *, void (*)(packet_t *));
     83extern packet_t *pq_next(packet_t *);
     84extern packet_t *pq_previous(packet_t *);
    8585
    8686/*@}*/
Note: See TracChangeset for help on using the changeset viewer.