package com.njcn.utils;

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

public class JnaCallCause extends JnaCallDll {
    public static String strpath;

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

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

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

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