uri-util.h revision 7a545edbd1fca7a330bcb4a807002373ee18762a
#ifndef URI_UTIL_H
#define URI_UTIL_H
#include "net.h"
/*
* Generic URI parsing.
*/
struct uri_authority {
const char *enc_userinfo;
const char *host_literal;
unsigned int have_host_ip:1;
unsigned int have_port:1;
};
struct uri_parser {
const char *error;
};
ATTR_NULL(2);
ATTR_NULL(2);
const char *data);
/*
* Generic URI construction
*/
#endif