source: swig/abac.i @ 4721618

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 4721618 was 4721618, checked in by Mei <mei@…>, 11 years ago

1) tested out python and perl test scripts along with

abac_chunk_t calls in libabac's abac.hh

  • Property mode set to 100644
File size: 723 bytes
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
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%rename(ID_chunk) ABAC::ID::ID(abac_chunk_t);
12
13%{
14#include "abac.hh"
15using namespace ABAC;
16%}
17
18%include "language.i"
19
20%ignore std::vector<ABAC::Credential>::vector(size_type);
21%ignore std::vector<ABAC::Credential>::resize(size_type);
22%ignore std::vector<ABAC::Credential>::pop();
23%include "std_vector.i"
24
25namespace std {
26    %template(CredentialVector) vector<ABAC::Credential>;
27};
28
29%include "abac.h"
30%include "abac.hh"
Note: See TracBrowser for help on using the repository browser.