diff options
author | Ed Baak <ed.baak@nokia.com> | 2010-07-26 14:06:13 +1000 |
---|---|---|
committer | Ed Baak <ed.baak@nokia.com> | 2010-07-26 14:06:13 +1000 |
commit | 02e9b6740ff7851b52ab677800e94fb77e6092ed (patch) | |
tree | a38a4f4d44b53a95b5db40e5ec12b513b5896e06 /botan/wrappers/swig/botan.swg | |
parent | eb2fbe409d1423c0b707b9986ee1e56fa19b355a (diff) |
Included Botan and ssh code to make QtUItest compile again (as a separate package without creator). Note that this is a temporary hack and will go away when we moveQtUItest into creator.
Diffstat (limited to 'botan/wrappers/swig/botan.swg')
-rw-r--r-- | botan/wrappers/swig/botan.swg | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/botan/wrappers/swig/botan.swg b/botan/wrappers/swig/botan.swg new file mode 100644 index 0000000..9088f42 --- /dev/null +++ b/botan/wrappers/swig/botan.swg @@ -0,0 +1,26 @@ +/************************************************* +* SWIG Interface for Botan * +*************************************************/ +%module botan + +%include "typemaps.i" +%include "std_string.i" +%include "exception.i" +%include "constraints.i" +%include "carrays.i" + +%{ +#include "base.h" +%} + +%exception { + try { + $action + } + catch(std::exception& e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%include "base.h" |