summaryrefslogtreecommitdiffstats
path: root/old/botan/wrappers/swig/botan.swg
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/wrappers/swig/botan.swg')
-rw-r--r--old/botan/wrappers/swig/botan.swg26
1 files changed, 26 insertions, 0 deletions
diff --git a/old/botan/wrappers/swig/botan.swg b/old/botan/wrappers/swig/botan.swg
new file mode 100644
index 0000000..9088f42
--- /dev/null
+++ b/old/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"