Beispiel #1
0
 public IntPtr create(EventListenerInstancer obj)
 {
     handle = GCHandle.Alloc(obj);
     return(ManagedEventListenerInstancer_Create(instanceEventListenerCb, releaseCb, GCHandle.ToIntPtr(handle)));
 }
Beispiel #2
0
 /// Register the instancer to be used for all event listeners.
 /// @return The registered instancer on success, NULL on failure.
 public static EventListenerInstancer RegisterEventListenerInstancer(EventListenerInstancer instancer)
 {
     Factory_RegisterEventListenerInstancer(instancer.Ptr);
     return(instancer);
 }