Changeset 5ebff60 for protocols/twitter/twitter.h
- Timestamp:
- 2015-02-20T22:50:54Z (9 years ago)
- Branches:
- master
- Children:
- 0b9daac, 3d45471, 7733b8c
- Parents:
- af359b4
- git-author:
- Indent <please@…> (19-02-15 05:47:20)
- git-committer:
- dequis <dx@…> (20-02-15 22:50:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.h
raf359b4 r5ebff60 29 29 30 30 #ifdef DEBUG_TWITTER 31 #define debug( text... ) imcb_log( ic, text);31 #define debug(text ...) imcb_log(ic, text); 32 32 #else 33 #define debug( text...)33 #define debug(text ...) 34 34 #endif 35 35 36 typedef enum 37 { 36 typedef enum { 38 37 TWITTER_HAVE_FRIENDS = 0x00001, 39 38 TWITTER_MODE_ONE = 0x00002, … … 45 44 } twitter_flags_t; 46 45 47 typedef enum 48 { 46 typedef enum { 49 47 TWITTER_FILTER_TYPE_FOLLOW = 0, 50 48 TWITTER_FILTER_TYPE_TRACK … … 53 51 struct twitter_log_data; 54 52 55 struct twitter_data 56 { 53 struct twitter_data { 57 54 char* user; 58 55 struct oauth_info *oauth_info; … … 65 62 GSList *follow_ids; 66 63 GSList *filters; 67 64 68 65 guint64 last_status_id; /* For undo */ 69 66 gint main_loop_id; … … 74 71 gint http_fails; 75 72 twitter_flags_t flags; 76 73 77 74 /* set base_url */ 78 75 gboolean url_ssl; … … 82 79 83 80 char *prefix; /* Used to generate contact + channel name. */ 84 81 85 82 /* set show_ids */ 86 83 struct twitter_log_data *log; … … 89 86 90 87 #define TWITTER_FILTER_UPDATE_WAIT 3000 91 struct twitter_filter 92 { 88 struct twitter_filter { 93 89 twitter_filter_type_t type; 94 90 char *text; … … 97 93 }; 98 94 99 struct twitter_user_data 100 { 95 struct twitter_user_data { 101 96 guint64 last_id; 102 97 time_t last_time; … … 104 99 105 100 #define TWITTER_LOG_LENGTH 256 106 struct twitter_log_data 107 { 101 struct twitter_log_data { 108 102 guint64 id; 109 103 struct bee_user *bu; /* DANGER: can be a dead pointer. Check it first. */ … … 111 105 112 106 /** 113 * This has the same function as the msn_connections GSList. We use this to 107 * This has the same function as the msn_connections GSList. We use this to 114 108 * make sure the connection is still alive in callbacks before we do anything 115 109 * else. … … 117 111 extern GSList *twitter_connections; 118 112 119 void twitter_login_finish( struct im_connection *ic);113 void twitter_login_finish(struct im_connection *ic); 120 114 121 115 struct http_request; 122 char *twitter_parse_error( struct http_request *req);116 char *twitter_parse_error(struct http_request *req); 123 117 124 void twitter_log(struct im_connection *ic, char *format, ... 118 void twitter_log(struct im_connection *ic, char *format, ...); 125 119 struct groupchat *twitter_groupchat_init(struct im_connection *ic); 126 120
Note: See TracChangeset
for help on using the changeset viewer.