source: swig/creddy.i @ 0cdea0b

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since 0cdea0b was 0cdea0b, checked in by Ted Faber <faber@…>, 13 years ago

Shake out a few more bugs (Attribute::write())

  • Property mode set to 100644
File size: 840 bytes
Line 
1%module Creddy
2
3%include "exception.i"
4%include "language.i"
5
6%exception {
7    try {
8        $action
9    }
10    catch (const std::exception &e) {
11        SWIG_exception(SWIG_RuntimeError, e.what());
12    }
13}
14
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
19%ignore Creddy::ID::write_cert(const std::string&);
20%rename(write_cert_name) Creddy::ID::write_cert(const char *);
21
22%ignore Creddy::ID::write_privkey(const std::string&);
23%rename(write_privkey_name) Creddy::ID::write_privkey(const char *);
24
25%ignore Creddy::Attribute::write(const std::string&);
26%rename(write_name) Creddy::Attribute::write(const char *);
27
28%{
29#include "creddy.hh"
30using namespace Creddy;
31%}
32
33%include "creddy.h"
34%include "creddy.hh"
Note: See TracBrowser for help on using the repository browser.