diff options
author | Dan Winship <danw@src.gnome.org> | 2002-11-05 19:45:46 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-11-05 19:45:46 +0000 |
commit | d4629510fb547f3ed2cce829ea1ec0c73bc5647c (patch) | |
tree | 19ee5b614bf12a0aa2ebd29d8a9fd2535dea8386 /libsoup/soup-auth.h | |
parent | 6314c214c92e43c84be54754013580ecb475b486 (diff) | |
download | libsoup-d4629510fb547f3ed2cce829ea1ec0c73bc5647c.tar.gz |
Split libsoup out of soup. ChangeLog.old contains the original soup
* Split libsoup out of soup. ChangeLog.old contains the original
soup ChangeLog.
* Makefile.am, etc: Fix things up to work with the new directory
layout. Disable docs until we fix them.
* autogen.sh: Use gnome-autogen.sh
* configure.in: Require autoconf 2.53. Remove stuff that was only
needed for httpd or wsdl code. Remove glib1 support. Bump version
to 2.0.
* libsoup/Makefile.am: Rename library to libsoup-2.0, put includes
in ${includedir}/soup-2.0
* libsoup/*: Merge soup-0-7 back onto the trunk. Remove
SOAP-specific stuff, Windows support, and other things that
weren't being maintained.
* soup-config.in, soupConf.sh: Kill these. We only support
pkg-config now.
Diffstat (limited to 'libsoup/soup-auth.h')
-rw-r--r-- | libsoup/soup-auth.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/libsoup/soup-auth.h b/libsoup/soup-auth.h index 75a49459..f1634539 100644 --- a/libsoup/soup-auth.h +++ b/libsoup/soup-auth.h @@ -15,13 +15,22 @@ #include <libsoup/soup-message.h> #include <libsoup/soup-misc.h> -typedef struct _SoupAuth SoupAuth; +typedef enum _SoupAuthStatus SoupAuthStatus; +typedef struct _SoupAuth SoupAuth; + +enum _SoupAuthStatus { + SOUP_AUTH_STATUS_INVALID = 0, + SOUP_AUTH_STATUS_PENDING, + SOUP_AUTH_STATUS_FAILED, + SOUP_AUTH_STATUS_SUCCESSFUL +}; + struct _SoupAuth { SoupAuthType type; gchar *realm; - gboolean (*compare_func) (SoupAuth *a, - SoupAuth *b); + SoupAuthStatus status; + SoupMessage *controlling_msg; void (*parse_func) (SoupAuth *auth, const gchar *header); @@ -40,7 +49,11 @@ SoupAuth *soup_auth_lookup (SoupContext *ctx); void soup_auth_set_context (SoupAuth *auth, SoupContext *ctx); -SoupAuth *soup_auth_new_from_header_list (const GSList *header); +void soup_auth_invalidate (SoupAuth *auth, + SoupContext *ctx); + +SoupAuth *soup_auth_new_from_header_list (const SoupUri *uri, + const GSList *header); void soup_auth_initialize (SoupAuth *auth, const SoupUri *uri); @@ -50,7 +63,4 @@ void soup_auth_free (SoupAuth *auth); gchar *soup_auth_authorize (SoupAuth *auth, SoupMessage *msg); -gboolean soup_auth_invalidates_prior (SoupAuth *new_auth, - SoupAuth *old_auth); - #endif /* SOUP_AUTH_H */ |