music.c: cosmetix
[k8lowj.git] / src / liblj / getchallenge.h
blobe45d39a00fbc6c496a3cf395016f061ccc307222
1 /* liblivejournal - a client library for LiveJournal.
2 * Copyright (C) 2003-2004 Evan Martin <martine@danga.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
5 */
7 #ifndef __LIVEJOURNAL_GETCHALLENGE_H__
8 #define __LIVEJOURNAL_GETCHALLENGE_H__
10 #include "liblj/verb.h"
12 typedef enum {
13 LJ_GETCHALLENGE_MODE_SINGLE,
14 LJ_GETCHALLENGE_MODE_RECENT,
15 } LJGetChallengeMode;
17 typedef struct _LJGetChallenge {
18 LJVerb verb;
19 LJAuthScheme authscheme;
20 char *authschemestr; /* only if authscheme == LJ_AUTH_SCHEME_OTHER. */
21 LJChallenge challenge;
22 } LJGetChallenge;
24 LJGetChallenge* lj_getchallenge_new(LJUser *user);
25 void lj_getchallenge_free(LJGetChallenge *getchallenge);
27 #endif /* __LIVEJOURNAL_GETCHALLENGE_H__ */