Path: blob/master/libs/fluidsynth/src/utils/fluid_settings.h
4396 views
/* FluidSynth - A Software Synthesizer1*2* Copyright (C) 2003 Peter Hanappe and others.3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public License6* as published by the Free Software Foundation; either version 2.1 of7* the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful, but10* WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public15* License along with this library; if not, write to the Free16* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA17* 02110-1301, USA18*/192021#ifndef _FLUID_SETTINGS_H22#define _FLUID_SETTINGS_H2324#ifdef __cplusplus25extern "C" {26#endif2728int fluid_settings_add_option(fluid_settings_t *settings, const char *name, const char *s);29int fluid_settings_remove_option(fluid_settings_t *settings, const char *name, const char *s);303132typedef void (*fluid_str_update_t)(void *data, const char *name, const char *value);3334int fluid_settings_register_str(fluid_settings_t *settings, const char *name, const char *def, int hints);35int fluid_settings_callback_str(fluid_settings_t *settings, const char *name,36fluid_str_update_t fun, void *data);373839typedef void (*fluid_num_update_t)(void *data, const char *name, double value);4041int fluid_settings_register_num(fluid_settings_t *settings, const char *name, double def,42double min, double max, int hints);43int fluid_settings_callback_num(fluid_settings_t *settings, const char *name,44fluid_num_update_t fun, void *data);4546/* Type specific wrapper for fluid_settings_getnum */47int fluid_settings_getnum_float(fluid_settings_t *settings, const char *name, float *val);484950typedef void (*fluid_int_update_t)(void *data, const char *name, int value);51int fluid_settings_register_int(fluid_settings_t *settings, const char *name, int def,52int min, int max, int hints);53int fluid_settings_callback_int(fluid_settings_t *settings, const char *name,54fluid_int_update_t fun, void *data);5556int fluid_settings_split_csv(const char *str, int *buf, int buf_len);5758void* fluid_settings_get_user_data(fluid_settings_t * settings, const char *name);5960#ifdef __cplusplus61}62#endif6364#endif /* _FLUID_SETTINGS_H */656667