Can't register bind ivi-application

袁嘉伟 yuanjw1025 at 163.com
Tue Jul 5 06:02:29 UTC 2016


Hi,all:


static void
registry_handle_global(void *data, struct wl_registry *registry,
       uint32_t name, const char *interface, uint32_t version)
{
struct display *d = data;


if (strcmp(interface, "wl_compositor") == 0) {
d->compositor =
wl_registry_bind(registry, name,
 &wl_compositor_interface, 1);
} else if (strcmp(interface, "xdg_shell") == 0) {
d->shell = wl_registry_bind(registry, name,
    &xdg_shell_interface, 1);
xdg_shell_add_listener(d->shell, &xdg_shell_listener, d);
xdg_shell_use_unstable_version(d->shell, XDG_VERSION);
} else if (strcmp(interface, "wl_seat") == 0) {
d->seat = wl_registry_bind(registry, name,
   &wl_seat_interface, 1);
wl_seat_add_listener(d->seat, &seat_listener, d);
} else if (strcmp(interface, "wl_shm") == 0) {
d->shm = wl_registry_bind(registry, name,
  &wl_shm_interface, 1);
d->cursor_theme = wl_cursor_theme_load(NULL, 32, d->shm);
if (!d->cursor_theme) {
fprintf(stderr, "unable to load default theme\n");
return;
}
d->default_cursor =
wl_cursor_theme_get_cursor(d->cursor_theme, "left_ptr");
if (!d->default_cursor) {
fprintf(stderr, "unable to load default left pointer\n");
// TODO: abort ?
}
} else if (strcmp(interface, "ivi_application") == 0) {
d->ivi_application =
wl_registry_bind(registry, name,
 &ivi_application_interface, 1);
}
}
    
    In sample code simple-egl, when I registered global handle, the d->ivi_application was alwasys NULL.
    So I printed some log to see the value of 'interface'.   
wl_compositor 
wl_subcompositor 
wl_scaler 
presentation 
wl_data_device_manager 
wl_shm 
wl_viv 
wl_viv 
wl_output 
wl_input_panel 
wl_text_input_manager 
wl_shell 
xdg_shell 
desktop_shell 
workspace_manager 
screenshooter 


I found there is no ivi_application. I don't know the reason for this.
Does anyone have the same problem as me?




Best regards,
Anthenony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160705/c6d8653a/attachment-0001.html>


More information about the wayland-devel mailing list