source: swig/creddy.i @ 5ce5780

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since 5ce5780 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
RevLine 
[2e046a2]1%module Creddy
2
[53c83f4]3%include "exception.i"
[97f6219]4%include "language.i"
[53c83f4]5
6%exception {
7    try {
8        $action
9    }
10    catch (const std::exception &e) {
11        SWIG_exception(SWIG_RuntimeError, e.what());
12    }
13}
14
[811fda1]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
[0cdea0b]19%ignore Creddy::ID::write_cert(const std::string&);
20%rename(write_cert_name) Creddy::ID::write_cert(const char *);
[811fda1]21
[0cdea0b]22%ignore Creddy::ID::write_privkey(const std::string&);
23%rename(write_privkey_name) Creddy::ID::write_privkey(const char *);
[811fda1]24
[0cdea0b]25%ignore Creddy::Attribute::write(const std::string&);
26%rename(write_name) Creddy::Attribute::write(const char *);
[811fda1]27
[5ce5780]28%rename(ID_chunk) Creddy::ID::ID(abac_chunk_t);
29
[2e046a2]30%{
31#include "creddy.hh"
32using namespace Creddy;
33%}
34
35%include "creddy.h"
36%include "creddy.hh"
Note: See TracBrowser for help on using the repository browser.