view libpurple/plugins/mono/api/Event.cs @ 31955:cd7dcd0beafa

Fix two compile warnings. Did I do that? I totally didn't notice. My bad. roomlist.c: In function ?purple_roomlist_room_get_expanded_once?: roomlist.c:402:2: warning: return makes integer from pointer without a cast roomlist.c: In function ?purple_roomlist_room_set_expanded_once?: roomlist.c:409:2: warning: ?return? with a value, in function returning void
author Mark Doliner <mark@kingant.net>
date Fri, 26 Aug 2011 05:00:46 +0000
parents 93bfbda79bf6
children
line wrap: on
line source

using System;

namespace Purple
{
	public class Event
	{
		private IntPtr handle;
		private string signal;
		
		public Event(IntPtr h, string s)
		{
			handle = h;
			signal = s;
		}
	
		public void connect(object plugin, Signal.Handler handler)
		{
			Signal.connect(handle, plugin, signal, handler);
		}
	}
}