commit 312d612
Michael Forney
·
2013-06-21 07:52:43 +0000 UTC
parent 36a5bad
data_device: Use swc_data_device_new, they are created dynamically
3 files changed,
+3,
-7
+1,
-2
1@@ -18,8 +18,7 @@ struct wl_data_device_interface data_device_implementation = {
2 .set_selection = &set_selection
3 };
4
5-void swc_data_device_initialize(struct wl_client * client, uint32_t id,
6- struct swc_seat * seat)
7+void swc_data_device_new(struct wl_client * client, uint32_t id)
8 {
9 wl_client_add_object(client, &wl_data_device_interface,
10 &data_device_implementation, id, NULL);
+1,
-4
1@@ -3,10 +3,7 @@
2
3 #include <wayland-server.h>
4
5-struct swc_seat;
6-
7-void swc_data_device_initialize(struct wl_client * client, uint32_t id,
8- struct swc_seat * seat);
9+void swc_data_device_new(struct wl_client * client, uint32_t id);
10
11 #endif
12
+1,
-1
1@@ -17,7 +17,7 @@ static void get_data_device(struct wl_client * client,
2 printf("get_data_device\n");
3
4 // TODO: keep track of resource?
5- swc_data_device_initialize(client, id, seat);
6+ swc_data_device_new(client, id);
7 }
8
9 static struct wl_data_device_manager_interface