view libpurple/plugins/mono/api/Signal.cs @ 29341:a52831eada67

Add pidgin-2 and purple-2 .pc variants Instead of adding ${includedir}/libpurple to the include path, purple-2 adds ${includedir}. This allows projects to #include <libpurple/debug.h> rather than #include <debug.h>, which prevents libpurple's headers colliding with the project's own, and is more conventional. media/codec.h needed tweaking to compile.
author Will Thompson <will.thompson@collabora.co.uk>
date Sun, 20 Dec 2009 18:03:58 +0000
parents 93bfbda79bf6
children
line wrap: on
line source

using System;
using System.Runtime.CompilerServices;

namespace Purple
{
	public class Signal
	{
		[MethodImplAttribute(MethodImplOptions.InternalCall)]
		extern private static int _connect(IntPtr handle, object plugin, string signal, object evnt);
		
		public delegate void Handler(object[] args);
		
		public static int connect(IntPtr handle, object plugin, string signal, object evnt)
		{
			return _connect(handle, plugin, signal, evnt);
		}
	}
}