compositor: Remove a few legacy uses of wl_object
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 25 Jun 2013 19:34:59 +0000 (15:34 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 25 Jun 2013 19:34:59 +0000 (15:34 -0400)
src/screenshooter.c
src/zoom.c

index be2e34f..8143202 100644 (file)
@@ -36,7 +36,6 @@
 #include "../wcap/wcap-decode.h"
 
 struct screenshooter {
-       struct wl_object base;
        struct weston_compositor *ec;
        struct wl_global *global;
        struct wl_client *client;
@@ -570,9 +569,6 @@ screenshooter_create(struct weston_compositor *ec)
        if (shooter == NULL)
                return;
 
-       shooter->base.interface = &screenshooter_interface;
-       shooter->base.implementation =
-               (void(**)(void)) &screenshooter_implementation;
        shooter->ec = ec;
        shooter->client = NULL;
 
index ec9db98..267ff31 100644 (file)
@@ -28,7 +28,6 @@
 #include "text-cursor-position-server-protocol.h"
 
 struct text_cursor_position {
-       struct wl_object base;
        struct weston_compositor *ec;
        struct wl_global *global;
        struct wl_listener destroy_listener;
@@ -77,9 +76,6 @@ text_cursor_position_notifier_create(struct weston_compositor *ec)
        if (text_cursor_position == NULL)
                return;
 
-       text_cursor_position->base.interface = &text_cursor_position_interface;
-       text_cursor_position->base.implementation =
-               (void(**)(void)) &text_cursor_position_implementation;
        text_cursor_position->ec = ec;
 
        text_cursor_position->global = wl_display_add_global(ec->wl_display,