diff options
author | David Robillard <d@drobilla.net> | 2019-10-19 19:52:20 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-19 19:54:13 +0200 |
commit | a4ef0bf8d6afddab9c23d00b4237a96eccd12a32 (patch) | |
tree | 1b4539cd5efbd282e79dc26284f728048d89534b /bindings/lilv.i | |
parent | 9e10cf64bde54a623c0715e644683382a70b681e (diff) | |
download | lilv-a4ef0bf8d6afddab9c23d00b4237a96eccd12a32.tar.gz lilv-a4ef0bf8d6afddab9c23d00b4237a96eccd12a32.tar.bz2 lilv-a4ef0bf8d6afddab9c23d00b4237a96eccd12a32.zip |
Remove old Swig bindings
Diffstat (limited to 'bindings/lilv.i')
-rw-r--r-- | bindings/lilv.i | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/bindings/lilv.i b/bindings/lilv.i deleted file mode 100644 index f6254a7..0000000 --- a/bindings/lilv.i +++ /dev/null @@ -1,66 +0,0 @@ -%module lilv -%typedef unsigned uint32_t; -%{ -#define SWIG_FILE_WITH_INIT -#include "lilv/lilv.h" -#include "lilv/lilvmm.hpp" -%} - -%include "numpy.i" -%init %{ - import_array(); -%} -%apply (float* INPLACE_ARRAY1) {(void* data_location)} - -%feature("compactdefaultargs") %{ - lilv_plugin_get_num_ports_of_class; - get_num_ports_of_class; -%} -%varargs(3, LilvNode* node = NULL) lilv_plugin_get_num_ports_of_class; -%varargs(3, LilvNode* node = NULL) get_num_ports_of_class; -%typemap(in, numinputs=0) LilvNode *node3 ""; // Make sure it's NULL terminated - -%include "lilv/lilv.h" -%include "lilv/lilvmm.hpp" - -namespace Lilv { - -%extend Plugins { -%pythoncode %{ - def __iter__(self): - class Iterator(object): - def __init__(self, plugins): - self.plugins = plugins - self.iter = plugins.begin() - - def __next__(self): - if self.plugins.is_end(self.iter): - raise StopIteration - plugin = self.plugins.get(self.iter) - self.iter = self.plugins.next(self.iter) - return plugin - - def next(self): - "Python 2 iterator protocol" - return Iterator.__next__(self) - - return Iterator(self) - - def get_by_uri(self, *args): - """get_by_uri(self, LilvNode uri) -> PluginClass""" - ret = _lilv.Plugins_get_by_uri(self, *args) - if ret.me is None: - return None - else: - return ret -%} -}; - -%extend Node { -%pythoncode %{ - def __str__(self): - return self.get_turtle_token() -%} -}; - -} /* namespace Lilv */ |