From 15866e29c0a0c3bc943bb4929ef25dc68f5d4002 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 2 May 2002 01:15:01 +0000 Subject: Now takes a CamelURL argument rather than a GHashTable *settings argument. 2002-04-29 Jeffrey Stedfast * camel-provider.c (camel_provider_auto_detect): Now takes a CamelURL argument rather than a GHashTable *settings argument. svn path=/trunk/; revision=16661 --- camel/camel-provider.c | 4 ++-- camel/camel-provider.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/camel/camel-provider.c b/camel/camel-provider.c index 30d5f729f9..f8484278d7 100644 --- a/camel/camel-provider.c +++ b/camel/camel-provider.c @@ -177,13 +177,13 @@ camel_provider_load (CamelSession *session, const char *path, CamelException *ex * Returns 0 on success or -1 on fail. **/ int -camel_provider_auto_detect (CamelProvider *provider, GHashTable *settings, +camel_provider_auto_detect (CamelProvider *provider, CamelURL *url, GHashTable **auto_detected, CamelException *ex) { g_return_val_if_fail (provider != NULL, -1); if (provider->auto_detect) { - return provider->auto_detect (settings, auto_detected, ex); + return provider->auto_detect (url, auto_detected, ex); } else { *auto_detected = NULL; return 0; diff --git a/camel/camel-provider.h b/camel/camel-provider.h index 606271050d..5579a8c3d7 100644 --- a/camel/camel-provider.h +++ b/camel/camel-provider.h @@ -37,6 +37,7 @@ extern "C" { #include #include #include +#include #define CAMEL_PROVIDER(obj) ((CamelProvider *)(obj)) @@ -129,7 +130,7 @@ typedef struct { #define CAMEL_PROVIDER_CONF_DEFAULT_HOSTNAME { CAMEL_PROVIDER_CONF_LABEL, "hostname", NULL, N_("_Host:"), NULL } #define CAMEL_PROVIDER_CONF_DEFAULT_PATH { CAMEL_PROVIDER_CONF_ENTRY, "path", NULL, N_("_Path:"), "" } -typedef int (*CamelProviderAutoDetectFunc) (GHashTable *settings, GHashTable **auto_detected, CamelException *ex); +typedef int (*CamelProviderAutoDetectFunc) (CamelURL *url, GHashTable **auto_detected, CamelException *ex); typedef struct { /* Provider name used in CamelURLs. */ @@ -184,7 +185,7 @@ void camel_provider_load (CamelSession *session, const char *path, CamelExceptio void camel_provider_module_init (CamelSession *session); -int camel_provider_auto_detect (CamelProvider *provider, GHashTable *settings, +int camel_provider_auto_detect (CamelProvider *provider, CamelURL *url, GHashTable **auto_detected, CamelException *ex); #ifdef __cplusplus -- cgit v1.2.3