summaryrefslogtreecommitdiffstats
path: root/libass/ass.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-26 16:03:37 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-26 16:03:37 +0200
commitf21c5b6b2788d1ba2073cb4066eedee0de1b249e (patch)
tree027a48eea625849f03c4756f770ad101b8a080a7 /libass/ass.h
parent311ec23031e257a8edde5153b09a5d0c2d6b0f6b (diff)
downloadlibass-f21c5b6b2788d1ba2073cb4066eedee0de1b249e.tar.bz2
libass-f21c5b6b2788d1ba2073cb4066eedee0de1b249e.tar.xz
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.
Diffstat (limited to 'libass/ass.h')
-rw-r--r--libass/ass.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass.h b/libass/ass.h
index e243711..ddc2d55 100644
--- a/libass/ass.h
+++ b/libass/ass.h
@@ -124,8 +124,8 @@ void ass_process_force_style(ass_track_t *track);
* \param msg_cb pointer to callback function
* \param data additional data, will be passed to callback
*/
-void ass_set_message_cb(ass_library_t *priv,
- void (*msg_cb)(int, char *, va_list *, void *),
+void ass_set_message_cb(ass_library_t *priv, void (*msg_cb)
+ (int level, const char *fmt, va_list args, void *data),
void *data);
/**