package com.njcn.utils;

import com.njcn.pojo.balance.QvvrDataStruct;
import com.sun.jna.Library;
import com.sun.jna.Native;

public class JnaCallBalance extends JnaCallDll {
    public static String strpath;

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

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

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

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