1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2010 Red Hat, Inc.
6 #ifndef SOUP_CONNECTION_AUTH_H
7 #define SOUP_CONNECTION_AUTH_H 1
9 #include <libsoup/soup-auth.h>
13 #define SOUP_TYPE_CONNECTION_AUTH (soup_connection_auth_get_type ())
14 #define SOUP_CONNECTION_AUTH(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), SOUP_TYPE_CONNECTION_AUTH, SoupConnectionAuth))
15 #define SOUP_CONNECTION_AUTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_CONNECTION_AUTH, SoupConnectionAuthClass))
16 #define SOUP_IS_CONNECTION_AUTH(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), SOUP_TYPE_CONNECTION_AUTH))
17 #define SOUP_IS_CONNECTION_AUTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOUP_TYPE_CONNECTION_AUTH))
18 #define SOUP_CONNECTION_AUTH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_CONNECTION_AUTH, SoupConnectionAuthClass))
20 typedef struct SoupConnectionAuthPrivate SoupConnectionAuthPrivate;
25 SoupConnectionAuthPrivate *priv;
29 SoupAuthClass parent_class;
31 gpointer (*create_connection_state) (SoupConnectionAuth *auth);
32 void (*free_connection_state) (SoupConnectionAuth *auth,
35 gboolean (*update_connection) (SoupConnectionAuth *auth,
37 const char *auth_header,
39 char *(*get_connection_authorization) (SoupConnectionAuth *auth,
42 gboolean (*is_connection_ready) (SoupConnectionAuth *auth,
45 } SoupConnectionAuthClass;
47 SOUP_AVAILABLE_IN_2_42
48 GType soup_connection_auth_get_type (void);
52 #endif /* SOUP_CONNECTION_AUTH_H */