naspro

view naspro-bridges-bad/ndf/manifest.c @ 163:d7568c8379c1

Initiial DSSI support + reorganization
author Stefano D'Angelo <zanga.mail@gmail.com>
date Fri Sep 11 13:31:52 2009 +0200 (2009-09-11)
parents
children
line source
1 /*
2 * NASPRO - NASPRO Architecture for Sound Processing
3 * NDF (NASPRO Digital Filters)
4 *
5 * Copyright (C) 2007-2009 Stefano D'Angelo <zanga.mail@gmail.com>
6 *
7 * See the COPYING file for license conditions.
8 */
10 #include <stdio.h>
11 #include <stddef.h>
13 #include <lv2_dyn_manifest.h>
15 #include <NASPRO/core/lib.h>
17 #include "collection.h"
19 /* TODO: Until a serious rescan/automagical discovery policy emerges, we perform
20 * discovery only once at initialization time. */
22 static char inited = 0;
23 static char init_ok = 0;
25 int
26 lv2_dyn_manifest_open(LV2_Dyn_Manifest_Handle *handle,
27 const LV2_Feature *const *features)
28 {
29 static char called = 0;
31 if (called)
32 return -1;
33 called = 1;
35 if (!inited)
36 {
37 init_ok = _nandf_collection_load_all();
38 inited = 1;
39 }
41 *handle = NULL;
43 called = 0;
45 return 0;
46 }
48 static void __attribute__((destructor))
49 fini()
50 {
51 if (init_ok)
52 _nandf_collection_unload_all();
53 }
55 int
56 lv2_dyn_manifest_get_subjects(LV2_Dyn_Manifest_Handle handle, FILE *fp)
57 {
58 return 0;
59 }
61 int
62 lv2_dyn_manifest_get_data(LV2_Dyn_Manifest_Handle handle, FILE *fp,
63 const char *uri)
64 {
65 return 0;
66 }
68 void
69 lv2_dyn_manifest_close(LV2_Dyn_Manifest_Handle handle)
70 {
71 }