added qse_isdriveabspath().
enhanced httpd to accept drive path as a doc root for win/os2
This commit is contained in:
@ -102,6 +102,10 @@ QSE_EXPORT void* qse_mux_getxtn (
|
||||
qse_mux_t* mux
|
||||
);
|
||||
|
||||
QSE_EXPORT qse_mux_errnum_t qse_mux_geterrnum (
|
||||
qse_mux_t* mux
|
||||
);
|
||||
|
||||
QSE_EXPORT int qse_mux_insert (
|
||||
qse_mux_t* mux,
|
||||
const qse_mux_evt_t* evt
|
||||
|
@ -99,6 +99,14 @@ QSE_EXPORT int qse_ismbsdrivepath (
|
||||
const qse_mchar_t* path
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_ismbsdriveabspath() function determines if a path name is in the form
|
||||
* of a drive letter followed by a colon like A: and a path separator.
|
||||
*/
|
||||
QSE_EXPORT int qse_ismbsdriveabspath (
|
||||
const qse_mchar_t* path
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_ismbsdrivecurpath() function determines if a path name is in the form
|
||||
* of a drive letter followed by a colon like A:, without any trailing path.
|
||||
@ -165,6 +173,14 @@ QSE_EXPORT int qse_iswcsdrivepath (
|
||||
const qse_wchar_t* path
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_iswcsdriveabspath() function determines if a path name is in the form
|
||||
* of a drive letter followed by a colon like A: and a path separtor.
|
||||
*/
|
||||
QSE_EXPORT int qse_iswcsdriveabspath (
|
||||
const qse_wchar_t* path
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_iswcsdrivecurpath() function determines if a path name is in the form
|
||||
* of a drive letter followed by a colon like A:, without any trailing path.
|
||||
@ -215,11 +231,13 @@ QSE_EXPORT qse_size_t qse_canonwcspath (
|
||||
#if defined(QSE_CHAR_IS_MCHAR)
|
||||
# define qse_isabspath(p) qse_ismbsabspath(p)
|
||||
# define qse_isdrivepath(p) qse_ismbsdrivepath(p)
|
||||
# define qse_isdriveabspath(p) qse_ismbsdriveabspath(p)
|
||||
# define qse_isdrivecurpath(p) qse_ismbsdrivecurpath(p)
|
||||
# define qse_canonpath(p,c,f) qse_canonmbspath(p,c,f)
|
||||
#else
|
||||
# define qse_isabspath(p) qse_iswcsabspath(p)
|
||||
# define qse_isdrivepath(p) qse_iswcsdrivepath(p)
|
||||
# define qse_isdriveabspath(p) qse_iswcsdriveabspath(p)
|
||||
# define qse_isdrivecurpath(p) qse_iswcsdrivecurpath(p)
|
||||
# define qse_canonpath(p,c,f) qse_canonwcspath(p,c,f)
|
||||
#endif
|
||||
|
@ -49,7 +49,6 @@ enum qse_httpd_errnum_t
|
||||
QSE_HTTPD_EAGAIN,
|
||||
QSE_HTTPD_ENOBUF,
|
||||
|
||||
QSE_HTTPD_EIOMUX,
|
||||
QSE_HTTPD_EDISCON, /* client disconnnected */
|
||||
QSE_HTTPD_EBADREQ, /* bad request */
|
||||
QSE_HTTPD_ETASK
|
||||
|
Reference in New Issue
Block a user