mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-12 21:52:25 +00:00
cleanup fluid_settings.h
This commit is contained in:
parent
b71f474afa
commit
9735059946
1 changed files with 6 additions and 15 deletions
|
@ -22,35 +22,26 @@
|
||||||
#ifndef _FLUID_SETTINGS_H
|
#ifndef _FLUID_SETTINGS_H
|
||||||
#define _FLUID_SETTINGS_H
|
#define _FLUID_SETTINGS_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** returns 1 if the option was added, 0 otherwise */
|
|
||||||
int fluid_settings_add_option(fluid_settings_t* settings, const char* name, const char* s);
|
int fluid_settings_add_option(fluid_settings_t* settings, const char* name, const char* s);
|
||||||
|
|
||||||
/** returns 1 if the option was added, 0 otherwise */
|
|
||||||
int fluid_settings_remove_option(fluid_settings_t* settings, const char* name, const char* s);
|
int fluid_settings_remove_option(fluid_settings_t* settings, const char* name, const char* s);
|
||||||
|
|
||||||
|
|
||||||
typedef int (*fluid_num_update_t)(void* data, const char* name, double value);
|
|
||||||
typedef int (*fluid_str_update_t)(void* data, const char* name, const char* value);
|
typedef int (*fluid_str_update_t)(void* data, const char* name, const char* value);
|
||||||
typedef int (*fluid_int_update_t)(void* data, const char* name, int value);
|
|
||||||
|
|
||||||
/** returns 0 if the value has been registered correctly, non-zero
|
|
||||||
otherwise */
|
|
||||||
int fluid_settings_register_str(fluid_settings_t* settings, const char* name, const char* def, int hints,
|
int fluid_settings_register_str(fluid_settings_t* settings, const char* name, const char* def, int hints,
|
||||||
fluid_str_update_t fun, void* data);
|
fluid_str_update_t fun, void* data);
|
||||||
|
|
||||||
|
|
||||||
|
typedef int (*fluid_num_update_t)(void* data, const char* name, double value);
|
||||||
|
|
||||||
/** returns 0 if the value has been registered correctly, non-zero
|
|
||||||
otherwise */
|
|
||||||
int fluid_settings_register_num(fluid_settings_t* settings, const char* name, double def,
|
int fluid_settings_register_num(fluid_settings_t* settings, const char* name, double def,
|
||||||
double min, double max, int hints,
|
double min, double max, int hints,
|
||||||
fluid_num_update_t fun, void* data);
|
fluid_num_update_t fun, void* data);
|
||||||
|
|
||||||
/** returns 0 if the value has been registered correctly, non-zero
|
|
||||||
otherwise */
|
typedef int (*fluid_int_update_t)(void* data, const char* name, int value);
|
||||||
int fluid_settings_register_int(fluid_settings_t* settings, const char* name, int def,
|
int fluid_settings_register_int(fluid_settings_t* settings, const char* name, int def,
|
||||||
int min, int max, int hints,
|
int min, int max, int hints,
|
||||||
fluid_int_update_t fun, void* data);
|
fluid_int_update_t fun, void* data);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _FLUID_SETTINGS_H */
|
#endif /* _FLUID_SETTINGS_H */
|
||||||
|
|
Loading…
Reference in a new issue