moony_nk.c 906 Bytes
Newer Older
Hanspeter Portner's avatar
Hanspeter Portner committed
1
/*
Hanspeter Portner's avatar
Hanspeter Portner committed
2
 * Copyright (c) 2015 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
 *
 * 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.
Hanspeter Portner's avatar
Hanspeter Portner committed
16 17
 */

Hanspeter Portner's avatar
Hanspeter Portner committed
18
#include <moony.h>
Hanspeter Portner's avatar
Hanspeter Portner committed
19

20 21 22 23 24 25
#ifdef _WIN32
__declspec(dllexport)
#else
__attribute__((visibility("default")))
#endif
const LV2UI_Descriptor*
Hanspeter Portner's avatar
Hanspeter Portner committed
26 27 28 29 30
lv2ui_descriptor(uint32_t index)
{
	switch(index)
	{
		case 0:
Hanspeter Portner's avatar
Hanspeter Portner committed
31
			return &nk_ui;
Hanspeter Portner's avatar
Hanspeter Portner committed
32 33 34 35
		default:
			return NULL;
	}
}