-rw-r--r-- | lib/Makefile.am | 3 | ||||
-rw-r--r-- | lib/extension_chain.cc | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 783f2ab..bdadd44 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,28 +1,29 @@ lib_LTLIBRARIES = libopkele.la INCLUDES = \ -I${top_srcdir}/include/ \ ${KONFORKA_CFLAGS} \ ${OPENSSL_CFLAGS} \ ${MIMETIC_CFLAGS} \ ${LIBCURL_CPPFLAGS} \ ${PCREPP_CFLAGS} LDADD = \ ${LIBCURL} \ ${PCREPP_LIBS} \ ${MIMETIC_LIBS} \ ${OPENSSL_LIBS} \ ${KONFORKA_LIBS} libopkele_la_SOURCES = \ params.cc \ util.cc \ server.cc \ secret.cc \ data.cc \ consumer.cc \ exception.cc \ extension.cc \ - sreg.cc + sreg.cc \ + extension_chain.cc libopkele_la_LDFLAGS = \ -version-info 1:0:0 diff --git a/lib/extension_chain.cc b/lib/extension_chain.cc new file mode 100644 index 0000000..16537dc --- a/dev/null +++ b/lib/extension_chain.cc @@ -0,0 +1,16 @@ +#include <cstdarg> +#include <opkele/extension_chain.h> + +namespace opkele { + + void extension_chain_t::checkid_hook(params_t& p,const string& identity) { + for(iterator i=begin();i!=end();++i) (*i)->checkid_hook(p,identity); + } + void extension_chain_t::id_res_hook(const params_t& p,const params_t& sp,const string& identity) { + for(iterator i=begin();i!=end();++i) (*i)->id_res_hook(p,sp,identity); + } + void extension_chain_t::checkid_hook(const params_t& pin,params_t& pout) { + for(iterator i=begin();i!=end();++i) (*i)->checkid_hook(pin,pout); + } + +} |