mirror of
https://github.com/sheumann/DiskBrowser.git
synced 2024-11-28 22:50:23 +00:00
c237bd661f
This is adapted from NetDisk with minor changes.
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
|