object-manager: refactor to be able to track locally created proxies
There are 3 kinds of WpProxy objects: * the ones that are created as a result of binding a global from the registry * the ones that are created as a result of calling into a remote factory (wp_node_new_from_factory, etc...) * the ones that are a local implementation of an object (WpImplNode, etc...) and are exported Previously the object manager was only able to track the first kind. With these changes we can now also have globals associated with WpProxies that were created earlier (and caused the creation of the global). This saves some resources and reduces round-trips (in case client code wants to change properties of an object that is locally implemented, it shouldn't need to do a round-trip through the server)
Showing
- lib/wp/core.c 4 additions, 327 deletionslib/wp/core.c
- lib/wp/object-manager.c 471 additions, 58 deletionslib/wp/object-manager.c
- lib/wp/object-manager.h 1 addition, 5 deletionslib/wp/object-manager.h
- lib/wp/policy.c 5 additions, 4 deletionslib/wp/policy.c
- lib/wp/private.h 54 additions, 20 deletionslib/wp/private.h
- lib/wp/proxy.c 13 additions, 20 deletionslib/wp/proxy.c
- modules/module-client-permissions.c 1 addition, 1 deletionmodules/module-client-permissions.c
- modules/module-config-endpoint/context.c 1 addition, 1 deletionmodules/module-config-endpoint/context.c
- modules/module-config-static-nodes/context.c 1 addition, 1 deletionmodules/module-config-static-nodes/context.c
- modules/module-pipewire/audio-softdsp-endpoint/stream.c 1 addition, 1 deletionmodules/module-pipewire/audio-softdsp-endpoint/stream.c
- modules/module-session.c 3 additions, 2 deletionsmodules/module-session.c
- tests/wp/endpoint.c 4 additions, 3 deletionstests/wp/endpoint.c
- tests/wp/proxy.c 2 additions, 2 deletionstests/wp/proxy.c
- tests/wp/session.c 4 additions, 3 deletionstests/wp/session.c
- tools/wireplumber-cli.c 6 additions, 6 deletionstools/wireplumber-cli.c
Loading
Please register or sign in to comment