void NotifyCB (IntPtr client_ptr, uint id, IntPtr entry_ptr, IntPtr user_data)
		{
			Client client = new Client (client_ptr);
			_Entry entry = new _Entry (entry_ptr);
			if (entry.ValuePtr == IntPtr.Zero) {
				notify (client, new NotifyEventArgs (entry.Key, null));
				return;
			}
			Value val = new Value (entry.ValuePtr);
			val.Managed = false;
			notify (client, new NotifyEventArgs (entry.Key, val.Get ()));
		}
示例#2
0
        void NotifyCB(IntPtr client_ptr, uint id, IntPtr entry_ptr, IntPtr user_data)
        {
            Client client = new Client(client_ptr);
            _Entry entry  = new _Entry(entry_ptr);

            if (entry.ValuePtr == IntPtr.Zero)
            {
                notify(client, new NotifyEventArgs(entry.Key, null));
                return;
            }
            Value val = new Value(entry.ValuePtr);

            val.Managed = false;
            notify(client, new NotifyEventArgs(entry.Key, val.Get()));
        }