diff options
author | David Robillard <d@drobilla.net> | 2008-01-24 16:11:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-24 16:11:18 +0000 |
commit | 361f21b9e1f59bd602d0e1ed8b80f726605995be (patch) | |
tree | 6cd62d39f136839e1744c1b8b3ca20275d7c4d28 /src | |
parent | 6c3ab050cfbbbd80dd795643dcf65e6c5915dec4 (diff) | |
download | lilv-361f21b9e1f59bd602d0e1ed8b80f726605995be.tar.gz lilv-361f21b9e1f59bd602d0e1ed8b80f726605995be.tar.bz2 lilv-361f21b9e1f59bd602d0e1ed8b80f726605995be.zip |
Make SLV2 UI class interface match ports.
git-svn-id: http://svn.drobilla.net/lad/slv2@1112 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/pluginui.c | 14 | ||||
-rw-r--r-- | src/slv2_internal.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/pluginui.c b/src/pluginui.c index 01f512a..5de3dcb 100644 --- a/src/pluginui.c +++ b/src/pluginui.c @@ -50,8 +50,8 @@ slv2_ui_new(SLV2World world, ui->bundle_uri = librdf_new_uri(world->world, (const unsigned char*)bundle); free(bundle); - ui->types = slv2_values_new(); - raptor_sequence_push(ui->types, slv2_value_new_librdf_uri(world, type_uri)); + ui->classes = slv2_values_new(); + raptor_sequence_push(ui->classes, slv2_value_new_librdf_uri(world, type_uri)); return ui; } @@ -70,7 +70,7 @@ slv2_ui_free(SLV2UI ui) librdf_free_uri(ui->binary_uri); ui->binary_uri = NULL; - slv2_values_free(ui->types); + slv2_values_free(ui->classes); free(ui); } @@ -86,17 +86,17 @@ slv2_ui_get_uri(SLV2UI ui) SLV2Values -slv2_ui_get_types(SLV2UI ui) +slv2_ui_get_classes(SLV2UI ui) { - return ui->types; + return ui->classes; } bool -slv2_ui_is_type(SLV2UI ui, const char* type_uri) +slv2_ui_is_a(SLV2UI ui, const char* type_uri) { SLV2Value type = slv2_value_new(ui->world, SLV2_VALUE_URI, type_uri); - bool ret = slv2_values_contains(ui->types, type); + bool ret = slv2_values_contains(ui->classes, type); slv2_value_free(type); return ret; } diff --git a/src/slv2_internal.h b/src/slv2_internal.h index 40677e7..06c432d 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -178,7 +178,7 @@ struct _SLV2UI { librdf_uri* uri; librdf_uri* bundle_uri; librdf_uri* binary_uri; - SLV2Values types; + SLV2Values classes; }; SLV2UIs slv2_uis_new(); |