aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector.c
diff options
context:
space:
mode:
Diffstat (limited to 'atom_inspector.c')
-rw-r--r--atom_inspector.c27
1 files changed, 4 insertions, 23 deletions
diff --git a/atom_inspector.c b/atom_inspector.c
index 3df5f22..c8cb63e 100644
--- a/atom_inspector.c
+++ b/atom_inspector.c
@@ -77,13 +77,6 @@ connect_port(LV2_Handle instance, uint32_t port, void *data)
}
static void
-activate(LV2_Handle instance)
-{
- handle_t *handle = (handle_t *)instance;
- //nothing
-}
-
-static void
run(LV2_Handle instance, uint32_t nsamples)
{
handle_t *handle = (handle_t *)instance;
@@ -120,6 +113,7 @@ run(LV2_Handle instance, uint32_t nsamples)
lv2_atom_forge_pad(forge, size);
}
+
if(ref)
lv2_atom_forge_pop(forge, &frame);
else
@@ -127,13 +121,6 @@ run(LV2_Handle instance, uint32_t nsamples)
}
static void
-deactivate(LV2_Handle instance)
-{
- handle_t *handle = (handle_t *)instance;
- //nothing
-}
-
-static void
cleanup(LV2_Handle instance)
{
handle_t *handle = (handle_t *)instance;
@@ -141,19 +128,13 @@ cleanup(LV2_Handle instance)
free(handle);
}
-static const void*
-extension_data(const char* uri)
-{
- return NULL;
-}
-
const LV2_Descriptor atom_inspector = {
.URI = SHERLOCK_ATOM_INSPECTOR_URI,
.instantiate = instantiate,
.connect_port = connect_port,
- .activate = activate,
+ .activate = NULL,
.run = run,
- .deactivate = deactivate,
+ .deactivate = NULL,
.cleanup = cleanup,
- .extension_data = extension_data
+ .extension_data = NULL
};