Skip to content

Commit 6cc5add

Browse files
author
Clement Champetier
committed
Option: add SWIG interface
1 parent c47b8ed commit 6cc5add

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/AvTranscoder/avTranscoder.i

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
%{
1818
#include <AvTranscoder/Library.hpp>
19-
#include <AvTranscoder/Option.hpp>
2019
#include <AvTranscoder/log.hpp>
2120
%}
2221

@@ -30,9 +29,9 @@ namespace std {
3029
%include "AvTranscoder/profile/profile.i"
3130

3231
%include <AvTranscoder/Library.hpp>
33-
%include <AvTranscoder/Option.hpp>
3432
%include <AvTranscoder/log.hpp>
3533

34+
%include "AvTranscoder/option.i"
3635
%include "AvTranscoder/codec/codec.i"
3736
%include "AvTranscoder/stream/stream.i"
3837
%include "AvTranscoder/decoder/decoder.i"

src/AvTranscoder/option.i

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
%{
2+
#include <AvTranscoder/Option.hpp>
3+
%}
4+
5+
namespace std {
6+
// Allow vector of object with no default constructor
7+
%ignore vector< avtranscoder::Option >::vector(size_type);
8+
%ignore vector< avtranscoder::Option >::resize;
9+
10+
// Create instantiations of a template classes
11+
%template(OptionArray) vector< avtranscoder::Option >;
12+
%template(IntPair) pair< size_t, size_t >;
13+
}
14+
15+
%include <AvTranscoder/Option.hpp>

0 commit comments

Comments
 (0)