/* MusicInfo plugin for pidgin Displays whatever is currently playing in Winamp in the user's profile, away message, or available message in Pidgin Written by Reuben Balik Copyright 2005, 2006, 2007, 2008 By Reuben Balik Please ask permission before using any of this code for any other project/product. This code/plugin is provided as-is with no warranty of any kind. Use at your own risk. Last Update: March 31, 2008 */ #ifndef MUSICINFO_H #define MUSICINFO_H #include "internal.h" #include "status.h" #include "connection.h" #include "signals.h" #include "version.h" #include "notify.h" #include "savedstatuses.h" #include #include //the maximum profile length (I'm not actually sure what the official max AIM profile size is) #define MAX_PROFILE_SIZE 2048 //string size for artist and title #define MAX_NAME_SIZE 256 //how often to check winamp window in ms #define CHECK_INTERVAL 15000 static gboolean getSong(char* title, char* artist, int len); static gboolean replaceText(char* text, char* replaceStr, char* replaceWith, int max); static void hideBetween(char* text, char* startReplace, char* endReplace, unsigned int len); static gboolean getStatusText(char* client_text, char* server_text, PurpleAccount *account, const char** sid, int len); static void updateInfo(PurpleConnection *gc, char* prevInfo, char* title, char* artist, gboolean isPlaying, gboolean updateStatus); static gboolean callUpdateInfo(); static void toggle_privacy(PurplePluginAction *action); #endif