X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fqueue.h;h=8221c447c18a4a48a66c8c3f9d78bf814a9ada53;hb=2c775287e298648ac695df4e66cffe99f1b497c1;hp=cecc15ddb3f7f77fd62b2ea810a94cc3878afac7;hpb=eda13285783d788d08e4911f44730829aaadd433;p=openvswitch diff --git a/include/queue.h b/include/queue.h index cecc15dd..8221c447 100644 --- a/include/queue.h +++ b/include/queue.h @@ -35,17 +35,17 @@ #define QUEUE_H 1 /* Packet queue. */ -struct queue { +struct ofp_queue { int n; /* Number of queued packets. */ struct ofpbuf *head; /* First queued packet, null if n == 0. */ struct ofpbuf *tail; /* Last queued packet, null if n == 0. */ }; -void queue_init(struct queue *); -void queue_destroy(struct queue *); -void queue_clear(struct queue *); -void queue_advance_head(struct queue *, struct ofpbuf *next); -void queue_push_tail(struct queue *, struct ofpbuf *); -struct ofpbuf *queue_pop_head(struct queue *); +void queue_init(struct ofp_queue *); +void queue_destroy(struct ofp_queue *); +void queue_clear(struct ofp_queue *); +void queue_advance_head(struct ofp_queue *, struct ofpbuf *next); +void queue_push_tail(struct ofp_queue *, struct ofpbuf *); +struct ofpbuf *queue_pop_head(struct ofp_queue *); #endif /* queue.h */