change fluid_log_* prototypes to const char*

This commit is contained in:
derselbst 2018-08-23 16:56:22 +02:00
parent f0f9ebeefb
commit 4d8574d38a
2 changed files with 3 additions and 3 deletions

View file

@ -70,12 +70,12 @@ enum fluid_log_level
* @param message Log message text
* @param data User data pointer supplied to fluid_set_log_function().
*/
typedef void (*fluid_log_function_t)(int level, char *message, void *data);
typedef void (*fluid_log_function_t)(int level, const char *message, void *data);
FLUIDSYNTH_API
fluid_log_function_t fluid_set_log_function(int level, fluid_log_function_t fun, void *data);
FLUIDSYNTH_API void fluid_default_log_function(int level, char *message, void *data);
FLUIDSYNTH_API void fluid_default_log_function(int level, const char *message, void *data);
FLUIDSYNTH_API int fluid_log(int level, const char *fmt, ...);

View file

@ -118,7 +118,7 @@ fluid_set_log_function(int level, fluid_log_function_t fun, void *data)
* @param data User supplied data (not used)
*/
void
fluid_default_log_function(int level, char *message, void *data)
fluid_default_log_function(int level, const char *message, void *data)
{
FILE *out;