From fa751e537db75108f9a1597d83a4e1093173fc28 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 21 Nov 2004 02:43:05 +0000 Subject: some commenting git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@298 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/queue.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'polyp/queue.h') diff --git a/polyp/queue.h b/polyp/queue.h index 0b72f37d..a739ab74 100644 --- a/polyp/queue.h +++ b/polyp/queue.h @@ -24,8 +24,14 @@ struct pa_queue; +/* A simple implementation of the abstract data type queue. Stores + * pointers as members. The memory has to be managed by the caller. */ + struct pa_queue* pa_queue_new(void); + +/* Free the queue and run the specified callback function for every remaining entry. The callback function may be NULL. */ void pa_queue_free(struct pa_queue* q, void (*destroy)(void *p, void *userdata), void *userdata); + void pa_queue_push(struct pa_queue *q, void *p); void* pa_queue_pop(struct pa_queue *q); -- cgit