summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/dynarray.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-27 19:11:28 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-27 19:11:28 +0200
commitc0f97aa580a48d790361258d44775828e2eff134 (patch)
tree6bf9622e7c54c7c83fa0b2b1268db3eeda0d1b7f /src/pulsecore/dynarray.h
parent12278f4c839b235913e8faf4ec01acb63ea31a56 (diff)
some modernizations
Diffstat (limited to 'src/pulsecore/dynarray.h')
-rw-r--r--src/pulsecore/dynarray.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pulsecore/dynarray.h b/src/pulsecore/dynarray.h
index 82b42082..9a8e64ea 100644
--- a/src/pulsecore/dynarray.h
+++ b/src/pulsecore/dynarray.h
@@ -1,10 +1,10 @@
-#ifndef foodynarrayhfoo
-#define foodynarrayhfoo
+#ifndef foopulsecoredynarrayhfoo
+#define foopulsecoredynarrayhfoo
/***
This file is part of PulseAudio.
- Copyright 2004-2006 Lennart Poettering
+ Copyright 2004-2008 Lennart Poettering
PulseAudio is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
@@ -22,6 +22,8 @@
USA.
***/
+#include <pulsecore/idxset.h>
+
typedef struct pa_dynarray pa_dynarray;
/* Implementation of a simple dynamically sized array. The array
@@ -32,7 +34,7 @@ pa_dynarray* pa_dynarray_new(void);
/* Free the array calling the specified function for every entry in
* the array. The function may be NULL. */
-void pa_dynarray_free(pa_dynarray* a, void (*func)(void *p, void *userdata), void *userdata);
+void pa_dynarray_free(pa_dynarray* a, pa_free2_cb_t free_func, void *userdata);
/* Store p at position i in the array */
void pa_dynarray_put(pa_dynarray*a, unsigned i, void *p);