X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/496be212ad645999647c432a856c906b86d41487..a9c85074cbf6903e5eb9789f470f6c2c3ee40734:/src/pulsecore/idxset.h diff --git a/src/pulsecore/idxset.h b/src/pulsecore/idxset.h index a6179fcf..2d01fb47 100644 --- a/src/pulsecore/idxset.h +++ b/src/pulsecore/idxset.h @@ -65,7 +65,7 @@ int pa_idxset_put(pa_idxset*s, void *p, uint32_t *idx); /* Get the entry by its idx */ void* pa_idxset_get_by_index(pa_idxset*s, uint32_t idx); -/* Get the entry by its data. The idx is returned in *index */ +/* Get the entry by its data. The index is returned in *idx */ void* pa_idxset_get_by_data(pa_idxset*s, const void *p, uint32_t *idx); /* Similar to pa_idxset_get_by_index(), but removes the entry from the idxset. */ @@ -103,6 +103,9 @@ unsigned pa_idxset_size(pa_idxset*s); /* Return TRUE of the idxset is empty */ pa_bool_t pa_idxset_isempty(pa_idxset *s); +/* Duplicate the idxset. This will not copy the actual indexes */ +pa_idxset *pa_idxset_copy(pa_idxset *s); + /* A macro to ease iteration through all entries */ #define PA_IDXSET_FOREACH(e, s, idx) \ for ((e) = pa_idxset_first((s), &(idx)); (e); (e) = pa_idxset_next((s), &(idx)))