aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/camel-provider.c4
-rw-r--r--camel/camel-provider.h5
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 <camel/camel-types.h>
#include <camel/camel-object.h>
#include <camel/camel-exception.h>
+#include <camel/camel-url.h>
#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