|
|
| version 1.1.1.1, 2010/02/23 22:54:52 | version 1.1.1.1.2.1, 2010/03/02 15:10:19 |
|---|---|
| Line 10 | Line 10 |
| #define __AITIO_H | #define __AITIO_H |
| typedef struct _tagURLItem { | |
| int vallen; | |
| char *value; | |
| } url_Item_t; | |
| struct tagIOURL { | |
| unsigned char url_line[BUFSIZ]; | |
| url_Item_t url_tech; | |
| url_Item_t url_user; | |
| url_Item_t url_pass; | |
| url_Item_t url_host; | |
| url_Item_t url_port; | |
| url_Item_t url_path; | |
| url_Item_t url_args; | |
| char *url_reserved; | |
| }; | |
| // io_GetErrno() Get error code of last operation | // io_GetErrno() Get error code of last operation |
| inline int io_GetErrno(); | inline int io_GetErrno(); |
| // io_GetError() Get error text of last operation | // io_GetError() Get error text of last operation |
| Line 62 int ioRegexGet(const char *csRegex, const char *csData | Line 81 int ioRegexGet(const char *csRegex, const char *csData |
| * return: NULL not match or error; !=NULL allocated new string, must be free after use! | * return: NULL not match or error; !=NULL allocated new string, must be free after use! |
| */ | */ |
| char *ioRegexReplace(const char *csRegex, const char *csData, const char *csNew); | char *ioRegexReplace(const char *csRegex, const char *csData, const char *csNew); |
| /* | |
| * ioURLGet() Parse and get data from input URL | |
| * @csURL = Input URL line | |
| * @url = Output parsed URL | |
| * return: 0 error format not find tech:// and return URL like path; | |
| -1 error:: can`t read; >0 ok, up bits for known elements | |
| */ | |
| int ioURLGet(const char *csURL, struct tagIOURL *url); | |
| #endif | #endif |