aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-03-29 04:51:58 +0800
committerDan Winship <danw@src.gnome.org>2000-03-29 04:51:58 +0800
commit207652677441264ca1e51d06898b37ea4164c8e2 (patch)
treeded681c259297bf4b25a83fb9cd1bccc57fe4baf /camel/camel-service.h
parentc3b6d117ee155a571d8c4da01b81b6855e26e6f6 (diff)
downloadgsoc2013-evolution-207652677441264ca1e51d06898b37ea4164c8e2.tar.gz
gsoc2013-evolution-207652677441264ca1e51d06898b37ea4164c8e2.tar.zst
gsoc2013-evolution-207652677441264ca1e51d06898b37ea4164c8e2.zip
convenience functions to canonicalize the host and port values of a
* camel-service.c (camel_service_gethost, camel_service_getport): convenience functions to canonicalize the host and port values of a service's URL. * providers/pop3/camel-pop3-store.c: use them svn path=/trunk/; revision=2216
Diffstat (limited to 'camel/camel-service.h')
-rw-r--r--camel/camel-service.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/camel-service.h b/camel/camel-service.h
index 521db58104..2da9c57f69 100644
--- a/camel/camel-service.h
+++ b/camel/camel-service.h
@@ -35,6 +35,7 @@ extern "C" {
#endif /* __cplusplus }*/
#include <gtk/gtk.h>
+#include <netdb.h>
#include "camel-types.h"
#include "url-util.h"
@@ -114,6 +115,15 @@ GList * camel_service_query_auth_types (CamelService *service);
void camel_service_free_auth_types (CamelService *service,
GList *authtypes);
+/* convenience functions */
+struct hostent * camel_service_gethost (CamelService *service,
+ CamelException *ex);
+int camel_service_getport (CamelService *service,
+ char *default_name,
+ int default_number,
+ char *proto,
+ CamelException *ex);
+
/* Standard Gtk function */
GtkType camel_service_get_type (void);