commit 312d612940c59bd174e6b1fcada5b7175862c7bb
parent 36a5badce23889328e459afbf64379ec6872de5f
Author: Michael Forney <mforney@mforney.org>
Date: Fri, 21 Jun 2013 00:52:43 -0700
data_device: Use swc_data_device_new, they are created dynamically
Diffstat:
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/data_device.c b/data_device.c
@@ -18,8 +18,7 @@ struct wl_data_device_interface data_device_implementation = {
.set_selection = &set_selection
};
-void swc_data_device_initialize(struct wl_client * client, uint32_t id,
- struct swc_seat * seat)
+void swc_data_device_new(struct wl_client * client, uint32_t id)
{
wl_client_add_object(client, &wl_data_device_interface,
&data_device_implementation, id, NULL);
diff --git a/data_device.h b/data_device.h
@@ -3,10 +3,7 @@
#include <wayland-server.h>
-struct swc_seat;
-
-void swc_data_device_initialize(struct wl_client * client, uint32_t id,
- struct swc_seat * seat);
+void swc_data_device_new(struct wl_client * client, uint32_t id);
#endif
diff --git a/data_device_manager.c b/data_device_manager.c
@@ -17,7 +17,7 @@ static void get_data_device(struct wl_client * client,
printf("get_data_device\n");
// TODO: keep track of resource?
- swc_data_device_initialize(client, id, seat);
+ swc_data_device_new(client, id);
}
static struct wl_data_device_manager_interface