mirror of
https://github.com/sheumann/DiskBrowser.git
synced 2024-12-21 20:29:17 +00:00
26 lines
398 B
C
26 lines
398 B
C
|
#ifndef URLPARSER_H
|
||
|
#define URLPARSER_H
|
||
|
|
||
|
#ifdef __ORCAC__
|
||
|
# include <types.h>
|
||
|
#else
|
||
|
typedef _Bool Boolean;
|
||
|
#endif
|
||
|
|
||
|
typedef struct URLParts {
|
||
|
char *scheme;
|
||
|
char *username;
|
||
|
char *password;
|
||
|
char *host;
|
||
|
char *port;
|
||
|
char *path; /* Omits leading '/'. Includes query, if any. */
|
||
|
char *fragment;
|
||
|
|
||
|
Boolean errorFound;
|
||
|
} URLParts;
|
||
|
|
||
|
|
||
|
URLParts ParseURL(char *url);
|
||
|
|
||
|
#endif
|