uri.h

Go to the documentation of this file.
00001 
00033 #ifndef _URI_H_
00034 #define _URI_H_
00035 
00036 #include "flute_defines.h"
00037 #include "../alclib/defines.h"
00038 
00044 typedef struct uri {
00045 
00046         char* scheme;   
00047         char* host;             
00048         char* port;             
00049         char* path;             
00050         char* params;   
00051         char* query;    
00052         char* frag;             
00053         char* user;             
00054         char* passwd;   
00056 } uri_t;
00057 
00065 uri_t* alloc_uri_struct(void);
00066 
00077 uri_t* parse_uri(char* uri_string, int len);
00078 
00088 char* uri_string(uri_t *uri);
00089 
00097 void free_uri(uri_t* uri);
00098 
00108 char* get_uri_host_and_path(uri_t* uri);
00109 
00118 void set_uri_scheme(uri_t* uri, char* scheme);
00119 
00128 void set_uri_user(uri_t* uri, char* user);
00129 
00138 void set_uri_host(uri_t* uri, char* host);
00139 
00148 void set_uri_path(uri_t* uri, char* path);
00149 
00150 #endif
00151 

Generated on Fri Mar 9 19:59:54 2007 for MAD-FCL by  doxygen 1.5.0