Move weston_frame_callback above weston_surface_create
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 26 Jun 2014 17:04:49 +0000 (10:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 7 Jul 2014 16:12:32 +0000 (09:12 -0700)
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c

index d414e27..a882431 100644 (file)
@@ -377,6 +377,11 @@ weston_view_create(struct weston_surface *surface)
        return view;
 }
 
+struct weston_frame_callback {
+       struct wl_resource *resource;
+       struct wl_list link;
+};
+
 WL_EXPORT struct weston_surface *
 weston_surface_create(struct weston_compositor *compositor)
 {
@@ -1357,11 +1362,6 @@ weston_surface_reset_pending_buffer(struct weston_surface *surface)
        surface->pending.buffer_viewport.changed = 0;
 }
 
-struct weston_frame_callback {
-       struct wl_resource *resource;
-       struct wl_list link;
-};
-
 WL_EXPORT void
 weston_view_destroy(struct weston_view *view)
 {