1 /* FluidSynth - A Software Synthesizer
3 * Copyright (C) 2003 Peter Hanappe and others.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * as published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 #ifndef _FLUID_SETTINGS_H
23 #define _FLUID_SETTINGS_H
27 /** returns 1 if the option was added, 0 otherwise */
28 int fluid_settings_add_option(fluid_settings_t* settings, const char* name, const char* s);
30 /** returns 1 if the option was added, 0 otherwise */
31 int fluid_settings_remove_option(fluid_settings_t* settings, const char* name, const char* s);
34 typedef int (*fluid_num_update_t)(void* data, const char* name, double value);
35 typedef int (*fluid_str_update_t)(void* data, const char* name, const char* value);
36 typedef int (*fluid_int_update_t)(void* data, const char* name, int value);
38 /** returns 0 if the value has been registered correctly, non-zero
40 int fluid_settings_register_str(fluid_settings_t* settings, const char* name, const char* def, int hints,
41 fluid_str_update_t fun, void* data);
43 /** returns 0 if the value has been registered correctly, non-zero
45 int fluid_settings_register_num(fluid_settings_t* settings, char* name, double def,
46 double min, double max, int hints,
47 fluid_num_update_t fun, void* data);
49 /** returns 0 if the value has been registered correctly, non-zero
51 int fluid_settings_register_int(fluid_settings_t* settings, char* name, int def,
52 int min, int max, int hints,
53 fluid_int_update_t fun, void* data);
56 #endif /* _FLUID_SETTINGS_H */