Mercurial > pidgin-twitter
comparison pidgin-twitter.h @ 205:bc1448e72b1b
workaround for that wassr sometimes provides 128 pixel icon with broad white borders.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 14 Aug 2008 16:20:22 +0900 |
parents | 6c6fe6375ce4 |
children | 99c4946e8449 |
comparison
equal
deleted
inserted
replaced
204:d66ad3343119 | 205:bc1448e72b1b |
---|---|
35 USER_FORMATTED, | 35 USER_FORMATTED, |
36 CHANNEL_WASSR, | 36 CHANNEL_WASSR, |
37 IMAGE_TWITTER, | 37 IMAGE_TWITTER, |
38 IMAGE_WASSR, | 38 IMAGE_WASSR, |
39 IMAGE_IDENTICA, | 39 IMAGE_IDENTICA, |
40 TAG_IDENTICA | 40 TAG_IDENTICA, |
41 SIZE_128_WASSR | |
41 }; | 42 }; |
42 | 43 |
43 /* service id */ | 44 /* service id */ |
44 enum { | 45 enum { |
45 unknown_service = -1, | 46 unknown_service = -1, |
147 #define P_CHANNEL "^(.*?<a .+?>[A-Za-z0-9_]+</a>: \\r?\\n?#)([A-Za-z0-9_]+) " | 148 #define P_CHANNEL "^(.*?<a .+?>[A-Za-z0-9_]+</a>: \\r?\\n?#)([A-Za-z0-9_]+) " |
148 #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" | 149 #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" |
149 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" | 150 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" |
150 #define P_IMAGE_IDENTICA "<img src=\"(http://avatar.identi.ca/[A-Za-z0-9-.]+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>" | 151 #define P_IMAGE_IDENTICA "<img src=\"(http://avatar.identi.ca/[A-Za-z0-9-.]+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>" |
151 #define P_TAG_IDENTICA "#([A-Za-z0-9]+)" | 152 #define P_TAG_IDENTICA "#([A-Za-z0-9]+)" |
152 | 153 #define P_SIZE_128_WASSR "\\.128\\." |
153 | 154 |
154 /* twitter API specific macros */ | 155 /* twitter API specific macros */ |
155 #define TWITTER_BASE_URL "http://twitter.com" | 156 #define TWITTER_BASE_URL "http://twitter.com" |
156 #define TWITTER_STATUS_GET "GET /statuses/friends_timeline.xml HTTP/1.1\r\n" \ | 157 #define TWITTER_STATUS_GET "GET /statuses/friends_timeline.xml HTTP/1.1\r\n" \ |
157 "Host: twitter.com\r\n" \ | 158 "Host: twitter.com\r\n" \ |