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 /test | |
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 'test')
-rw-r--r-- | test/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c index ac4bfe6..86fa342 100644 --- a/test/test.c +++ b/test/test.c @@ -12,12 +12,12 @@ typedef struct image_s { ass_library_t *ass_library; ass_renderer_t *ass_renderer; -void msg_callback(int level, char *fmt, va_list * va, void *data) +void msg_callback(int level, const char *fmt, va_list va, void *data) { if (level > 6) return; printf("libass: "); - vprintf(fmt, *va); + vprintf(fmt, va); printf("\n"); } |