diff options
author | Dan Winship <danw@src.gnome.org> | 2000-04-06 11:52:39 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-04-06 11:52:39 +0800 |
commit | 2e4a5463075e387151afcdf61b74202a729944db (patch) | |
tree | 451716a6b189f11de18346a86716cbedf010f609 /camel/camel-service.h | |
parent | 080049ac37387efd71551bfdb661e15c0e1ce8ce (diff) | |
download | gsoc2013-evolution-2e4a5463075e387151afcdf61b74202a729944db.tar.gz gsoc2013-evolution-2e4a5463075e387151afcdf61b74202a729944db.tar.zst gsoc2013-evolution-2e4a5463075e387151afcdf61b74202a729944db.zip |
the URL RFC says the port must be numeric, so we don't want to do
* g_url_new really wanted to take a CamelException. So, rename
Gurl to CamelURL, g_url_* to camel_url_* (with camel_url_new
taking an exception), and url-util.[ch] to camel-url.[ch]. Also
force url->port to be numeric and remove camel_service_getport. (I
was confused before: the URL RFC says the port must be numeric, so
we don't want to do getportbyname.)
svn path=/trunk/; revision=2300
Diffstat (limited to 'camel/camel-service.h')
-rw-r--r-- | camel/camel-service.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/camel/camel-service.h b/camel/camel-service.h index 2da9c57f69..7b04ef24a8 100644 --- a/camel/camel-service.h +++ b/camel/camel-service.h @@ -37,7 +37,7 @@ extern "C" { #include <gtk/gtk.h> #include <netdb.h> #include "camel-types.h" -#include "url-util.h" +#include "camel-url.h" #define CAMEL_SERVICE_TYPE (camel_service_get_type ()) #define CAMEL_SERVICE(obj) (GTK_CHECK_CAST((obj), CAMEL_SERVICE_TYPE, CamelService)) @@ -51,7 +51,7 @@ struct _CamelService { CamelSession *session; gboolean connected; - Gurl *url; + CamelURL *url; int url_flags; }; @@ -64,7 +64,7 @@ typedef struct { gboolean (*connect) (CamelService *service, CamelException *ex); gboolean (*connect_with_url) (CamelService *service, - Gurl *url, + CamelURL *url, CamelException *ex); gboolean (*disconnect) (CamelService *service, CamelException *ex); @@ -96,7 +96,7 @@ typedef struct { /* public methods */ CamelService * camel_service_new (GtkType type, CamelSession *session, - Gurl *url, + CamelURL *url, CamelException *ex); gboolean camel_service_connect (CamelService *service, @@ -118,11 +118,7 @@ void camel_service_free_auth_types (CamelService *service, /* 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); |