version 1.4.6.1, 2013/01/17 14:52:44
|
version 1.5, 2013/05/30 09:25:35
|
Line 55 char www_Error[STRSIZ];
|
Line 55 char www_Error[STRSIZ];
|
#pragma GCC visibility pop |
#pragma GCC visibility pop |
|
|
// www_GetErrno() Get error code of last operation |
// www_GetErrno() Get error code of last operation |
inline int | int |
www_GetErrno() |
www_GetErrno() |
{ |
{ |
return www_Errno; |
return www_Errno; |
} |
} |
|
|
// www_GetError() Get error text of last operation |
// www_GetError() Get error text of last operation |
inline const char * | const char * |
www_GetError() |
www_GetError() |
{ |
{ |
return www_Error; |
return www_Error; |
} |
} |
|
|
// www_SetErr() Set error to variables for internal use!!! |
// www_SetErr() Set error to variables for internal use!!! |
inline void | void |
www_SetErr(int eno, char *estr, ...) |
www_SetErr(int eno, char *estr, ...) |
{ |
{ |
va_list lst; |
va_list lst; |
Line 243 www_parseQuery(const char *str)
|
Line 243 www_parseQuery(const char *str)
|
* @name = Name of cgi variable |
* @name = Name of cgi variable |
* return: NULL not found or !=NULL value |
* return: NULL not found or !=NULL value |
*/ |
*/ |
inline const char * | const char * |
www_getValue(cgi_t * __restrict cgi, const char *name) |
www_getValue(cgi_t * __restrict cgi, const char *name) |
{ |
{ |
struct tagCGI *t; |
struct tagCGI *t; |
Line 361 www_delPair(cgi_t * __restrict cgi, const char *name)
|
Line 361 www_delPair(cgi_t * __restrict cgi, const char *name)
|
* @arg = Optional argument pass through callback |
* @arg = Optional argument pass through callback |
* return: -1 error or >-1 number of elements |
* return: -1 error or >-1 number of elements |
*/ |
*/ |
inline int | int |
www_listPairs(cgi_t * __restrict cgi, list_cb_t func, void *arg) |
www_listPairs(cgi_t * __restrict cgi, list_cb_t func, void *arg) |
{ |
{ |
register int ret = 0; |
register int ret = 0; |
Line 388 www_listPairs(cgi_t * __restrict cgi, list_cb_t func,
|
Line 388 www_listPairs(cgi_t * __restrict cgi, list_cb_t func,
|
* @output = file handle |
* @output = file handle |
* return: <1 error or >0 writed bytes |
* return: <1 error or >0 writed bytes |
*/ |
*/ |
inline int | int |
www_header(FILE *output) |
www_header(FILE *output) |
{ |
{ |
FILE *f = output ? output : stdout; |
FILE *f = output ? output : stdout; |
Line 589 www_parseMultiPart(const char *str, int ctlen, const c
|
Line 589 www_parseMultiPart(const char *str, int ctlen, const c
|
* @ct = Content type |
* @ct = Content type |
* return: NULL error or !=NULL attributes |
* return: NULL error or !=NULL attributes |
*/ |
*/ |
inline cgi_t * | cgi_t * |
www_parseAttributes(const char **ct) |
www_parseAttributes(const char **ct) |
{ |
{ |
struct tagCGI *t, *old = NULL; |
struct tagCGI *t, *old = NULL; |
Line 628 www_parseAttributes(const char **ct)
|
Line 628 www_parseAttributes(const char **ct)
|
* @name = Name of attribute variable |
* @name = Name of attribute variable |
* return: NULL not found or !=NULL value |
* return: NULL not found or !=NULL value |
*/ |
*/ |
inline ait_val_t * | ait_val_t * |
www_getAttribute(cgi_t * __restrict cgi, const char *name) |
www_getAttribute(cgi_t * __restrict cgi, const char *name) |
{ |
{ |
struct tagCGI *t; |
struct tagCGI *t; |