]> granicus.if.org Git - libass/commit
Message callback funtionality
authorGrigori Goronzy <greg@blackbox>
Sat, 11 Jul 2009 00:18:51 +0000 (02:18 +0200)
committerGrigori Goronzy <greg@blackbox>
Sat, 11 Jul 2009 00:22:18 +0000 (02:22 +0200)
commit2c412cdab94a7bb27c5a1e04ab902295215de888
treec1372ebf5e6473b287e152a40c88587f3470d237
parent613a22ab9b96453c10de6d75b43067652ad6d7db
Message callback funtionality

Introduce functionality for providing a message callback that is used
for passing messages to the controlling application instead of simply
printing them to standard output.  The function pointer to the callback
is stored in the ass_library_t instance. ass_msg needs access to it, so
in many places the library instance needs to be passed around now.

The default behavior is the old one: messages of MSGL_INFO or lower
are printed to the standard output, prefixed with "[ass]".
18 files changed:
libass/ass.c
libass/ass.h
libass/ass_bitmap.c
libass/ass_bitmap.h
libass/ass_cache.c
libass/ass_cache.h
libass/ass_drawing.c
libass/ass_drawing.h
libass/ass_font.c
libass/ass_fontconfig.c
libass/ass_fontconfig.h
libass/ass_library.c
libass/ass_library.h
libass/ass_render.c
libass/ass_utils.c
libass/ass_utils.h
libass/libass.sym
test/test.cpp