diff options
Diffstat (limited to 'protocols/twitter/twitter.h')
-rw-r--r-- | protocols/twitter/twitter.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/protocols/twitter/twitter.h b/protocols/twitter/twitter.h index 7cfd9148..5a1a4f63 100644 --- a/protocols/twitter/twitter.h +++ b/protocols/twitter/twitter.h @@ -100,7 +100,9 @@ struct twitter_user_data { #define TWITTER_LOG_LENGTH 256 struct twitter_log_data { guint64 id; - struct bee_user *bu; /* DANGER: can be a dead pointer. Check it first. */ + /* DANGER: bu can be a dead pointer. Check it first. + * twitter_message_id_from_command_arg() will do this. */ + struct bee_user *bu; }; /** @@ -110,6 +112,14 @@ struct twitter_log_data { */ extern GSList *twitter_connections; +/** + * Evil hack: Fake bee_user which will always point at the local user. + * Sometimes used as a return value by twitter_message_id_from_command_arg. + * NOT thread safe but don't you dare to even think of ever making BitlBee + * threaded. :-) + */ +extern bee_user_t twitter_log_local_user; + void twitter_login_finish(struct im_connection *ic); struct http_request; |