Possible bug in jextract C header definition?

sundararajan.athijegannathan at oracle.com sundararajan.athijegannathan at oracle.com
Tue Aug 6 02:02:51 UTC 2019


Hi,

va_list should have been mapped to a 'builtin$...' class. Do you have 
the latest panama-dev build?

Thanks,

-Sundar

On 04/08/19 1:34 am, Mark Hammons wrote:
> Hi all,
>
> I am starting afresh with my project to make a java based wayland 
> compositor, and the wayland and wlroots libraries have changed since I 
> last worked with them. It seems jextract is having trouble with a 
> function pointer defined in wayland-util.h:
>
> typedef void (*wl_log_func_t)(const char *, va_list) WL_PRINTF(1, 0);
>
> is turned into:
>
>     @FunctionalInterface
>     @NativeCallback("(u64:u8u64:${__va_list_tag})v")
>     public interface FI11 {
>         void fn(Pointer<Byte> var1, 
> Pointer<usr.include.wayland.wayland_server_core.__va_list_tag> var2);
>     }
>
> va_list is not part of wayland_server_core, or any other wayland 
> library and is defined in stdarg.h
>
>     @Target(ElementType.TYPE_USE)
>     @Retention(RetentionPolicy.RUNTIME)
>     public @interface va_list {
>     }
>
> for some reason jextract is not picking that up.
>


More information about the panama-dev mailing list