I#27 - [IMAPx] Ignore DavMail's CR/LF in BODYSTRUCTURE response
[evolution-data-server.git] / src / libedataserver / e-url.h
blob82627b82879a1c571954bafca2498d529c78517f
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* e-url.h
4 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
6 * This library is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation.
10 * This library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library. If not, see <http://www.gnu.org/licenses/>.
18 * Authors: Jon Trowbridge <trow@ximian.com>
19 * Rodrigo Moya <rodrigo@ximian.com>
22 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
23 #error "Only <libedataserver/libedataserver.h> should be included directly."
24 #endif
26 #ifndef EDS_DISABLE_DEPRECATED
28 /* Do not generate bindings. */
29 #ifndef __GI_SCANNER__
31 #ifndef E_URL_H
32 #define E_URL_H
34 #include <glib.h>
36 G_BEGIN_DECLS
38 typedef struct _EUri EUri;
40 /**
41 * EUri:
42 * @protocol: The protocol to use.
43 * @user: A user name.
44 * @authmech: The authentication mechanism.
45 * @passwd: The connection password.
46 * @host: The host name.
47 * @port: The port number.
48 * @path: The file path on the host.
49 * @params: Additional parameters.
50 * @query: The URI query.
51 * @fragment: The URI fragment.
53 * A structure representing a URI.
54 **/
55 struct _EUri {
56 gchar *protocol;
57 gchar *user;
58 gchar *authmech;
59 gchar *passwd;
60 gchar *host;
61 gint port;
62 gchar *path;
63 GData *params;
64 gchar *query;
65 gchar *fragment;
68 EUri * e_uri_new (const gchar *uri_string);
69 void e_uri_free (EUri *uri);
70 const gchar * e_uri_get_param (EUri *uri,
71 const gchar *name);
72 EUri * e_uri_copy (EUri *uri);
73 gchar * e_uri_to_string (EUri *uri,
74 gboolean show_password);
75 gchar * e_url_shroud (const gchar *url);
76 gboolean e_url_equal (const gchar *url1,
77 const gchar *url2);
79 G_END_DECLS
81 #endif /* E_URL_H */
83 #endif /* __GI_SCANNER__ */
85 #endif /* EDS_DISABLE_DEPRECATED */