Convert to wl_global_create/destroy()

This commit is contained in:
Kristian Høgsberg
2013-07-08 19:03:57 -04:00
parent ac3a8b83fd
commit 919cddb0ab
11 changed files with 69 additions and 64 deletions
+2 -2
View File
@@ -240,8 +240,8 @@ module_init(struct weston_compositor *ec,
test->compositor = ec;
weston_layer_init(&test->layer, &ec->cursor_layer.link);
if (wl_display_add_global(ec->wl_display, &wl_test_interface,
test, bind_test) == NULL)
if (wl_global_create(ec->wl_display, &wl_test_interface, 1,
test, bind_test) == NULL)
return -1;
loop = wl_display_get_event_loop(ec->wl_display);