source: mainline/uspace/lib/uri/uri.h@ d7f7a4a

Last change on this file since d7f7a4a was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 4 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 869 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2013 Martin Sucha
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup uri
8 * @{
9 */
10/**
11 * @file
12 */
13
14#ifndef URI_URI_H_
15#define URI_URI_H_
16
17typedef struct {
18 char *scheme;
19 char *user_info;
20 char *user_credential;
21 char *host;
22 char *port;
23 char *path;
24 char *query;
25 char *fragment;
26} uri_t;
27
28extern uri_t *uri_parse(const char *);
29extern errno_t uri_scheme_parse(const char *, const char **);
30extern bool uri_scheme_validate(const char *);
31extern errno_t uri_percent_parse(const char *, const char **, uint8_t *);
32extern errno_t uri_user_info_parse(const char *, const char **);
33extern bool uri_user_info_validate(const char *);
34extern errno_t uri_port_parse(const char *, const char **);
35extern bool uri_port_validate(const char *);
36extern bool uri_validate(uri_t *);
37extern void uri_destroy(uri_t *);
38
39#endif
40
41/** @}
42 */
Note: See TracBrowser for help on using the repository browser.