src/lib/url.h
changeset 15 a8d183e79ed9
parent 14 115067dfba55
child 16 74fb62022fb3
equal deleted inserted replaced
14:115067dfba55 15:a8d183e79ed9
     9  *  example.com
     9  *  example.com
    10  *  tcp://example.com:7348/
    10  *  tcp://example.com:7348/
    11  *  psql://postgres@localhost/test_db?charset=utf8
    11  *  psql://postgres@localhost/test_db?charset=utf8
    12  *  
    12  *  
    13  */
    13  */
       
    14 
       
    15 #include <sys/types.h>
    14 
    16 
    15 /*
    17 /*
    16  * The schema
    18  * The schema
    17  */
    19  */
    18 struct url_schema {
    20 struct url_schema {
    26 struct url_opts {
    28 struct url_opts {
    27     size_t count;
    29     size_t count;
    28     struct url_opt {
    30     struct url_opt {
    29         const char *key;
    31         const char *key;
    30         const char *value;
    32         const char *value;
    31     } *list;
    33     } **list;
    32 };
    34 };
    33 
    35 
    34 /*
    36 /*
    35  * A parsed URL
    37  * A parsed URL
    36  */
    38  */