Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
sofia-sip
Commits
6f04d7d0
Commit
6f04d7d0
authored
Sep 19, 2007
by
Pekka Pessi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url: updated documentation
darcs-hash:20070919172950-65a35-a615d7ceeb0e83266c8c8bd28424b6c4fb3b422e.gz
parent
dabd857a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
11 deletions
+16
-11
libsofia-sip-ua/url/Doxyfile.in
libsofia-sip-ua/url/Doxyfile.in
+2
-1
libsofia-sip-ua/url/Makefile.am
libsofia-sip-ua/url/Makefile.am
+8
-4
libsofia-sip-ua/url/url.docs
libsofia-sip-ua/url/url.docs
+3
-5
libsofia-sip-ua/url/url_tag.c
libsofia-sip-ua/url/url_tag.c
+2
-0
libsofia-sip-ua/url/urlmap.c
libsofia-sip-ua/url/urlmap.c
+1
-1
No files found.
libsofia-sip-ua/url/Doxyfile.in
View file @
6f04d7d0
PROJECT_NAME = "url"
OUTPUT_DIRECTORY = ../docs/html/url
INPUT = @srcdir@/url.docs @srcdir@/sofia-sip @srcdir@ .
INPUT = @srcdir@/url.docs @srcdir@/sofia-sip/url.h @srcdir@/url.c
INPUT += @srcdir@/url_tag.c
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
...
...
libsofia-sip-ua/url/Makefile.am
View file @
6f04d7d0
...
...
@@ -17,7 +17,7 @@ INCLUDES = -I$(srcdir)/../bnf -I../bnf \
noinst_LTLIBRARIES
=
liburl.la
check_PROGRAMS
=
torture_url
test_urlmap
check_PROGRAMS
=
torture_url
# ----------------------------------------------------------------------
# Rules for building the targets
...
...
@@ -37,14 +37,18 @@ LDADD = liburl.la \
../ipt/libipt.la
\
../su/libsu.la
test_urlmap_SOURCES
=
urlmap.c urlmap.h
test_urlmap_CFLAGS
=
$(CFLAGS)
-DTEST_URLMAP
=
1
# ----------------------------------------------------------------------
# Install and distribution rules
EXTRA_DIST
=
url.docs
$(BUILT_SOURCES)
# ----------------------------------------------------------------------
# urlmap is not used
#check_PROGRAMS += test_urlmap
#test_urlmap_SOURCES = urlmap.c urlmap.h
#test_urlmap_CFLAGS = $(CFLAGS) -DTEST_URLMAP=1
EXTRA_DIST
+=
urlmap.c urlmap.h
# ----------------------------------------------------------------------
# Tests
...
...
libsofia-sip-ua/url/url.docs
View file @
6f04d7d0
...
...
@@ -20,8 +20,7 @@ structure.
@note
Please note that we use terms URL and URI interchangeable.
The formal URI syntax is defined in the
<a href="http://www.ietf.org/rfc/rfc2396.txt">RFC2396</a>.
The formal URI syntax is defined in the @RFC3986.
The URLs consist of a subset of printable ASCII (ECMA-5) characters. The
subset excludes space and characters commonly used as @e delimiters in
...
...
@@ -51,7 +50,7 @@ and @b pres: URLs:
<i>host</i> [":" <i>port</i> ] ] [";" <i>params</i> ] ["?" <i>query</i> ]
["#" <i>fragment</i> ]
Note that
also "*" is
consider
ed
to be a valid URL (with type #url_any).
Note that
url parser also
consider
s "*"
to be a valid URL (with type #url_any).
For example: \n
@code
...
...
@@ -103,7 +102,7 @@ newly allocated string.
@subsection url_reference Functions and Macros in URL Module
The include file <url.h> contains the types, function and macros of URL
The include file <
sofia-sip/
url.h> contains the types, function and macros of URL
module. The functions and macros are listed here for the reference, too.
The most important functions and macros for manipulating URLs are here:
@code
...
...
@@ -123,7 +122,6 @@ int url_cmp_all(url_t const *a, url_t const *b);
isize_t url_param(char const *params, char const *tag,
char value[], isize_t vlen);
int url_has_param(url_t const *url, char const *name);
isize_t url_have_param(char const *params, char const *tag);
int url_param_add(su_home_t *h, url_t *url, char const *param);
@endcode
...
...
libsofia-sip-ua/url/url_tag.c
View file @
6f04d7d0
...
...
@@ -126,6 +126,8 @@ int urltag_scan(tag_type_t tt, su_home_t *home,
url_t
*
url
;
char
*
s
;
(
void
)
tt
;
for
(
len
=
0
;
!
IS_EXCLUDED
(
str
[
len
]);
len
++
)
;
...
...
libsofia-sip-ua/url/urlmap.c
View file @
6f04d7d0
...
...
@@ -22,7 +22,7 @@
*
*/
/**
/**
@internal
* @file urlmap.c
* @brief Mapping with hierarchical URLs.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment