/pidgin/main: 498763742ea4: Remove mono
Gary Kramlich
grim at reaperworld.com
Wed Mar 9 10:33:58 EST 2016
Changeset: 498763742ea4b5f115e62a755c4b8d56c353ecd3
Author: Gary Kramlich <grim at reaperworld.com>
Date: 2016-03-08 20:31 -0600
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/498763742ea4
Description:
Remove mono
diffstat:
libpurple/plugins/mono/BooPlugin.boo | 22 --
libpurple/plugins/mono/GetBuddyBack.cs | 34 ---
libpurple/plugins/mono/MPlugin.cs | 38 ----
libpurple/plugins/mono/Makefile.am | 19 --
libpurple/plugins/mono/api/BlistNode.cs | 4 -
libpurple/plugins/mono/api/Buddy.cs | 9 -
libpurple/plugins/mono/api/BuddyList.cs | 19 --
libpurple/plugins/mono/api/Contact.cs | 4 -
libpurple/plugins/mono/api/Debug.cs | 28 ---
libpurple/plugins/mono/api/Event.cs | 21 --
libpurple/plugins/mono/api/Group.cs | 4 -
libpurple/plugins/mono/api/Makefile.am | 27 --
libpurple/plugins/mono/api/PurplePlugin.cs | 67 -------
libpurple/plugins/mono/api/Signal.cs | 18 -
libpurple/plugins/mono/api/Status.cs | 9 -
libpurple/plugins/mono/loader/Makefile.am | 25 --
libpurple/plugins/mono/loader/blist-glue.c | 26 --
libpurple/plugins/mono/loader/debug-glue.c | 16 -
libpurple/plugins/mono/loader/mono-glue.h | 19 --
libpurple/plugins/mono/loader/mono-helper.c | 260 ----------------------------
libpurple/plugins/mono/loader/mono-helper.h | 72 -------
libpurple/plugins/mono/loader/mono.c | 249 --------------------------
libpurple/plugins/mono/loader/signal-glue.c | 131 --------------
libpurple/plugins/mono/loader/status-glue.c | 16 -
24 files changed, 0 insertions(+), 1137 deletions(-)
diffs (truncated from 1257 to 300 lines):
diff --git a/libpurple/plugins/mono/BooPlugin.boo b/libpurple/plugins/mono/BooPlugin.boo
deleted file mode 100644
--- a/libpurple/plugins/mono/BooPlugin.boo
+++ /dev/null
@@ -1,22 +0,0 @@
-import Purple
-
-class BooPlugin(PurplePlugin):
-
- def handle(*args as (object)):
- b as Buddy
- b = args[0]
- Debug.debug(Debug.INFO, "booplugin", "Boo Plugin knows that " + b.Alias + " is away\n")
-
- override def Load():
- Debug.debug(Debug.INFO, "booplugin", "loading...\n")
- BuddyList.OnBuddyAway.connect(self, handle)
-
- override def Unload():
- Debug.debug(Debug.INFO, "booplugin", "unloading...\n")
-
- override def Destroy():
- Debug.debug(Debug.INFO, "booplugin", "destroying...\n")
-
- override def Info():
- return PurplePluginInfo("mono-boo", "Boo Plugin", "0.1", "Test Boo Plugin", "Longer Description", "Eoin Coffey", "urled")
-
diff --git a/libpurple/plugins/mono/GetBuddyBack.cs b/libpurple/plugins/mono/GetBuddyBack.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/GetBuddyBack.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using Purple;
-
-public class GetBuddyBack : Plugin
-{
- private static PluginInfo info = new PluginInfo("mono-buddyback", "C# Get Buddy Back", "0.1", "Prints when a Buddy returns", "Longer Description", "Eoin Coffey", "urled");
-
- public GetBuddyBack()
- : base (info)
- {
- }
-
- public void HandleSig(object[] args)
- {
- Buddy buddy = (Buddy)args[0];
-
- Debug.debug(Debug.INFO, "buddyback", "buddy " + buddy.Name + " is back!\n");
- }
-
- public override void Load()
- {
- Debug.debug(Debug.INFO, "buddyback", "loading...\n");
-
- /*Signal.connect(BuddyList.GetHandle(), this, "buddy-back", new Signal.Handler(HandleSig));*/
- BuddyList.OnBuddyStatusChanged.connect(this, new Signal.Handler(HandleSig));
- }
-
- public override void Unload()
- {
- }
-
- public override void Destroy()
- {
- }
-}
diff --git a/libpurple/plugins/mono/MPlugin.cs b/libpurple/plugins/mono/MPlugin.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/MPlugin.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using Purple;
-
-public class MPlugin : Plugin
-{
- private static PluginInfo info = new PluginInfo("mono-mplugin", "C# Plugin", "0.1", "Test C# Plugin", "Longer Description", "Eoin Coffey", "urled");
-
- public MPlugin()
- : base(info)
- {
- }
-
- public void HandleSig(object[] args)
- {
- Buddy buddy = (Buddy)args[0];
- Status old_status = (Status)args[1];
- Status status = (Status)args[2];
-
- Debug.debug(Debug.INFO, "mplug", "buddy " + buddy.Name + " went from " + old_status.Id + " to " + status.Id + "\n");
- }
-
- public override void Load()
- {
- Debug.debug(Debug.INFO, "mplug", "loading...\n");
-
- /*Signal.connect(BuddyList.GetHandle(), this, "buddy-away", new Signal.Handler(HandleSig));*/
- BuddyList.OnBuddyStatusChanged.connect(this, new Signal.Handler(HandleSig));
- }
-
- public override void Unload()
- {
- Debug.debug(Debug.INFO, "mplug", "unloading...\n");
- }
-
- public override void Destroy()
- {
- Debug.debug(Debug.INFO, "mplug", "destroying...\n");
- }
-}
diff --git a/libpurple/plugins/mono/Makefile.am b/libpurple/plugins/mono/Makefile.am
deleted file mode 100644
--- a/libpurple/plugins/mono/Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
-SUBDIRS = api loader
-
-mono_sources = GetBuddyBack.cs \
- MPlugin.cs
-
-EXTRA_DIST = $(mono_sources)
-
-monodir = @PURPLE_PLUGINDIR@
-mono_SCRIPTS = MPlugin.dll GetBuddyBack.dll
-mono_build_sources = $(addprefix $(srcdir)/, $(mono_sources))
-
-all: $(mono_SCRIPTS)
-
-SUFFIXES = .cs .dll
-.cs.dll: api/PurpleAPI.dll $(mono_build_sources)
- mcs -t:library -lib:./api -out:$@ -r:PurpleAPI.dll $<
-
-clean-local:
- rm -f $(mono_SCRIPTS)
diff --git a/libpurple/plugins/mono/api/BlistNode.cs b/libpurple/plugins/mono/api/BlistNode.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/BlistNode.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace Purple {
- public abstract class BlistNode {
- }
-}
diff --git a/libpurple/plugins/mono/api/Buddy.cs b/libpurple/plugins/mono/api/Buddy.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/Buddy.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace Purple {
- public class Buddy : BlistNode {
- private string name;
- private string alias;
-
- public string Name { get { return name; } set { name = value; } }
- public string Alias { get { return alias; } set { alias = value; } }
- }
-}
diff --git a/libpurple/plugins/mono/api/BuddyList.cs b/libpurple/plugins/mono/api/BuddyList.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/BuddyList.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-namespace Purple {
- using System;
- using System.Runtime.CompilerServices;
-
- public class BuddyList {
- [MethodImplAttribute(MethodImplOptions.InternalCall)]
- extern private static IntPtr _get_handle();
-
- private static IntPtr handle = _get_handle();
-
- public static Event OnBuddyStatusChanged =
- new Event(handle, "buddy-status-changed");
-
- public static IntPtr GetHandle()
- {
- return _get_handle();
- }
- }
-}
diff --git a/libpurple/plugins/mono/api/Contact.cs b/libpurple/plugins/mono/api/Contact.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/Contact.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace Purple {
- public class Contact : BlistNode {
- }
-}
diff --git a/libpurple/plugins/mono/api/Debug.cs b/libpurple/plugins/mono/api/Debug.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/Debug.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Runtime.CompilerServices;
-
-namespace Purple
-{
- public class Debug
- {
- public static int ALL = 0;
- public static int MISC = 1;
- public static int INFO = 2;
- public static int WARNING = 3;
- public static int ERROR = 4;
- public static int FATAL = 5;
-
- [MethodImplAttribute(MethodImplOptions.InternalCall)]
- extern private static void _debug(int type, string cat, string str);
-
- public static void debug(int type, string cat, string format)
- {
- _debug(type, cat, format);
- }
-
- public static void debug(int type, string cat, string format, params object[] args)
- {
- _debug(type, cat, String.Format(format, args));
- }
- }
-}
diff --git a/libpurple/plugins/mono/api/Event.cs b/libpurple/plugins/mono/api/Event.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/Event.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-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);
- }
- }
-}
diff --git a/libpurple/plugins/mono/api/Group.cs b/libpurple/plugins/mono/api/Group.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/Group.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace Purple {
- public class Group : BlistNode {
- }
-}
diff --git a/libpurple/plugins/mono/api/Makefile.am b/libpurple/plugins/mono/api/Makefile.am
deleted file mode 100644
--- a/libpurple/plugins/mono/api/Makefile.am
+++ /dev/null
@@ -1,27 +0,0 @@
-monodir=@PURPLE_PLUGINDIR@
-
-mono_sources = \
- BlistNode.cs \
- BuddyList.cs \
- Buddy.cs \
- Contact.cs \
- Debug.cs \
- Event.cs \
- PurplePlugin.cs \
- Group.cs \
- Signal.cs \
- Status.cs
-
-EXTRA_DIST = $(mono_sources)
-
-mono_SCRIPTS = PurpleAPI.dll
-
-mono_build_sources = $(addprefix $(srcdir)/, $(mono_sources))
-
-all: $(mono_SCRIPTS)
-
-$(mono_SCRIPTS): $(mono_build_sources)
- mcs -t:library -out:$(mono_SCRIPTS) $(mono_build_sources)
-
-clean-local:
- rm -rf $(mono_SCRIPTS)
diff --git a/libpurple/plugins/mono/api/PurplePlugin.cs b/libpurple/plugins/mono/api/PurplePlugin.cs
deleted file mode 100644
--- a/libpurple/plugins/mono/api/PurplePlugin.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-namespace Purple {
- public class PluginInfo {
- private string id;
- private string name;
- private string version;
- private string summary;
More information about the Commits
mailing list