weston-log: Add a subscription iterator
Helper to retrieve next available subscription as to avoid exposing the subscription, which is an opaque (internal) class of the logging framework. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Suggested-by: Daniel Stone <daniel.stone@collabora.com>
This commit is contained in:
@@ -122,6 +122,10 @@ weston_log_subscriber_destroy_flight_rec(struct weston_log_subscriber *sub);
|
||||
void
|
||||
weston_log_subscriber_display_flight_rec(struct weston_log_subscriber *sub);
|
||||
|
||||
struct weston_log_subscription *
|
||||
weston_log_subscription_iterate(struct weston_log_scope *scope,
|
||||
struct weston_log_subscription *sub_iter);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user