sherlock.c 992 Bytes
Newer Older
Hanspeter Portner's avatar
Hanspeter Portner committed
1
/*
2
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
Hanspeter Portner's avatar
Hanspeter Portner committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 */

#include <sherlock.h>

20 21 22 23 24 25
#ifdef _WIN32
__declspec(dllexport)
#else
__attribute__((visibility("default")))
#endif
const LV2_Descriptor*
Hanspeter Portner's avatar
Hanspeter Portner committed
26 27 28 29 30
lv2_descriptor(uint32_t index)
{
	switch(index)
	{
		case 0:
Hanspeter Portner's avatar
Hanspeter Portner committed
31
			return &atom_inspector;
32 33 34 35
		case 1:
			return &midi_inspector;
		case 2:
			return &osc_inspector;
Hanspeter Portner's avatar
Hanspeter Portner committed
36 37 38 39
		default:
			return NULL;
	}
}