-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 | |||
@@ -18,11 +18,12 @@ libopkele_la_SOURCES = \ | |||
18 | params.cc \ | 18 | params.cc \ |
19 | util.cc \ | 19 | util.cc \ |
20 | server.cc \ | 20 | server.cc \ |
21 | secret.cc \ | 21 | secret.cc \ |
22 | data.cc \ | 22 | data.cc \ |
23 | consumer.cc \ | 23 | consumer.cc \ |
24 | exception.cc \ | 24 | exception.cc \ |
25 | extension.cc \ | 25 | extension.cc \ |
26 | sreg.cc | 26 | sreg.cc \ |
27 | extension_chain.cc | ||
27 | libopkele_la_LDFLAGS = \ | 28 | libopkele_la_LDFLAGS = \ |
28 | -version-info 1:0:0 | 29 | -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 @@ | |||
1 | #include <cstdarg> | ||
2 | #include <opkele/extension_chain.h> | ||
3 | |||
4 | namespace opkele { | ||
5 | |||
6 | void extension_chain_t::checkid_hook(params_t& p,const string& identity) { | ||
7 | for(iterator i=begin();i!=end();++i) (*i)->checkid_hook(p,identity); | ||
8 | } | ||
9 | void extension_chain_t::id_res_hook(const params_t& p,const params_t& sp,const string& identity) { | ||
10 | for(iterator i=begin();i!=end();++i) (*i)->id_res_hook(p,sp,identity); | ||
11 | } | ||
12 | void extension_chain_t::checkid_hook(const params_t& pin,params_t& pout) { | ||
13 | for(iterator i=begin();i!=end();++i) (*i)->checkid_hook(pin,pout); | ||
14 | } | ||
15 | |||
16 | } | ||