source: trunk/third/gtkhtml/src/htmlurl.h @ 16767

Revision 16767, 2.3 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16766, which included commits to RCS files with non-trunk default branches.
Line 
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
30struct _HTMLURL {
31        gchar *protocol;
32        gchar *username;
33        gchar *password;
34        gchar *hostname;
35        guint16 port;
36        gchar *path;
37        gchar *reference;
38};
39typedef struct _HTMLURL HTMLURL;
40
41HTMLURL *html_url_new (const gchar *s);
42void html_url_destroy (HTMLURL *url);
43HTMLURL *html_url_dup (const HTMLURL *url, HTMLURLDupFlags flags);
44
45void html_url_set_protocol (HTMLURL *url, const gchar *protocol);
46void html_url_set_username (HTMLURL *url, const gchar *username);
47void html_url_set_password (HTMLURL *url, const gchar *password);
48void html_url_set_hostname (HTMLURL *url, const gchar *password);
49void html_url_set_port (HTMLURL *url, gushort port);
50void html_url_set_path (HTMLURL *url, const gchar *path);
51void html_url_set_reference (HTMLURL *url, const gchar *reference);
52
53const gchar *html_url_get_protocol (const HTMLURL *url);
54const gchar *html_url_get_username (const HTMLURL *url);
55const gchar *html_url_get_password (const HTMLURL *url);
56const gchar *html_url_get_hostname (const HTMLURL *url);
57gushort html_url_get_port (const HTMLURL *url);
58const gchar *html_url_get_path (const HTMLURL *url);
59const gchar *html_url_get_reference (const HTMLURL *url);
60
61gchar *html_url_to_string (const HTMLURL *url);
62
63HTMLURL *html_url_append_path (const HTMLURL *url, const gchar *path);
64
65#endif /* _HTMLURL_H */
Note: See TracBrowser for help on using the repository browser.