source: swig/abac.i

Last change on this file was 18963eb, checked in by Ted Faber <faber@…>, 11 years ago

Put these names back the way they are supposed to be. Whoops.

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