File tree Expand file tree Collapse file tree 2 files changed +27
-24
lines changed Expand file tree Collapse file tree 2 files changed +27
-24
lines changed Original file line number Diff line number Diff line change
1
+ // Need to modify the visibility of the constructor and getCPtr method
2
+ // if you are invoking SWIG more than once and generating the wrapped classes
3
+ // into different packages in each invocation.
4
+ %typemap(javabody) SWIGTYPE %{
5
+ protected long swigCPtr;
6
+ protected boolean swigCMemOwn;
7
+
8
+ public $javaclassname (long cPtr, boolean cMemoryOwn) {
9
+ swigCMemOwn = cMemoryOwn;
10
+ swigCPtr = cPtr;
11
+ }
12
+
13
+ public static long getCPtr ($javaclassname obj) {
14
+ return (obj == null) ? 0 : obj.swigCPtr ;
15
+ }
16
+ %}
17
+
18
+ %typemap(javabody_derived) SWIGTYPE %{
19
+ public $javaclassname (long cPtr, boolean cMemoryOwn) {
20
+ super ( cPtr, cMemoryOwn );
21
+ }
22
+
23
+ public static long getCPtr ($javaclassname obj) {
24
+ return (obj == null) ? 0 : obj.swigCPtr ;
25
+ }
26
+ %}
Original file line number Diff line number Diff line change 7
7
8
8
9
9
%include " AvTranscoder/avException.i"
10
-
11
- // Need to modify the visibility of the constructor and getCPtr method
12
- // if you are invoking SWIG more than once and generating the wrapped classes
13
- // into different packages in each invocation.
14
- %typemap(javabody) SWIGTYPE %{
15
- protected long swigCPtr;
16
- protected boolean swigCMemOwn;
17
-
18
- public $javaclassname (long cPtr, boolean cMemoryOwn) {
19
- swigCMemOwn = cMemoryOwn;
20
- swigCPtr = cPtr;
21
- }
22
- public static long getCPtr ($javaclassname obj) {
23
- return (obj == null) ? 0 : obj.swigCPtr ;
24
- }
25
- %}
26
- %typemap(javabody_derived) SWIGTYPE %{
27
- public $javaclassname (long cPtr, boolean cMemoryOwn) {
28
- super ( cPtr, cMemoryOwn );
29
- }
30
- public static long getCPtr ($javaclassname obj) {
31
- return (obj == null) ? 0 : obj.swigCPtr ;
32
- }
33
- %}
10
+ %include " AvTranscoder/avExport.i"
34
11
35
12
%{
36
13
#include < AvTranscoder/common.hpp>
You can’t perform that action at this time.
0 commit comments