handle: make method to get size

This commit is contained in:
Wim Taymans 2018-04-09 10:06:17 +02:00
parent 11f42d6262
commit de36330917
37 changed files with 198 additions and 39 deletions

View file

@ -479,6 +479,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,
@ -545,7 +552,7 @@ const struct spa_handle_factory spa_alsa_monitor_factory = {
SPA_VERSION_HANDLE_FACTORY,
NAME,
NULL,
sizeof(struct impl),
impl_get_size,
impl_init,
impl_enum_interface_info,
};