Exemplo n.º 1
0
 internal static extern void warble_scanner_set_handler(IntPtr context, FnVoid_VoidP_WarbleScanResultP handler);
Exemplo n.º 2
0
 static Scanner()
 {
     WarbleResultReceived = (ctx, pointer) => OnResultReceived?.Invoke(new ScanResult(pointer));
     warble_scanner_set_handler(IntPtr.Zero, WarbleResultReceived);
 }
Exemplo n.º 3
0
 static Scanner()
 {
     WarbleResultReceived = (ctx, pointer) => OnResultReceived?.Invoke(new ScanResult(pointer));
     //pin = GCHandle.Alloc(OnResultReceived, GCHandleType.Pinned);
     warble_scanner_set_handler(IntPtr.Zero, WarbleResultReceived);
 }