diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-26 16:03:37 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-26 16:03:37 +0200 |
commit | f21c5b6b2788d1ba2073cb4066eedee0de1b249e (patch) | |
tree | 027a48eea625849f03c4756f770ad101b8a080a7 /libass/ass.h | |
parent | 311ec23031e257a8edde5153b09a5d0c2d6b0f6b (diff) | |
download | libass-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass.h b/libass/ass.h index e2437113..ddc2d551 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); /** |