#ifndef __URL_H__ #define __URL_H__ #pragma once #include "config.h" #ifdef __cplusplus extern "C" { #endif TOOLKIT_API char* urlencode(unsigned char *string); TOOLKIT_API unsigned char* urldecode(char *string); TOOLKIT_API char* util_skipline(char *text); TOOLKIT_API char* util_getline(char *text); typedef struct { char *scheme; char *host; int port; char *path; } url_fields; TOOLKIT_API int url_parse(char *url, url_fields *uf); TOOLKIT_API void url_free_fields(url_fields *uf); #ifdef __cplusplus } // extern "C" { #endif #endif //__URL_H__