changeset 23:dffc9604a9fb

- moved prototypes to pidgin-audacious.h
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 06 Oct 2008 18:19:42 +0900
parents fbad40babe88
children 8ac1ebc63fab
files pidgin-audacious.c pidgin-audacious.h
diffstat 2 files changed, 12 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-audacious.c	Mon Oct 06 18:18:06 2008 +0900
+++ b/pidgin-audacious.c	Mon Oct 06 18:19:42 2008 +0900
@@ -28,17 +28,6 @@
 static DBusGProxy *session = NULL;
 static PurpleCmdId cmdid_paste_current_song;
 
-/* prototypes */
-extern gchar *botch_utf(const gchar *msg, gsize len, gsize *newlen) __attribute__ ((weak));
-static void aud_process(gchar *aud_info);
-static void track_signal_cb(DBusGProxy *player_proxy, GHashTable *table, gpointer data);
-static void status_signal_cb(DBusGProxy *player_proxy, gint status, gpointer data);
-static gboolean is_app_playing(void);
-static GHashTable *get_song_table(void);
-static song_tuple *get_song_tuple(GHashTable *table);
-static void signed_on_cb(PurpleConnection *gc, void *data);
-static void prefs_cb(const char *name, PurplePrefType type, gconstpointer value, gpointer data);
-
 
 /* implementation */
 static DBusGProxy *
--- a/pidgin-audacious.h	Mon Oct 06 18:18:06 2008 +0900
+++ b/pidgin-audacious.h	Mon Oct 06 18:19:42 2008 +0900
@@ -62,4 +62,16 @@
 
 #define aud_error(fmt, ...)	do { if(purple_prefs_get_bool(OPT_LOG_OUTPUT)) purple_debug(PURPLE_DEBUG_ERROR, PLUGIN_NAME, "%s():%4d:  " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); } while(0);
 
+
+/* prototypes */
+extern gchar *botch_utf(const gchar *msg, gsize len, gsize *newlen) __attribute__ ((weak));
+static void aud_process(gchar *aud_info);
+static void track_signal_cb(DBusGProxy *player_proxy, GHashTable *table, gpointer data);
+static void status_signal_cb(DBusGProxy *player_proxy, gint status, gpointer data);
+static gboolean is_app_playing(void);
+static GHashTable *get_song_table(void);
+static song_tuple *get_song_tuple(GHashTable *table);
+static void signed_on_cb(PurpleConnection *gc, void *data);
+static void prefs_cb(const char *name, PurplePrefType type, gconstpointer value, gpointer data);
+
 #endif