mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
handle: make method to get size
This commit is contained in:
parent
11f42d6262
commit
de36330917
37 changed files with 198 additions and 39 deletions
|
|
@ -690,6 +690,13 @@ static int impl_clear(struct spa_handle *handle)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static size_t
|
||||
impl_get_size(const struct spa_handle_factory *factory,
|
||||
const struct spa_dict *params)
|
||||
{
|
||||
return sizeof(struct impl);
|
||||
}
|
||||
|
||||
static int
|
||||
impl_init(const struct spa_handle_factory *factory,
|
||||
struct spa_handle *handle,
|
||||
|
|
@ -766,7 +773,7 @@ static const struct spa_handle_factory loop_factory = {
|
|||
SPA_VERSION_HANDLE_FACTORY,
|
||||
NAME,
|
||||
NULL,
|
||||
sizeof(struct impl),
|
||||
impl_get_size,
|
||||
impl_init,
|
||||
impl_enum_interface_info
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue