struct weston_log_context *weston_log_ctx;
struct weston_log_scope *debug_scene;
+ struct weston_log_scope *timeline;
struct content_protection *content_protection;
};
debug_scene_graph_cb, NULL,
ec);
+ ec->timeline =
+ weston_compositor_add_log_scope(ec->weston_log_ctx, "timeline",
+ "Timeline event points\n",
+ weston_timeline_create_subscription,
+ weston_timeline_destroy_subscription,
+ ec);
return ec;
fail:
weston_compositor_log_scope_destroy(compositor->debug_scene);
compositor->debug_scene = NULL;
+
+ weston_compositor_log_scope_destroy(compositor->timeline);
+ compositor->timeline = NULL;
}
/** Destroys the compositor.
void
weston_log_subscription_set_data(struct weston_log_subscription *sub, void *data);
+void
+weston_timeline_create_subscription(struct weston_log_subscription *sub,
+ void *user_data);
+
+void
+weston_timeline_destroy_subscription(struct weston_log_subscription *sub,
+ void *user_data);
+
#endif /* WESTON_LOG_INTERNAL_H */