Revision 21108,
1.4 KB
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21107,
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 | /* url-util.h : utility functions to parse URLs */ |
---|
3 | |
---|
4 | /* |
---|
5 | * Copyright 1999-2002 Ximian, Inc. |
---|
6 | */ |
---|
7 | |
---|
8 | |
---|
9 | #ifndef SOUP_URI_H |
---|
10 | #define SOUP_URI_H 1 |
---|
11 | |
---|
12 | #include <libsoup/soup-types.h> |
---|
13 | |
---|
14 | typedef GQuark SoupProtocol; |
---|
15 | #define SOUP_PROTOCOL_HTTP (g_quark_from_static_string ("http")) |
---|
16 | #define SOUP_PROTOCOL_HTTPS (g_quark_from_static_string ("https")) |
---|
17 | |
---|
18 | struct SoupUri { |
---|
19 | SoupProtocol protocol; |
---|
20 | |
---|
21 | char *user; |
---|
22 | char *passwd; |
---|
23 | |
---|
24 | char *host; |
---|
25 | guint port; |
---|
26 | |
---|
27 | char *path; |
---|
28 | char *query; |
---|
29 | |
---|
30 | char *fragment; |
---|
31 | |
---|
32 | /* Don't use this */ |
---|
33 | gboolean broken_encoding; |
---|
34 | }; |
---|
35 | |
---|
36 | SoupUri *soup_uri_new_with_base (const SoupUri *base, |
---|
37 | const char *uri_string); |
---|
38 | SoupUri *soup_uri_new (const char *uri_string); |
---|
39 | |
---|
40 | char *soup_uri_to_string (const SoupUri *uri, |
---|
41 | gboolean just_path); |
---|
42 | |
---|
43 | SoupUri *soup_uri_copy (const SoupUri *uri); |
---|
44 | SoupUri *soup_uri_copy_root (const SoupUri *uri); |
---|
45 | |
---|
46 | gboolean soup_uri_equal (const SoupUri *uri1, |
---|
47 | const SoupUri *uri2); |
---|
48 | |
---|
49 | void soup_uri_free (SoupUri *uri); |
---|
50 | |
---|
51 | char *soup_uri_encode (const char *part, |
---|
52 | const char *escape_extra); |
---|
53 | void soup_uri_decode (char *part); |
---|
54 | |
---|
55 | gboolean soup_uri_uses_default_port (const SoupUri *uri); |
---|
56 | |
---|
57 | #endif /*SOUP_URI_H*/ |
---|
Note: See
TracBrowser
for help on using the repository browser.