abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since ef68ac9 was
98aafce,
checked in by Ted Faber <faber@…>, 11 years ago
|
More python interface errors
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[06e2fc5] | 1 | %module ABAC |
---|
| 2 | |
---|
[461541a] | 3 | // Accessing these overloaded functions confuses perl and python. |
---|
[4721618] | 4 | // ignore the string& set, |
---|
| 5 | // The bare name takes an open file. |
---|
[af8e9b9] | 6 | %rename(ID_chunk) ABAC::ID::ID(abac_chunk_t); |
---|
[461541a] | 7 | %ignore ABAC::ID::write_cert(const std::string&); |
---|
| 8 | %ignore ABAC::ID::write_privkey(const std::string&); |
---|
| 9 | %ignore ABAC::Attribute::write(const std::string&); |
---|
| 10 | |
---|
[98aafce] | 11 | // Accessing these overloaded functions confuses perl and python. |
---|
| 12 | // Rename these so we can get to them |
---|
| 13 | |
---|
| 14 | %rename(write_cert_name) ABAC::ID::write_cert_file(const char *); |
---|
| 15 | %rename(write_privkey_name) ABAC::ID::write_privkey_file(const char *); |
---|
| 16 | %rename(write_name) ABAC::Attribute::write_file(const char *); |
---|
| 17 | %rename(ID_chunk) Creddy::ID::ID(abac_chunk_t); |
---|
| 18 | |
---|
| 19 | |
---|
[06e2fc5] | 20 | %{ |
---|
| 21 | #include "abac.hh" |
---|
| 22 | using namespace ABAC; |
---|
| 23 | %} |
---|
| 24 | |
---|
| 25 | %include "language.i" |
---|
| 26 | |
---|
| 27 | %ignore std::vector<ABAC::Credential>::vector(size_type); |
---|
| 28 | %ignore std::vector<ABAC::Credential>::resize(size_type); |
---|
| 29 | %ignore std::vector<ABAC::Credential>::pop(); |
---|
[af8e9b9] | 30 | |
---|
[06e2fc5] | 31 | %include "std_vector.i" |
---|
| 32 | |
---|
| 33 | namespace std { |
---|
| 34 | %template(CredentialVector) vector<ABAC::Credential>; |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | %include "abac.h" |
---|
| 38 | %include "abac.hh" |
---|
Note: See
TracBrowser
for help on using the repository browser.