Details
CouchdbCredentialsPrivate
typedef struct _CouchdbCredentialsPrivate CouchdbCredentialsPrivate;
CouchdbCredentials
typedef struct _CouchdbCredentials CouchdbCredentials;
CouchdbCredentialsClass
typedef struct {
GObjectClass parent_class;
} CouchdbCredentialsClass;
enum CouchdbCredentialsType
typedef enum {
COUCHDB_CREDENTIALS_TYPE_UNKNOWN = -1,
COUCHDB_CREDENTIALS_TYPE_OAUTH,
COUCHDB_CREDENTIALS_TYPE_USERNAME_AND_PASSWORD
} CouchdbCredentialsType;
couchdb_credentials_new_with_oauth ()
CouchdbCredentials * couchdb_credentials_new_with_oauth (const gchar *consumer_key
,
const gchar *consumer_secret
,
const gchar *token_key
,
const gchar *token_secret
);
couchdb_credentials_new_with_username_and_password ()
CouchdbCredentials * couchdb_credentials_new_with_username_and_password
(const gchar *username
,
const gchar *password
);
COUCHDB_CREDENTIALS_ITEM_OAUTH_CONSUMER_KEY
#define COUCHDB_CREDENTIALS_ITEM_OAUTH_CONSUMER_KEY "oauth_consumer_key"
COUCHDB_CREDENTIALS_ITEM_OAUTH_CONSUMER_SECRET
#define COUCHDB_CREDENTIALS_ITEM_OAUTH_CONSUMER_SECRET "oauth_consumer_secret"
COUCHDB_CREDENTIALS_ITEM_OAUTH_TOKEN_KEY
#define COUCHDB_CREDENTIALS_ITEM_OAUTH_TOKEN_KEY "oauth_token_key"
COUCHDB_CREDENTIALS_ITEM_OAUTH_TOKEN_SECRET
#define COUCHDB_CREDENTIALS_ITEM_OAUTH_TOKEN_SECRET "oauth_token_secret"
COUCHDB_CREDENTIALS_ITEM_USERNAME
#define COUCHDB_CREDENTIALS_ITEM_USERNAME "username"
COUCHDB_CREDENTIALS_ITEM_PASSWORD
#define COUCHDB_CREDENTIALS_ITEM_PASSWORD "password"
couchdb_credentials_get_item ()
const gchar * couchdb_credentials_get_item (CouchdbCredentials *credentials
,
const gchar *item
);
couchdb_credentials_set_item ()
void couchdb_credentials_set_item (CouchdbCredentials *credentials
,
const gchar *item
,
const gchar *value
);