clean up proxy and resource api

Remove override for resources, it can't work in general.
Rename method to add_object_listener to add a listener for
events/methods from the remote object.
Rename some methods to _call to call the interface and _notify
to notify the listeners.
Remove unused client event to be notified of resource
implementations.
This commit is contained in:
Wim Taymans 2019-05-29 10:39:24 +02:00
parent b1ea91fa1d
commit e9ecc47696
25 changed files with 196 additions and 249 deletions

View file

@ -40,7 +40,6 @@ static void test_abi(void)
void (*free) (void *data);
void (*info_changed) (void *data, const struct pw_client_info *info);
void (*resource_added) (void *data, struct pw_resource *resource);
void (*resource_impl) (void *data, struct pw_resource *resource);
void (*resource_removed) (void *data, struct pw_resource *resource);
void (*busy_changed) (void *data, bool busy);
} test = { PW_VERSION_CLIENT_EVENTS, NULL };
@ -49,7 +48,6 @@ static void test_abi(void)
TEST_FUNC(ev, test, free);
TEST_FUNC(ev, test, info_changed);
TEST_FUNC(ev, test, resource_added);
TEST_FUNC(ev, test, resource_impl);
TEST_FUNC(ev, test, resource_removed);
TEST_FUNC(ev, test, busy_changed);