aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2015-05-04 23:21:57 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2015-05-04 23:21:57 +0200
commit5ca141685d78cb372acd0e9aded36175cba957a3 (patch)
treee18b13d32ecc35ea1bac07a2ca794a4cfb378ef8 /protocols/twitter/twitter.h
parent70ec7ab33202b933a88e04122140a815a7d2081e (diff)
parentc43146d9308aea2025c0a0520c9e2d40758d9e8d (diff)
Merge branch 'wilmer-twitter'
Diffstat (limited to 'protocols/twitter/twitter.h')
-rw-r--r--protocols/twitter/twitter.h12
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;