// import the lib
const lib = require('./lib');
try {
//create array of functions to bind
let funcs = [{
FunctionName: "GetHDInfo", //name of function in C lib
ReturnType: "int", //return type of function in C lib
Parameters: ["string", "string"] //types for parameters of function in C lib
}];
//ALWAYS INITIALIZE FIRST
lib.initialize(funcs);
//call function by name
var res = lib.run("GetHDInfo");
//check response
if (res.status === lib.ResponseTypes.SUCCESS) {
console.log(res);
}
}
catch (err) {
console.log(err);
}
-
Notifications
You must be signed in to change notification settings - Fork 0
jordan-lumley/liba1_interface
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published