im.pidgin.cpw.rekkanoryo.examples: 3fedc3aa7b7f6902e68015db1b62c69f5bb01a87

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Mon Nov 26 05:11:44 EST 2007


-----------------------------------------------------------------
Revision: 3fedc3aa7b7f6902e68015db1b62c69f5bb01a87
Ancestor: 77f255d6839c259ec8848c937ecbde754b043ada
Author: rekkanoryo at pidgin.im
Date: 2007-11-11T03:30:33
Branch: im.pidgin.cpw.rekkanoryo.examples

Modified files:
        libpurple/plugins/translation_example.c

ChangeLog: 

Some work on the translation example plugin that I don't care to continue right now.

-------------- next part --------------
============================================================
--- libpurple/plugins/translation_example.c	da39a3ee5e6b4b0d3255bfef95601890afd80709
+++ libpurple/plugins/translation_example.c	38d61d456cd2adf4e33f1d32c01ec3f00c2139e3
@@ -0,0 +1,53 @@
+/*
+ * Plugin Translation Example Plugin
+ *
+ * Copyright (C) 2007, John Bailey <rekkanoryo at cpw.pidgin.im>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02111-1301, USA.
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <glib.h>
+
+#ifndef G_GNUC_NULL_TERMINATED
+# if __GNUC__ >= 4
+#  define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
+# else
+#  define G_GNUC_NULL_TERMINATED
+# endif
+#endif
+
+/* This is the required definition of PURPLE_PLUGINS as required for a plugin,
+ * but we protect it with an #ifndef because config.h may define it for us
+ * already and this would cause an unneeded compiler warning. */
+#ifndef PURPLE_PLUGINS
+# define PURPLE_PLUGINS
+#endif
+
+#include <notify.h>
+#include <plugin.h>
+#include <request.h>
+#include <version.h>
+
+#define PLUGIN_ID "core-translationexample"
+#define PLUGIN_AUTHOR "John Bailey <rekkanoryo at pidgin.im>"
+
+static PurplePlugin *translation_example = NULL;
+


More information about the Commits mailing list