Debian Codegraph @

contrib/DNS-LDNS/typemap

raw
1 TYPEMAP
2 DNS__LDNS__Zone LDNS_GENERIC_STRUCT
3 DNS__LDNS__RRList LDNS_GENERIC_STRUCT
4 DNS__LDNS__RR LDNS_GENERIC_STRUCT
5 DNS__LDNS__RData LDNS_GENERIC_STRUCT
6 DNS__LDNS__DNSSecZone LDNS_GENERIC_STRUCT
7 DNS__LDNS__DNSSecRRSets LDNS_GENERIC_STRUCT
8 DNS__LDNS__DNSSecRRs LDNS_GENERIC_STRUCT
9 DNS__LDNS__DNSSecName LDNS_GENERIC_STRUCT
10 DNS__LDNS__RBTree LDNS_GENERIC_STRUCT
11 DNS__LDNS__RBNode LDNS_GENERIC_STRUCT
12 DNS__LDNS__Resolver LDNS_GENERIC_STRUCT
13 DNS__LDNS__Packet LDNS_GENERIC_STRUCT
14 DNS__LDNS__Key LDNS_GENERIC_STRUCT
15 DNS__LDNS__KeyList LDNS_GENERIC_STRUCT
16 DNS__LDNS__DNSSecDataChain LDNS_GENERIC_STRUCT
17 DNS__LDNS__DNSSecTrustTree LDNS_GENERIC_STRUCT
18 Mortal_PV Mortal_PV
19
20 DNS__LDNS__RR__Opt LDNS_GENERIC_STRUCT_OPT
21 DNS__LDNS__RData__Opt LDNS_GENERIC_STRUCT_OPT
22
23 LDNS_Pkt_Opcode T_ENUM
24 LDNS_Pkt_Rcode T_ENUM
25 LDNS_Pkt_Section T_ENUM
26 LDNS_Pkt_Type T_ENUM
27 LDNS_RR_Type T_ENUM
28 LDNS_RR_Class T_ENUM
29 LDNS_RDF_Type T_ENUM
30 LDNS_Hash T_ENUM
31 LDNS_Status T_ENUM
32 LDNS_Signing_Algorithm T_ENUM
33
34 uint32_t T_UV
35 uint16_t T_UV
36 uint8_t T_UV
37 signed char T_UV
38
39 INPUT
40 LDNS_GENERIC_STRUCT_OPT
41 if (!SvOK($arg)) {
42 $var = NULL;
43 }
44 else if (sv_derived_from($arg, \"${(my $ntt=$ntype)=~s/__/::/g;$ntt=~s/::Opt$//;\$ntt}\")){
45 IV tmp = SvIV((SV*)SvRV($arg));
46 $var = INT2PTR($type, tmp);
47 }
48 else
49 croak(\"$var is not of type ${(my $ntt=$ntype)=~s/__/::/g;$ntt=~s/::Opt$//;\$ntt}\")
50
51 INPUT
52 LDNS_GENERIC_STRUCT
53 if (sv_derived_from($arg, \"${(my $ntt=$ntype)=~s/__/::/g;\$ntt}\")){
54 IV tmp = SvIV((SV*)SvRV($arg));
55 $var = INT2PTR($type, tmp);
56 }
57 else
58 croak(\"$var is not of type ${(my $ntt=$ntype)=~s/__/::/g;\$ntt}\")
59
60 OUTPUT
61 LDNS_GENERIC_STRUCT
62 sv_setref_pv($arg, \"${(my $ntt=$ntype)=~s/__/::/g;\$ntt}\", (void*)$var);
63
64 OUTPUT
65 LDNS_GENERIC_STRUCT_OPT
66 sv_setref_pv($arg, \"${(my $ntt=$ntype)=~s/__/::/g;$ntt=~s/::Opt$//;\$ntt}\", (void*)$var);
67
68 OUTPUT
69 Mortal_PV
70 sv_setsv($arg, sv_2mortal(newSVpv($var, 0)));
71 free((void *)$var);