mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
remote: remove obsolete exported event
We can now do the same and more with the bound event on the proxy.
This commit is contained in:
parent
a1801b690f
commit
fcd4ae3334
6 changed files with 16 additions and 32 deletions
|
|
@ -40,12 +40,10 @@ static void test_abi(void)
|
|||
void (*destroy) (void *data);
|
||||
void (*state_changed) (void *data, enum pw_remote_state old,
|
||||
enum pw_remote_state state, const char *error);
|
||||
void (*exported) (void *data, uint32_t proxy_id, uint32_t remote_id);
|
||||
} test = { PW_VERSION_REMOTE_EVENTS, NULL };
|
||||
|
||||
TEST_FUNC(ev, test, destroy);
|
||||
TEST_FUNC(ev, test, state_changed);
|
||||
TEST_FUNC(ev, test, exported);
|
||||
|
||||
spa_assert(PW_VERSION_REMOTE_EVENTS == 0);
|
||||
spa_assert(sizeof(ev) == sizeof(test));
|
||||
|
|
@ -70,17 +68,12 @@ static void remote_state_changed_error(void *data, enum pw_remote_state old,
|
|||
{
|
||||
spa_assert_not_reached();
|
||||
}
|
||||
static void remote_exported_error(void *data, uint32_t proxy_id, uint32_t global_id)
|
||||
{
|
||||
spa_assert_not_reached();
|
||||
}
|
||||
|
||||
static const struct pw_remote_events remote_events_error =
|
||||
{
|
||||
PW_VERSION_REMOTE_EVENTS,
|
||||
.destroy = remote_destroy_error,
|
||||
.state_changed = remote_state_changed_error,
|
||||
.exported = remote_exported_error,
|
||||
};
|
||||
|
||||
static int destroy_count = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue