package com.njcn.utils;

import com.njcn.pojo.advanced.Rect;
import com.sun.jna.Library;
import com.sun.jna.Native;

public class JnaCallC extends JnaCallDll {
    public static String strpath;

    public JnaCallC(String name) {
        super(name);
    }

    @Override
    public void setPath() {
        JnaCallC.strpath = super.getStrpath();
    }

    public interface Clibrary extends Library {
        // 加载Lib库
        Clibrary INSTANTCE = (Clibrary) Native.loadLibrary(JnaCallC.strpath, Clibrary.class);

        // 定义方法--->与C方法相对应
        void qvvr_fun(Rect data);
    }
}
