[mutter/wip/tintou/clutter-frame-clock-delegates: 27/27] clutter/frame-clock: Define the elements of ClutterFrameListenerIface as delegates
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tintou/clutter-frame-clock-delegates: 27/27] clutter/frame-clock: Define the elements of ClutterFrameListenerIface as delegates
- Date: Sat, 29 Aug 2020 15:22:37 +0000 (UTC)
commit ea5bdc7a78da79a5fe9f6e41d65d73012ffce5a8
Author: Corentin Noël <corentin noel collabora com>
Date: Tue Aug 25 17:08:04 2020 +0200
clutter/frame-clock: Define the elements of ClutterFrameListenerIface as delegates
This allows the introspection to properly understand that the fields of the
ClutterFrameListenerIface structure are delegates.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1413
clutter/clutter/clutter-frame-clock.h | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/clutter/clutter/clutter-frame-clock.h b/clutter/clutter/clutter-frame-clock.h
index 3c9ab7b5ad..b5ace01a1d 100644
--- a/clutter/clutter/clutter-frame-clock.h
+++ b/clutter/clutter/clutter-frame-clock.h
@@ -40,15 +40,20 @@ G_DECLARE_FINAL_TYPE (ClutterFrameClock, clutter_frame_clock,
CLUTTER, FRAME_CLOCK,
GObject)
+typedef void (* ClutterFrameListenerBeforeFrameFunc) (ClutterFrameClock *frame_clock,
+ int64_t frame_count,
+ gpointer user_data);
+
+
+typedef ClutterFrameResult (* ClutterFrameListenerFrameFunc) (ClutterFrameClock *frame_clock,
+ int64_t frame_count,
+ int64_t time_us,
+ gpointer user_data);
+
typedef struct _ClutterFrameListenerIface
{
- void (* before_frame) (ClutterFrameClock *frame_clock,
- int64_t frame_count,
- gpointer user_data);
- ClutterFrameResult (* frame) (ClutterFrameClock *frame_clock,
- int64_t frame_count,
- int64_t time_us,
- gpointer user_data);
+ ClutterFrameListenerBeforeFrameFunc before_frame;
+ ClutterFrameListenerFrameFunc frame;
} ClutterFrameListenerIface;
CLUTTER_EXPORT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]