aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oauth.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-26 23:40:11 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-26 23:40:11 +0100
commitc42e8b907817fc76df4dc3b48d85858555102654 (patch)
tree25cc5dd76a35ec74045b643d566b6efd663cb365 /lib/oauth.h
parent713d6111cd754ff9eae4cfa1e6de82c9824d16db (diff)
OAuth, it lives!
Diffstat (limited to 'lib/oauth.h')
-rw-r--r--lib/oauth.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/oauth.h b/lib/oauth.h
index 4151d73f..30486b98 100644
--- a/lib/oauth.h
+++ b/lib/oauth.h
@@ -26,8 +26,17 @@
struct oauth_info;
typedef void (*oauth_cb)( struct oauth_info * );
+typedef enum
+{
+ OAUTH_INIT,
+ OAUTH_REQUEST_TOKEN,
+ OAUTH_ACCESS_TOKEN,
+} oauth_stage_t;
+
struct oauth_info
{
+ oauth_stage_t stage;
+
oauth_cb func;
void *data;