aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oauth.h
diff options
context:
space:
mode:
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;