fixed a formatting bug in qse_strtonwad()
renamed qse_httpd_addserver() to qse_httpd_attachserver(). added qse_httpd_detachserver(). added the predetach field to qse_httpd_server_t. added qse_httpd_cbstd_t and changed qse_htpd_loopstd() to accept this cbstd. enhanced server uri parsing to include 'docroot'. enhanced qse_httpd_entasktext() and added qse_httpd_entask_text() for internal use. added nwif functions like qse_nwifindextombs(). added qse_env_insertmbsa()/qse_env_insertwcsa()/qse_env_inserta(). enhanced TPROXY handling
This commit is contained in:
@ -22,6 +22,7 @@ pkginclude_HEADERS = \
|
||||
mbwc.h \
|
||||
mem.h \
|
||||
nwad.h \
|
||||
nwif.h \
|
||||
nwio.h \
|
||||
oht.h \
|
||||
opt.h \
|
||||
|
@ -53,9 +53,10 @@ SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__pkginclude_HEADERS_DIST = alg.h chr.h cp949.h cp950.h dll.h env.h \
|
||||
fio.h fma.h fmt.h fs.h gdl.h glob.h htb.h hton.h ipad.h lda.h \
|
||||
main.h map.h mbwc.h mem.h nwad.h nwio.h oht.h opt.h path.h \
|
||||
pio.h pma.h rbt.h rex.h sio.h sll.h slmb.h stdio.h str.h \
|
||||
time.h tio.h tre.h utf8.h xma.h Mmgr.hpp StdMmgr.hpp Mmged.hpp
|
||||
main.h map.h mbwc.h mem.h nwad.h nwif.h nwio.h oht.h opt.h \
|
||||
path.h pio.h pma.h rbt.h rex.h sio.h sll.h slmb.h stdio.h \
|
||||
str.h time.h tio.h tre.h utf8.h xma.h Mmgr.hpp StdMmgr.hpp \
|
||||
Mmged.hpp
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
@ -244,9 +245,9 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
pkginclude_HEADERS = alg.h chr.h cp949.h cp950.h dll.h env.h fio.h \
|
||||
fma.h fmt.h fs.h gdl.h glob.h htb.h hton.h ipad.h lda.h main.h \
|
||||
map.h mbwc.h mem.h nwad.h nwio.h oht.h opt.h path.h pio.h \
|
||||
pma.h rbt.h rex.h sio.h sll.h slmb.h stdio.h str.h time.h \
|
||||
tio.h tre.h utf8.h xma.h $(am__append_1)
|
||||
map.h mbwc.h mem.h nwad.h nwif.h nwio.h oht.h opt.h path.h \
|
||||
pio.h pma.h rbt.h rex.h sio.h sll.h slmb.h stdio.h str.h \
|
||||
time.h tio.h tre.h utf8.h xma.h $(am__append_1)
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
|
@ -119,12 +119,24 @@ int qse_env_insertwcs (
|
||||
const qse_wchar_t* value
|
||||
);
|
||||
|
||||
int qse_env_insertwcsa (
|
||||
qse_env_t* env,
|
||||
const qse_wchar_t* name,
|
||||
const qse_wchar_t* value[]
|
||||
);
|
||||
|
||||
int qse_env_insertmbs (
|
||||
qse_env_t* env,
|
||||
const qse_mchar_t* name,
|
||||
const qse_mchar_t* value
|
||||
);
|
||||
|
||||
int qse_env_insertmbsa (
|
||||
qse_env_t* env,
|
||||
const qse_mchar_t* name,
|
||||
const qse_mchar_t* value[]
|
||||
);
|
||||
|
||||
int qse_env_deletewcs (
|
||||
qse_env_t* env,
|
||||
const qse_wchar_t* name
|
||||
@ -135,12 +147,14 @@ int qse_env_deletembs (
|
||||
const qse_mchar_t* name
|
||||
);
|
||||
|
||||
#if defined(QSE_CHAR_IS_WCHAR)
|
||||
# define qse_env_insert(env,name,value) qse_env_insertwcs(env,name,value)
|
||||
# define qse_env_delete(env,name) qse_env_deletewcs(env,name)
|
||||
#else
|
||||
#if defined(QSE_CHAR_IS_MCHAR)
|
||||
# define qse_env_insert(env,name,value) qse_env_insertmbs(env,name,value)
|
||||
# define qse_env_inserta(env,name,value) qse_env_insertmbsa(env,name,value)
|
||||
# define qse_env_delete(env,name) qse_env_deletembs(env,name)
|
||||
#else
|
||||
# define qse_env_insert(env,name,value) qse_env_insertwcs(env,name,value)
|
||||
# define qse_env_inserta(env,name,value) qse_env_insertwcsa(env,name,value)
|
||||
# define qse_env_delete(env,name) qse_env_deletewcs(env,name)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -38,11 +38,11 @@ struct qse_gdl_t
|
||||
};
|
||||
|
||||
/**
|
||||
* The QSE_GDL_INIT macro initializes a host link to be used for internal
|
||||
* The QSE_GDL_INIT macro initializes a link to be used for internal
|
||||
* management.
|
||||
*/
|
||||
#define QSE_GDL_INIT(host) QSE_BLOCK ( \
|
||||
(host)->next = (host); (host)->prev = (host); \
|
||||
#define QSE_GDL_INIT(link) QSE_BLOCK ( \
|
||||
(link)->next = (link); (link)->prev = (link); \
|
||||
)
|
||||
|
||||
/**
|
||||
@ -59,17 +59,17 @@ struct qse_gdl_t
|
||||
/**
|
||||
* The QSE_GDL_ISEMPTY macro checks if the chain is empty.
|
||||
*/
|
||||
#define QSE_GDL_ISEMPTY(host) ((host)->next == (host))
|
||||
#define QSE_GDL_ISEMPTY(link) ((link)->next == (link))
|
||||
|
||||
/**
|
||||
* The QSE_GDL_HEAD macro get the first node in the chain.
|
||||
*/
|
||||
#define QSE_GDL_HEAD(host) ((host)->next)
|
||||
#define QSE_GDL_HEAD(link) ((link)->next)
|
||||
|
||||
/**
|
||||
* The QSE_GDL_TAIL macro gets the last node in the chain.
|
||||
*/
|
||||
#define QSE_GDL_TAIL(host) ((host)->prev)
|
||||
#define QSE_GDL_TAIL(link) ((link)->prev)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
75
qse/include/qse/cmn/nwif.h
Normal file
75
qse/include/qse/cmn/nwif.h
Normal file
@ -0,0 +1,75 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
Copyright 2006-2012 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
|
||||
QSE is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
QSE is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with QSE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _QSE_CMN_NWIF_H_
|
||||
#define _QSE_CMN_NWIF_H_
|
||||
|
||||
#include <qse/types.h>
|
||||
#include <qse/macros.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
unsigned int qse_nwifmbstoindex (
|
||||
const qse_mchar_t* ptr
|
||||
);
|
||||
|
||||
unsigned int qse_nwifwcstoindex (
|
||||
const qse_wchar_t* ptr
|
||||
);
|
||||
|
||||
unsigned int qse_nwifmbsntoindex (
|
||||
const qse_mchar_t* ptr,
|
||||
qse_size_t len
|
||||
);
|
||||
|
||||
unsigned int qse_nwifwcsntoindex (
|
||||
const qse_wchar_t* ptr,
|
||||
qse_size_t len
|
||||
);
|
||||
|
||||
qse_size_t qse_nwifindextombs (
|
||||
unsigned int index,
|
||||
qse_mchar_t* buf,
|
||||
qse_size_t len
|
||||
);
|
||||
|
||||
qse_size_t qse_nwifindextowcs (
|
||||
unsigned int index,
|
||||
qse_wchar_t* buf,
|
||||
qse_size_t len
|
||||
);
|
||||
|
||||
#if defined(QSE_CHAR_IS_MCHAR)
|
||||
# define qse_nwifstrtoindex(ptr) qse_nwifmbstoindex(ptr)
|
||||
# define qse_nwifstrntoindex(ptr,len) qse_nwifmbsntoindex(ptr,len)
|
||||
# define qse_nwifindextostr(index,buf,len) qse_nwifindextombs(index,buf,len)
|
||||
#else
|
||||
# define qse_nwifstrtoindex(ptr) qse_nwifwcstoindex(ptr)
|
||||
# define qse_nwifstrntoindex(ptr,len) qse_nwifwcsntoindex(ptr,len)
|
||||
# define qse_nwifindextostr(index,buf,len) qse_nwifindextowcs(index,buf,len)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user