override public void arwRegisterLogCallback(PluginFunctionsLogCallback lcb)
 {
     logCallback = lcb;                                // Set or unset.
     if (lcb != null)                                  // If setting, create the callback stub prior to registering the callback on the native side.
     {
         logCallbackGCH = GCHandle.Alloc(logCallback); // Does not need to be pinned, see http://stackoverflow.com/a/19866119/316487
     }
     ARX_pinvoke.arwRegisterLogCallback(logCallback);
     if (lcb == null)   // If unsetting, free the callback stub after deregistering the callback on the native side.
     {
         logCallbackGCH.Free();
     }
 }
Beispiel #2
0
 public static extern void arwRegisterLogCallback(PluginFunctionsLogCallback callback);
 abstract public void arwRegisterLogCallback(PluginFunctionsLogCallback lcb);