summaryrefslogtreecommitdiffstats
path: root/lilv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-04 18:03:48 +0000
committerDavid Robillard <d@drobilla.net>2011-05-04 18:03:48 +0000
commitb264f9c122f03bc2fd97ef15c24aef8148dcc757 (patch)
tree8d58169f7d5d3c32ab584b92260c6db2c627d8ec /lilv
parente0c959ea40eb1e644b021117de7902b22948fca9 (diff)
downloadlilv-b264f9c122f03bc2fd97ef15c24aef8148dcc757.tar.gz
lilv-b264f9c122f03bc2fd97ef15c24aef8148dcc757.tar.bz2
lilv-b264f9c122f03bc2fd97ef15c24aef8148dcc757.zip
Add some missing methods to C++ and Python APIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3250 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'lilv')
-rw-r--r--lilv/lilvmm.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lilv/lilvmm.hpp b/lilv/lilvmm.hpp
index be6f000..027d4c3 100644
--- a/lilv/lilvmm.hpp
+++ b/lilv/lilvmm.hpp
@@ -99,15 +99,12 @@ struct PluginClass {
LILV_WRAP0(Node, plugin_class, get_parent_uri);
LILV_WRAP0(Node, plugin_class, get_uri);
LILV_WRAP0(Node, plugin_class, get_label);
-
- inline LilvPluginClasses* get_children() {
- return lilv_plugin_class_get_children(me);
- }
+ LILV_WRAP0(LilvPluginClasses*, plugin_class, get_children);
const LilvPluginClass* me;
};
-#define LILV_WRAP_COLL(CT, ET, prefix) \
+#define LILV_WRAP_COLL(CT, ET, prefix) \
struct CT { \
inline CT(const Lilv ## CT* c_obj) : me(c_obj) {} \
LILV_WRAP_CONVERSION(const Lilv ## CT); \
@@ -174,6 +171,7 @@ struct Plugin {
LILV_WRAP0(Node, plugin, get_author_name);
LILV_WRAP0(Node, plugin, get_author_email);
LILV_WRAP0(Node, plugin, get_author_homepage);
+ LILV_WRAP0(bool, plugin, is_replaced);
inline Port get_port_by_index(unsigned index) {
return Port(me, lilv_plugin_get_port_by_index(me, index));
@@ -228,7 +226,7 @@ struct Instance {
struct World {
inline World() : me(lilv_world_new()) {}
- inline ~World() { /*lilv_world_free(me);*/ }
+ inline ~World() { lilv_world_free(me); }
inline LilvNode* new_uri(const char* uri) {
return lilv_new_uri(me, uri);
@@ -252,7 +250,6 @@ struct World {
}
LILV_WRAP2_VOID(world, set_option, const char*, uri, LilvNode*, value);
- LILV_WRAP0_VOID(world, free);
LILV_WRAP0_VOID(world, load_all);
LILV_WRAP1_VOID(world, load_bundle, LilvNode*, bundle_uri);
LILV_WRAP0(const LilvPluginClass*, world, get_plugin_class);