mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-17 07:00:03 -05:00
cleanups
Follow the data/size argument order convention to make the api more consistent.
This commit is contained in:
parent
7f931464e8
commit
5bebfe022b
50 changed files with 253 additions and 252 deletions
|
|
@ -37,11 +37,11 @@ struct spa_dict_item {
|
|||
};
|
||||
|
||||
struct spa_dict {
|
||||
uint32_t n_items;
|
||||
const struct spa_dict_item *items;
|
||||
uint32_t n_items;
|
||||
};
|
||||
|
||||
#define SPA_DICT_INIT(n_items,items) { n_items, items }
|
||||
#define SPA_DICT_INIT(items,n_items) { items, n_items }
|
||||
|
||||
#define spa_dict_for_each(item, dict) \
|
||||
for ((item) = (dict)->items; \
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@ static inline int32_t spa_ringbuffer_get_read_index(struct spa_ringbuffer *rbuf,
|
|||
*
|
||||
* \param rbuf a #struct spa_ringbuffer
|
||||
* \param buffer memory to read from
|
||||
* \param size the size of \a memory
|
||||
* \param offset offset in \a memory to read from
|
||||
* \param size the size of \a buffer
|
||||
* \param offset offset in \a buffer to read from
|
||||
* \param data destination memory
|
||||
* \param len number of bytes to read
|
||||
*/
|
||||
|
|
@ -136,8 +136,8 @@ static inline int32_t spa_ringbuffer_get_write_index(struct spa_ringbuffer *rbuf
|
|||
*
|
||||
* \param rbuf a spa_ringbuffer
|
||||
* \param buffer memory to write to
|
||||
* \param size the size of \a memory
|
||||
* \param offset offset in \a memory to write to
|
||||
* \param size the size of \a buffer
|
||||
* \param offset offset in \a buffer to write to
|
||||
* \param data source memory
|
||||
* \param len number of bytes to write
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue