package org.westmalle.wayland.platform.newt.eglkms.gbm;


import com.sun.jna.Native;
import com.sun.jna.Pointer;

public interface GbmLibrary {
    String JNA_LIBRARY_NAME = "gbm";

    GbmLibrary INSTANCE = (GbmLibrary) Native.loadLibrary(JNA_LIBRARY_NAME, GbmLibrary.class);

    Pointer gbm_create_device(int fd);

    Pointer gbm_bo_create (Pointer gbm, int width, int height, int format, int usage);

    void gbm_device_destroy(Pointer gbmDevice);
}

@@ -51,16 +51,44 @@
 .gbm;%0A%0A%0A
+import com.sun.jna.Library;%0A
 import c
@@ -163,16 +163,31 @@
 Library 
+extends Library
 %7B%0A    St

make gbm library extend from library