Mercurial > pidgin-twitter
comparison pidgin-twitter.h @ 148:4e9d0fd93fb6
- in saving icon file for twitter, proper extension is used.
- pointers to hash tables are organized as an array.
- removed unused code.
- resolved redundant code with hash table array.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 24 Jul 2008 21:00:34 +0900 |
parents | bef8f96ce8f2 |
children | 588da540685a |
comparison
equal
deleted
inserted
replaced
147:3abee459c81c | 148:4e9d0fd93fb6 |
---|---|
37 IMAGE_TWITTER | 37 IMAGE_TWITTER |
38 }; | 38 }; |
39 | 39 |
40 /* service id */ | 40 /* service id */ |
41 enum { | 41 enum { |
42 unknown_service = 0, | 42 unknown_service = -1, |
43 twitter_service, | 43 twitter_service, |
44 wassr_service, | 44 wassr_service, |
45 identica_service | 45 identica_service |
46 }; | 46 }; |
47 | 47 |
48 /* container to hold icon data */ | 48 /* container to hold icon data */ |
49 typedef struct _icon_data { | 49 typedef struct _icon_data { |
50 gint icon_id; // image id | 50 gint icon_id; /* image id */ |
51 gboolean requested; // TRUE if download icon has been requested | 51 gboolean requested; /* TRUE if download icon has been requested */ |
52 GList *request_list; // marker list | 52 GList *request_list; /* marker list */ |
53 PurpleUtilFetchUrlData *fetch_data; // icon fetch data | 53 PurpleUtilFetchUrlData *fetch_data; /* icon fetch data */ |
54 const gchar *img_type; /* image type */ | |
54 } icon_data; | 55 } icon_data; |
55 | 56 |
56 /* used by got_icon_cb */ | 57 /* used by got_icon_cb */ |
57 typedef struct _got_icon_data { | 58 typedef struct _got_icon_data { |
58 gchar *user_name; | 59 gchar *user_name; |
192 static gboolean displaying_im_cb(PurpleAccount *account, const char *who, char **message, PurpleConversation *conv, PurpleMessageFlags flags, void *data); | 193 static gboolean displaying_im_cb(PurpleAccount *account, const char *who, char **message, PurpleConversation *conv, PurpleMessageFlags flags, void *data); |
193 static void displayed_im_cb(PurpleAccount *account, const char *who, char *message, PurpleConversation *conv, PurpleMessageFlags flags); | 194 static void displayed_im_cb(PurpleAccount *account, const char *who, char *message, PurpleConversation *conv, PurpleMessageFlags flags); |
194 static gboolean load_plugin(PurplePlugin *plugin); | 195 static gboolean load_plugin(PurplePlugin *plugin); |
195 static gboolean unload_plugin(PurplePlugin *plugin); | 196 static gboolean unload_plugin(PurplePlugin *plugin); |
196 static void counter_prefs_cb(const char *name, PurplePrefType type, gconstpointer val, gpointer data); | 197 static void counter_prefs_cb(const char *name, PurplePrefType type, gconstpointer val, gpointer data); |
197 //static PurplePluginPrefFrame *get_plugin_pref_frame(PurplePlugin *plugin); | 198 |
198 static void init_plugin(PurplePlugin *plugin); | 199 static void init_plugin(PurplePlugin *plugin); |
199 static void remove_marks_func(gpointer key, gpointer value, gpointer user_data); | 200 static void remove_marks_func(gpointer key, gpointer value, gpointer user_data); |
200 static void cancel_fetch_func(gpointer key, gpointer value, gpointer user_data); | 201 static void cancel_fetch_func(gpointer key, gpointer value, gpointer user_data); |
201 static gint get_service_type(PurpleConversation *conv); | 202 static gint get_service_type(PurpleConversation *conv); |
202 static GdkPixbuf *make_scaled_pixbuf(const gchar *url_text, gsize len); | 203 static GdkPixbuf *make_scaled_pixbuf(const gchar *url_text, gsize len); |
205 static void parse_status(xmlNode *status, status_t *st); | 206 static void parse_status(xmlNode *status, status_t *st); |
206 static void get_status_with_api_cb(PurpleUtilFetchUrlData *url_data, gpointer user_data, const gchar *url_text, size_t len, const gchar *error_message); | 207 static void get_status_with_api_cb(PurpleUtilFetchUrlData *url_data, gpointer user_data, const gchar *url_text, size_t len, const gchar *error_message); |
207 static gboolean get_status_with_api(gpointer data); | 208 static gboolean get_status_with_api(gpointer data); |
208 static void read_timestamp(const char *str, struct tm *res); | 209 static void read_timestamp(const char *str, struct tm *res); |
209 | 210 |
211 static void strip_markup(gchar **str, gboolean escape); | |
212 static gchar *strip_html_markup(const gchar *src); | |
213 static GtkWidget *prefs_get_frame(PurplePlugin *plugin); | |
214 | |
215 | |
210 #endif | 216 #endif |