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);
d>4-12/+11 * Add SIZE fieldmat2004-01-291-0/+1 * Obey CXX againache2004-01-291-1/+1 * Add SIZE.trevor2004-01-2835-0/+35 * Remove unrar since it is available in the better form (as source port)ache2004-01-272-3/+0 * Upgrade to 3.30ache2004-01-273-22/+21 * Update to 2.4.4.adamw2004-01-274-4/+4 * Upgrade to 3.30ache2004-01-262-4/+4 * - Give maintainership to Igor Pokrovsky <tiamat@comset.net>krion2004-01-242-2/+2 * Now gettext 0.12.1 is gettext-old.trevor2004-01-244-4/+4 * Fix WITH_UNZIP_UNREDUCE caseache2004-01-211-2/+2 * Fix plist construction and silence portlintache2004-01-162-6/+5 * Update to 2.4.3. Use lthack.adamw2004-01-166-28/+6 * Update to 1.08mat2004-01-132-2/+2 * Upgrade to 3.30 beta 4ache2004-01-102-3/+3 * - Update to 0.8.35pav2004-01-093-2/+12 * - Drop maintainership to ports@krion2004-01-081-1/+1 * Release maintainership.adamw2004-01-071-1/+1 * - Update to 1.02pav2003-12-284-28/+7 * - take maintainershipdinoex2003-12-281-1/+1 * [PATCH] simplify pear-* portsedwin2003-12-282-21/+6 * add jzip.org 0.2.0ijliao2003-12-245-0/+40 * - Use canonical form (ports@FreeBSD.org) in MAINTAINER linesergei2003-12-212-2/+2 * Add par2cmdline, a set of commandline tools for working with PAR v2 files,pav2003-12-185-0/+43 * Update to 0.7.1perky2003-12-162-2/+2 * Add RPM v4 support.netchild2003-12-142-2/+2 * upgrade to 0.8.34ijliao2003-12-134-15/+25 * - add missing file from the last updatenetchild2003-12-123-1/+107 * Replaces existing code with a version that doesn't slurp the entire filelinimon2003-12-113-12/+21 * Do not build private copy of zlib library. Use what is shipped with FreeBSDdemon2003-12-091-0/+15 * Upgrade to version 1.32.demon2003-12-092-2/+2 * Update to 1.09erwin2003-12-092-2/+2 * - AMD64 has no APMarved2003-11-261-3/+3 * USE_REINPLACE need be defined only when REINPLACE_CMD is used.trevor2003-11-172-2/+0 * Update maintainer field with my FreeBSD.org address.pav2003-11-141-1/+1 * Add the virtual category "pear" to the Makefiles of these ports.edwin2003-11-131-1/+1 * Cleanup runtime dependency list. Fileroller does not requirebland2003-11-112-30/+2 * Update to 2.4.2bland2003-11-106-6/+6 * Update to 0.7perky2003-11-102-2/+2 * Upgrade to 5.21jache2003-11-05