From f21c5b6b2788d1ba2073cb4066eedee0de1b249e Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sun, 26 Jul 2009 16:03:37 +0200 Subject: Improve message callback API Instead of passing a pointer to a va_list, pass the va_list itself. Additionally, use const char for the format string and use names in the prototype that describe the arguments' meaning. --- libass/ass_library.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/ass_library.h') diff --git a/libass/ass_library.h b/libass/ass_library.h index 85b0842d..e6b37e87 100644 --- a/libass/ass_library.h +++ b/libass/ass_library.h @@ -36,7 +36,7 @@ struct ass_library_s { ass_fontdata_t *fontdata; int num_fontdata; - void (*msg_callback)(int, char *, va_list *, void *); + void (*msg_callback)(int, const char *, va_list, void *); void *msg_callback_data; }; -- cgit v1.2.3