aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-09 02:14:18 +0000
committerDavid Robillard <d@drobilla.net>2011-11-09 02:14:18 +0000
commitea8e4e2982328a1941bbe6bbdc96f954598a1174 (patch)
tree5a645bcc97b6c3f0cc502fff3c1cdff2c9305a1d /plugins
parentc43aed97c6b874a80fd5a9f759e651953bcec1f9 (diff)
downloadlv2-ea8e4e2982328a1941bbe6bbdc96f954598a1174.tar.xz
Rename Object to Thing.
Add definition of Message.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/eg-sampler.lv2/sampler.c8
-rw-r--r--plugins/eg-sampler.lv2/sampler_ui.c12
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index 5a00e64..ecebc12 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -277,14 +277,14 @@ run(LV2_Handle instance,
plugin->play = true;
}
} else if (ev->body.type == plugin->atom_message_id) {
- const LV2_Object* msg = (LV2_Object*)&ev->body;
+ const LV2_Thing* msg = (LV2_Thing*)&ev->body;
if (msg->id == plugin->set_message_id) {
const LV2_Atom* filename = NULL;
- LV2_Object_Query q[] = {
+ LV2_Thing_Query q[] = {
{ plugin->filename_key_id, &filename },
- LV2_OBJECT_QUERY_END
+ LV2_THING_QUERY_END
};
- lv2_object_query(msg, q);
+ lv2_thing_query(msg, q);
if (filename) {
memcpy(plugin->pending_samp->filepath,
diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c
index 24a79aa..f8cc560 100644
--- a/plugins/eg-sampler.lv2/sampler_ui.c
+++ b/plugins/eg-sampler.lv2/sampler_ui.c
@@ -73,13 +73,13 @@ on_load_clicked(GtkWidget* widget,
gtk_widget_destroy(dialog);
uint8_t msg_buf[4096];
- LV2_Object* msg = (LV2_Object*)msg_buf;
+ LV2_Thing* msg = (LV2_Thing*)msg_buf;
lv2_atom_forge_set_message(ui->forge, msg, uri_to_id(ui, SET_MESSAGE_URI));
- lv2_object_append(msg,
- uri_to_id(ui, FILENAME_URI),
- uri_to_id(ui, NS_ATOM "String"),
- filename_len,
- filename);
+ lv2_thing_append(msg,
+ uri_to_id(ui, FILENAME_URI),
+ uri_to_id(ui, NS_ATOM "String"),
+ filename_len,
+ filename);
ui->write(ui->controller, 0, sizeof(LV2_Atom) + msg->size,
uri_to_id(ui, NS_ATOM "atomTransfer"),