Cleanup argument names in methods and events interfaces

First method argument is object, first event argument is data.

Closes !963
This commit is contained in:
Quentin Wenger 2021-09-27 15:09:32 +02:00 committed by Wim Taymans
parent d3ea3142e1
commit 22fc9eec35
55 changed files with 636 additions and 636 deletions

View file

@ -259,7 +259,7 @@ struct pw_client_node0_events {
* \param memfd the fd of the memory
* \param flags flags for the \a memfd
*/
void (*add_mem) (void *object,
void (*add_mem) (void *data,
uint32_t mem_id,
uint32_t type,
int memfd,
@ -275,7 +275,7 @@ struct pw_client_node0_events {
* \param writefd fd for signal data can be written
* \param transport the shared transport area
*/
void (*transport) (void *object,
void (*transport) (void *data,
uint32_t node_id,
int readfd,
int writefd,
@ -291,20 +291,20 @@ struct pw_client_node0_events {
* \param flags parameter flags
* \param param the param to set
*/
void (*set_param) (void *object, uint32_t seq,
void (*set_param) (void *data, uint32_t seq,
uint32_t id, uint32_t flags,
const struct spa_pod *param);
/**
* Receive an event from the client node
* \param event the received event */
void (*event) (void *object, const struct spa_event *event);
void (*event) (void *data, const struct spa_event *event);
/**
* Notify of a new node command
*
* \param seq a sequence number
* \param command the command
*/
void (*command) (void *object, uint32_t seq, const struct spa_command *command);
void (*command) (void *data, uint32_t seq, const struct spa_command *command);
/**
* A new port was added to the node
*
@ -315,7 +315,7 @@ struct pw_client_node0_events {
* \param direction the direction of the port
* \param port_id the new port id
*/
void (*add_port) (void *object,
void (*add_port) (void *data,
uint32_t seq,
enum spa_direction direction,
uint32_t port_id);
@ -326,7 +326,7 @@ struct pw_client_node0_events {
* \param direction a port direction
* \param port_id the remove port id
*/
void (*remove_port) (void *object,
void (*remove_port) (void *data,
uint32_t seq,
enum spa_direction direction,
uint32_t port_id);
@ -340,7 +340,7 @@ struct pw_client_node0_events {
* \param flags flags used when setting the param
* \param param the new param
*/
void (*port_set_param) (void *object,
void (*port_set_param) (void *data,
uint32_t seq,
enum spa_direction direction,
uint32_t port_id,
@ -355,7 +355,7 @@ struct pw_client_node0_events {
* \param n_buffer the number of buffers
* \param buffers and array of buffer descriptions
*/
void (*port_use_buffers) (void *object,
void (*port_use_buffers) (void *data,
uint32_t seq,
enum spa_direction direction,
uint32_t port_id,
@ -368,7 +368,7 @@ struct pw_client_node0_events {
* \param port_id the port id
* \param command the command
*/
void (*port_command) (void *object,
void (*port_command) (void *data,
enum spa_direction direction,
uint32_t port_id,
const struct spa_command *command);
@ -384,7 +384,7 @@ struct pw_client_node0_events {
* \param offset offset of io area in memory
* \param size size of the io area
*/
void (*port_set_io) (void *object,
void (*port_set_io) (void *data,
uint32_t seq,
enum spa_direction direction,
uint32_t port_id,