JackSharp.Controller.OnPortRegistration C# (CSharp) Method

OnPortRegistration() private method

private OnPortRegistration ( uint portId, int register, IntPtr args ) : void
portId uint
register int
args System.IntPtr
return void
        void OnPortRegistration(uint portId, int register, IntPtr args)
        {
            if (PortChanged != null) {
                PortReference port = MapPort (portId);
                PortChanged (this,
                    new PortRegistrationEventArgs (port, register > 0 ? ChangeType.New : ChangeType.Deleted));
            }
        }