diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-07 22:06:24 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-07 22:06:24 +0100 |
commit | 203a2d2e8857e4c83f8f5e1a89de03ea08538cb2 (patch) | |
tree | a55e88fda74a3c77c29890e6da53e1c2b6e987d5 /protocols/twitter/twitter.h | |
parent | 7b87539aedd967884d4e4eed75d1052a233720eb (diff) |
Allow protocol modules to keep per-contact protocol-specific data. Use
this in the Twitter module to remember the id and timestamp of a contact's
last tweet, which can later be used for simple replies/retweets.
Diffstat (limited to 'protocols/twitter/twitter.h')
-rw-r--r-- | protocols/twitter/twitter.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/twitter/twitter.h b/protocols/twitter/twitter.h index 9485520f..0acb3b4d 100644 --- a/protocols/twitter/twitter.h +++ b/protocols/twitter/twitter.h @@ -57,6 +57,12 @@ struct twitter_data char *prefix; /* Used to generate contact + channel name. */ }; +struct twitter_user_data +{ + guint64 last_id; + time_t last_time; +}; + /** * This has the same function as the msn_connections GSList. We use this to * make sure the connection is still alive in callbacks before we do anything |