regResponseIf static method

dynamic regResponseIf(
  1. DynamicLibrary nativeLib
)

Implementation

static regResponseIf(DynamicLibrary nativeLib) {
  var nativeResFuncs = _setupResponseFunc();

  // void registerResFunctions(cling_response_function_t * clingIf);
  var regNative = nativeLib.lookupFunction<Void Function(Pointer<NativeClingResponse>), void Function(Pointer<NativeClingResponse>)> ("registerResFunctions");

  regNative(nativeResFuncs);

  malloc.free(nativeResFuncs);
}