mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-11-27 19:49:38 +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
|