Lines Matching refs:idx
60 /* Store a new item in the idxset. The index of the item is returned in *idx */
61 int pa_idxset_put(pa_idxset*s, void *p, uint32_t *idx);
63 /* Get the entry by its idx */
64 void* pa_idxset_get_by_index(pa_idxset*s, uint32_t idx);
66 /* Get the entry by its data. The index is returned in *idx */
67 void* pa_idxset_get_by_data(pa_idxset*s, const void *p, uint32_t *idx);
70 void* pa_idxset_remove_by_index(pa_idxset*s, uint32_t idx);
73 void* pa_idxset_remove_by_data(pa_idxset*s, const void *p, uint32_t *idx);
80 next following. The function is best called with *idx =
84 void* pa_idxset_rrobin(pa_idxset *s, uint32_t *idx);
87 void *pa_idxset_iterate(pa_idxset *s, void **state, uint32_t *idx);
89 /* Return the oldest entry in the idxset and remove it. If idx is not NULL fill in its index in *idx */
90 void* pa_idxset_steal_first(pa_idxset *s, uint32_t *idx);
92 /* Return the oldest entry in the idxset. Fill in its index in *idx. */
93 void* pa_idxset_first(pa_idxset *s, uint32_t *idx);
95 /* Return the entry following the entry indexed by *idx. After the
99 void *pa_idxset_next(pa_idxset *s, uint32_t *idx);
113 #define PA_IDXSET_FOREACH(e, s, idx) \
114 for ((e) = pa_idxset_first((s), &(idx)); (e); (e) = pa_idxset_next((s), &(idx)))