PipeWire
0.3.45
|
Core events. More...
Data Fields | |
uint32_t | version |
void(* | info )(void *object, const struct pw_core_info *info) |
Notify new core info. More... | |
void(* | done )(void *object, uint32_t id, int seq) |
Emit a done event. More... | |
void(* | ping )(void *object, uint32_t id, int seq) |
Emit a ping event. More... | |
void(* | error )(void *object, uint32_t id, int seq, int res, const char *message) |
Fatal error event. More... | |
void(* | remove_id )(void *object, uint32_t id) |
Remove an object ID. More... | |
void(* | bound_id )(void *object, uint32_t id, uint32_t global_id) |
Notify an object binding. More... | |
void(* | add_mem )(void *object, uint32_t id, uint32_t type, int fd, uint32_t flags) |
Add memory for a client. More... | |
void(* | remove_mem )(void *object, uint32_t id) |
Remove memory for a client. More... | |
Core events.
uint32_t pw_core_events::version |
void(* pw_core_events::info) (void *object, const struct pw_core_info *info) |
Notify new core info.
This event is emitted when first bound to the core or when the hello method is called.
info | new core info |
void(* pw_core_events::done) (void *object, uint32_t id, int seq) |
Emit a done event.
The done event is emitted as a result of a sync method with the same seq number.
seq | the seq number passed to the sync method call |
void(* pw_core_events::ping) (void *object, uint32_t id, int seq) |
Emit a ping event.
The client should reply with a pong reply with the same seq number.
void(* pw_core_events::error) (void *object, uint32_t id, int seq, int res, const char *message) |
Fatal error event.
The error event is sent out when a fatal (non-recoverable) error has occurred. The id argument is the proxy object where the error occurred, most often in response to a request to that object. The message is a brief description of the error, for (debugging) convenience.
This event is usually also emitted on the proxy object with id.
id | object where the error occurred |
seq | the sequence number that generated the error |
res | error code |
message | error description |
void(* pw_core_events::remove_id) (void *object, uint32_t id) |
Remove an object ID.
This event is used internally by the object ID management logic. When a client deletes an object, the server will send this event to acknowledge that it has seen the delete request. When the client receives this event, it will know that it can safely reuse the object ID.
id | deleted object ID |
void(* pw_core_events::bound_id) (void *object, uint32_t id, uint32_t global_id) |
Notify an object binding.
This event is emitted when a local object ID is bound to a global ID. It is emitted before the global becomes visible in the registry.
id | bound object ID |
global_id | the global id bound to |
void(* pw_core_events::add_mem) (void *object, uint32_t id, uint32_t type, int fd, uint32_t flags) |
Add memory for a client.
Memory is given to a client as fd of a certain memory type.
Further references to this fd will be made with the per memory unique identifier id.
id | the unique id of the memory |
type | the memory type, one of enum spa_data_type |
fd | the file descriptor |
flags | extra flags |
void(* pw_core_events::remove_mem) (void *object, uint32_t id) |
Remove memory for a client.
id | the memory id to remove |