| Evolution-Data-Server Manual: Utilities (libedataserver) | ||||
|---|---|---|---|---|
gchar * e_url_shroud (constgchar *url);gboolean e_url_equal (constgchar *url1, constgchar *url2); EUri; EUri * e_uri_new (constgchar *uri_string);void e_uri_free (EUri *uri); constgchar * e_uri_get_param (EUri *uri, constgchar *name); EUri * e_uri_copy (EUri *uri);gchar * e_uri_to_string (EUri *uri,gboolean show_password);
gchar * e_url_shroud (constgchar *url);
Removes the moniker (i.e. mailto:) from a url.
|
The url to shroud. |
Returns : |
The newly-allocated shrouded url. |
gboolean e_url_equal (constgchar *url1, constgchar *url2);
Checks two urls for equality, after first removing any monikers on the urls.
|
The first url to compare. |
|
The second url to compare. |
Returns : |
TRUEFALSE |
typedef struct {
gchar *protocol;
gchar *user;
gchar *authmech;
gchar *passwd;
gchar *host;
gint port;
gchar *path;
GData *params;
gchar *query;
gchar *fragment;
} EUri;
A structure representing a URI.
|
The protocol to use. |
|
A user name. |
|
The authentication mechanism. |
|
The connection password. |
|
The host name. |
|
The port number. |
|
The file path on the host. |
|
Additional parameters. |
|
|
|
EUri * e_uri_new (constgchar *uri_string);
Creates an EUri representation of the uri given in uri_string.
void e_uri_free (EUri *uri);
Frees the memory of an EUri structure.
|
A pointer to the EUri to free. |
constgchar * e_uri_get_param (EUri *uri, constgchar *name);
Retrieves the value of the parameter associated with name in uri.
|
The EUri to get the parameter from. |
|
The name of the parameter to get. |
Returns : |
The value of the parameter. |
EUri * e_uri_copy (EUri *uri);
Makes a copy of uri.
|
The EUri to copy. |
Returns : |
The newly-allocated copy of uri.
|
gchar * e_uri_to_string (EUri *uri,gboolean show_password);
Creates a string representation of uri. The password will only be
included in the string if show_password is set to TRUE
|
The EUri to convert to a string. |
|
Whether or not to show the password in the string. |
Returns : |
The string representation of uri.
|