Skip to content

c2v cannot process: void (**implementation)(void) #189

@finomeng

Description

@finomeng

hi team,
I want to wrap the headers for wayland-client.so
but seem c2v cannot process: **

int wl_proxy_add_listener(struct wl_proxy proxy, void (**implementation)(void), voiddata);

the file is /usr/include/wayland-client-core.h , on Ubuntu 24.04

log:

$ v translate wayland-client.h
wayland-client.v:571:63: error: unexpected token `(`, expecting `,`
  569 | fn wl_proxy_destroy(proxy &Wl_proxy)
  570 | 
  571 | fn wl_proxy_add_listener(proxy &Wl_proxy, implementation Void (**)(void), data voidptr) int
      |                                                               ^
  572 | 
  573 | fn wl_proxy_set_user_data(proxy &Wl_proxy, user_data voidptr)

Internal vfmt error while formatting file: /projects/_KodGraf_/kodgraf/wayland/h/wayland-client.v.

Thanks.
BR fino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions