Commit 12af425a authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

xwayland: Rename xwl_pixmap_cb → xwl_buffer_release_cb



Seems clearer.

While we're at it, also drop the unused pixmap parameter.
Reviewed-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
parent 9eb0b4f7
......@@ -41,7 +41,7 @@ static DevPrivateKeyRec xwl_pixmap_private_key;
static DevPrivateKeyRec xwl_pixmap_cb_private_key;
struct xwl_pixmap_buffer_release_callback {
xwl_pixmap_cb callback;
xwl_buffer_release_cb callback;
void *data;
};
......@@ -59,7 +59,7 @@ xwl_pixmap_get(PixmapPtr pixmap)
Bool
xwl_pixmap_set_buffer_release_cb(PixmapPtr pixmap,
xwl_pixmap_cb func, void *data)
xwl_buffer_release_cb func, void *data)
{
struct xwl_pixmap_buffer_release_callback *xwl_pixmap_buffer_release_callback;
......@@ -107,7 +107,7 @@ xwl_pixmap_buffer_release_cb(void *data, struct wl_buffer *wl_buffer)
&xwl_pixmap_cb_private_key);
if (xwl_pixmap_buffer_release_callback)
(*xwl_pixmap_buffer_release_callback->callback)
(pixmap, xwl_pixmap_buffer_release_callback->data);
(xwl_pixmap_buffer_release_callback->data);
}
Bool
......
......@@ -34,12 +34,12 @@
/* This is an opaque structure implemented in the different backends */
struct xwl_pixmap;
typedef void (*xwl_pixmap_cb) (PixmapPtr pixmap, void *data);
typedef void (*xwl_buffer_release_cb) (void *data);
void xwl_pixmap_set_private(PixmapPtr pixmap, struct xwl_pixmap *xwl_pixmap);
struct xwl_pixmap *xwl_pixmap_get(PixmapPtr pixmap);
Bool xwl_pixmap_set_buffer_release_cb(PixmapPtr pixmap,
xwl_pixmap_cb func, void *data);
xwl_buffer_release_cb func, void *data);
void xwl_pixmap_del_buffer_release_cb(PixmapPtr pixmap);
void xwl_pixmap_buffer_release_cb(void *data, struct wl_buffer *wl_buffer);
Bool xwl_pixmap_init(void);
......
......@@ -176,7 +176,7 @@ xwl_present_cleanup(WindowPtr window)
}
static void
xwl_present_buffer_release(PixmapPtr pixmap, void *data)
xwl_present_buffer_release(void *data)
{
struct xwl_present_event *event = data;
......
......@@ -181,7 +181,7 @@ xwl_window_buffer_timer_callback(OsTimerPtr timer, CARD32 time, void *arg)
}
static void
xwl_window_buffer_release_callback(PixmapPtr pixmap, void *data)
xwl_window_buffer_release_callback(void *data)
{
struct xwl_window_buffer *xwl_window_buffer = data;
struct xwl_window *xwl_window = xwl_window_buffer->xwl_window;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment