source: swig/abac.i @ ef68ac9

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
Line 
1%module ABAC
2
3// Accessing these overloaded functions confuses perl and python.
4// ignore the string& set,
5// The bare name takes an open file.
6%rename(ID_chunk) ABAC::ID::ID(abac_chunk_t);
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
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
20%{
21#include "abac.hh"
22using 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();
30
31%include "std_vector.i"
32
33namespace 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.