• Marius Vlad's avatar
    weston-debug: Introduce weston_log_subscription and weston_log_subscriber objects · e0a858a5
    Marius Vlad authored
    Adds a minimalistic API for managing the subscription object. The
    subscribe functionality will be brought in once we re-organize a bit
    weston-debug-stream and split it properly. It extends the logging
    context with a linked list of potential subscription and adds a linked
    list of subscriptions in the log scope.
    
    This patch represents the start of a logging framework for weston. It's
    being built around weston-debug, with the intent to superseded it, and
    make weston-debug a client of the framework. Further more the logging
    framework should replace current logging handler and allow other types
    of streams to be used.
    
    Currently present in libweston under weston-debug we have log scopes, debug
    streams and a logging context.
    
    With this patch, two (internal) objects are being added: the concept of
    a subscriber and the concept of subscription.  The subscription object
    is a ephemeral object, implicitly managed which is created each time one
    would want to a subscribe to a scope. The scope will maintain a list of
    subscriptions and will continue to be explicitly managed.
    
    The streams will use the subscriber object as a base class to extend
    upon. By doing so it allows to customize the stream with specific
    functions that manipulate the underlaying storage. The subscriber object
    will require a subscribe function and specific stream functions and like
    the scope, will be explicitly managed.
    Signed-off-by: Marius Vlad's avatarMarius Vlad <marius.vlad@collabora.com>
    Suggested-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.com>
    e0a858a5
Name
Last commit
Last update
..
backend-drm Loading commit data...
backend-fbdev Loading commit data...
backend-headless Loading commit data...
backend-rdp Loading commit data...
backend-wayland Loading commit data...
backend-x11 Loading commit data...
renderer-gl Loading commit data...
animation.c Loading commit data...
backend.h Loading commit data...
bindings.c Loading commit data...
clipboard.c Loading commit data...
compositor.c Loading commit data...
content-protection.c Loading commit data...
data-device.c Loading commit data...
dbus.c Loading commit data...
dbus.h Loading commit data...
git-version.h.meson Loading commit data...
input.c Loading commit data...
launcher-direct.c Loading commit data...
launcher-impl.h Loading commit data...
launcher-logind.c Loading commit data...
launcher-util.c Loading commit data...
launcher-util.h Loading commit data...
launcher-weston-launch.c Loading commit data...
libinput-device.c Loading commit data...
libinput-device.h Loading commit data...
libinput-seat.c Loading commit data...
libinput-seat.h Loading commit data...
libweston-internal.h Loading commit data...
linux-dmabuf.c Loading commit data...
linux-dmabuf.h Loading commit data...
linux-explicit-synchronization.c Loading commit data...
linux-explicit-synchronization.h Loading commit data...
linux-sync-file-uapi.h Loading commit data...
linux-sync-file.c Loading commit data...
linux-sync-file.h Loading commit data...
log.c Loading commit data...
meson.build Loading commit data...
noop-renderer.c Loading commit data...
pixel-formats.c Loading commit data...
pixel-formats.h Loading commit data...
pixman-renderer.c Loading commit data...
pixman-renderer.h Loading commit data...
plugin-registry.c Loading commit data...
screenshooter.c Loading commit data...
spring-tool.c Loading commit data...
timeline.c Loading commit data...
timeline.h Loading commit data...
touch-calibration.c Loading commit data...
vertex-clipping.c Loading commit data...
vertex-clipping.h Loading commit data...
weston-debug.c Loading commit data...
weston-launch.c Loading commit data...
weston-launch.h Loading commit data...
weston-log-internal.h Loading commit data...
zoom.c Loading commit data...