1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* htmlurl.h |
---|
3 | |
---|
4 | Copyright (C) 1999 Helix Code, Inc. |
---|
5 | |
---|
6 | This library is free software; you can redistribute it and/or |
---|
7 | modify it under the terms of the GNU Library General Public |
---|
8 | License as published by the Free Software Foundation; either |
---|
9 | version 2 of the License, or (at your option) any later version. |
---|
10 | |
---|
11 | This library is distributed in the hope that it will be useful, |
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | Library General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU Library General Public License |
---|
17 | along with this library; see the file COPYING.LIB. If not, write to |
---|
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
19 | Boston, MA 02111-1307, USA. |
---|
20 | |
---|
21 | Author: Ettore Perazzoli (ettore@helixcode.com) |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef _HTMLURL_H |
---|
25 | #define _HTMLURL_H |
---|
26 | |
---|
27 | #include "htmltypes.h" |
---|
28 | #include "htmlenums.h" |
---|
29 | |
---|
30 | struct _HTMLURL { |
---|
31 | gchar *protocol; |
---|
32 | gchar *username; |
---|
33 | gchar *password; |
---|
34 | gchar *hostname; |
---|
35 | guint16 port; |
---|
36 | gchar *path; |
---|
37 | gchar *reference; |
---|
38 | }; |
---|
39 | typedef struct _HTMLURL HTMLURL; |
---|
40 | |
---|
41 | HTMLURL *html_url_new (const gchar *s); |
---|
42 | void html_url_destroy (HTMLURL *url); |
---|
43 | HTMLURL *html_url_dup (const HTMLURL *url, HTMLURLDupFlags flags); |
---|
44 | |
---|
45 | void html_url_set_protocol (HTMLURL *url, const gchar *protocol); |
---|
46 | void html_url_set_username (HTMLURL *url, const gchar *username); |
---|
47 | void html_url_set_password (HTMLURL *url, const gchar *password); |
---|
48 | void html_url_set_hostname (HTMLURL *url, const gchar *password); |
---|
49 | void html_url_set_port (HTMLURL *url, gushort port); |
---|
50 | void html_url_set_path (HTMLURL *url, const gchar *path); |
---|
51 | void html_url_set_reference (HTMLURL *url, const gchar *reference); |
---|
52 | |
---|
53 | const gchar *html_url_get_protocol (const HTMLURL *url); |
---|
54 | const gchar *html_url_get_username (const HTMLURL *url); |
---|
55 | const gchar *html_url_get_password (const HTMLURL *url); |
---|
56 | const gchar *html_url_get_hostname (const HTMLURL *url); |
---|
57 | gushort html_url_get_port (const HTMLURL *url); |
---|
58 | const gchar *html_url_get_path (const HTMLURL *url); |
---|
59 | const gchar *html_url_get_reference (const HTMLURL *url); |
---|
60 | |
---|
61 | gchar *html_url_to_string (const HTMLURL *url); |
---|
62 | |
---|
63 | HTMLURL *html_url_append_path (const HTMLURL *url, const gchar *path); |
---|
64 | |
---|
65 | #endif /* _HTMLURL_H */ |
---|