9f71a4ad85
As described in e10c9f89826bb: "weston-debug: Introduce...", the subscriber object need further functionality to make use of it. Current form of the weston-debug protocol would not need this, as it creates underneath a new subscriber each time a client connects and subscriptions are created/destroyed automatically with the help of wayland protocol. For other types of streams, we require to manually create a subscriber and to subscribe to log scopes. This patch introduces the ability to create subscriptions, and implicitly to subscribe to (previously created) scopes. In the event the scope(s) are not created we temporary store the subscription as a pending one: a subscription for which a scope doesn't exist at the time of the subscription. When the scope for which the subscription has been created we take care to create the subscription as well. While at it the documentation bits are modified accommodate the subscribe method and its further functionality. Lastly, it removes an unlikely case when a scope is not created so we avoid any kind of dandling (pending) subscription in case there is subscription to it. We can only do something about in the destroy part of the scope. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Suggested-by: Pekka Paalanen <pekka.paalanen@collabora.com> |
||
---|---|---|
.. | ||
backend-drm.h | ||
backend-fbdev.h | ||
backend-headless.h | ||
backend-rdp.h | ||
backend-wayland.h | ||
backend-x11.h | ||
config-parser.h | ||
libweston.h | ||
matrix.h | ||
meson.build | ||
plugin-registry.h | ||
timeline-object.h | ||
version.h.in | ||
weston-log.h | ||
windowed-output-api.h | ||
xwayland-api.h | ||
zalloc.h |