source: swig/perl/language.i @ 98aafce

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 98aafce was 8d4c54c, checked in by Mike Ryan <mikeryan@…>, 13 years ago

typo on function name

something tells me this wasn't tested before being committed

  • Property mode set to 100644
File size: 1.1 KB
Line 
1%{
2#include "SSL_keyid.h"
3%}
4
5%include "SSL_keyid.h"
6
7%include "chunk.i"
8
9%typemap(argout) bool &success {
10    --argvi;
11    SV *array = $result;
12
13    $result = sv_newmortal();
14    sv_setiv($result, *$1);
15    ++argvi;
16
17    $result = array;
18    ++argvi;
19}
20
21%typemap(in,numinputs=0) bool &success(bool temp) {
22    $1 = &temp;
23}
24
25// Calling these makes perl 5.12.4 dump core.  We protect the user from this by
26// hiding the functions.
27%ignore Creddy::ID::write_cert(std::FILE*);
28%ignore Creddy::ID::write_privkey(std::FILE*);
29%ignore Creddy::Attribute::write(std::FILE*);
30
31// XXX We would love a typemap for FILE * in Perl, but that's not happening
32// anytime soon. It's hard (impossible?) to get a PerlIO * from a GV (glob).
33// If that were acquired, it's still funky getting a FILE * from that.
34//
35// See man perlapio for details, but you'd need:
36//
37// PerlIO_findFile(f)   // creates a FILE *
38// PerlIO_close()       // closes it
39//
40// Once you create it with findFILE, you need to close it once you are done
41// with it, so you'd need a typemap that gets called AFTER the function is done.
42//
43// Like I said, not happening.
Note: See TracBrowser for help on using the repository browser.