abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since bcf4c03 was
5ce5780,
checked in by Ted Faber <faber@…>, 13 years ago
|
Better - works from python, but perl errors
|
-
Property mode set to
100644
|
File size:
889 bytes
|
Line | |
---|
1 | %module Creddy |
---|
2 | |
---|
3 | %include "exception.i" |
---|
4 | %include "language.i" |
---|
5 | |
---|
6 | %exception { |
---|
7 | try { |
---|
8 | $action |
---|
9 | } |
---|
10 | catch (const std::exception &e) { |
---|
11 | SWIG_exception(SWIG_RuntimeError, e.what()); |
---|
12 | } |
---|
13 | } |
---|
14 | |
---|
15 | // Accessing these overloaded functions confuses perl and python. |
---|
16 | // We ignore the string version and rename the char * version to |
---|
17 | // member_name. The bare name takes an open file. |
---|
18 | |
---|
19 | %ignore Creddy::ID::write_cert(const std::string&); |
---|
20 | %rename(write_cert_name) Creddy::ID::write_cert(const char *); |
---|
21 | |
---|
22 | %ignore Creddy::ID::write_privkey(const std::string&); |
---|
23 | %rename(write_privkey_name) Creddy::ID::write_privkey(const char *); |
---|
24 | |
---|
25 | %ignore Creddy::Attribute::write(const std::string&); |
---|
26 | %rename(write_name) Creddy::Attribute::write(const char *); |
---|
27 | |
---|
28 | %rename(ID_chunk) Creddy::ID::ID(abac_chunk_t); |
---|
29 | |
---|
30 | %{ |
---|
31 | #include "creddy.hh" |
---|
32 | using namespace Creddy; |
---|
33 | %} |
---|
34 | |
---|
35 | %include "creddy.h" |
---|
36 | %include "creddy.hh" |
---|
Note: See
TracBrowser
for help on using the repository browser.