00001
00002
00003
00004
00005 #ifndef _U_URI_H_
00006 #define _U_URI_H_
00007 #include "libu_conf.h"
00008
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012
00013 struct u_uri_s
00014 {
00015 char *scheme;
00016 char *user;
00017 char *pwd;
00018 char *host;
00019 short port;
00020 char *path;
00021 };
00022
00023 typedef struct u_uri_s u_uri_t;
00024
00025 int u_uri_parse (const char *s, u_uri_t **pu);
00026 void u_uri_free (u_uri_t *uri);
00027
00028 #ifdef __cplusplus
00029 }
00030 #endif
00031
00032 #endif