aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-02 09:15:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-02 09:15:01 +0800
commit15866e29c0a0c3bc943bb4929ef25dc68f5d4002 (patch)
treeb1ced7fcf7d798dcdc78d8f55206bacb4737a858
parent9a7c54c193f2e231b274f70df7b124e87db67676 (diff)
downloadgsoc2013-evolution-15866e29c0a0c3bc943bb4929ef25dc68f5d4002.tar.gz
gsoc2013-evolution-15866e29c0a0c3bc943bb4929ef25dc68f5d4002.tar.zst
gsoc2013-evolution-15866e29c0a0c3bc943bb4929ef25dc68f5d4002.zip
Now takes a CamelURL argument rather than a GHashTable *settings argument.
2002-04-29 Jeffrey Stedfast <fejj@ximian.com> * camel-provider.c (camel_provider_auto_detect): Now takes a CamelURL argument rather than a GHashTable *settings argument. svn path=/trunk/; revision=16661
-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