summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Test program: free track/renderer/libraryGrigori Goronzy2009-07-241-0/+5
| | | | | In the test program, free the track, renderer and library properly. This is useful for memory leak testing.
* Improve fontconfig setupGrigori Goronzy2009-07-171-1/+1
| | | | | | | Add an argument to ass_set_fonts for controlling whether the fontconfig font cache should be built/updated. Add a new function ass_fonts_update to make it possible to update fonts later on. Additionally, stop using FcConfigSetDefault for thread safety.
* Allow passing user data to callbackGrigori Goronzy2009-07-121-2/+2
| | | | | | It is often useful or necessary to pass custom data to a callback. Add an argument to the callback registering function to pass a void pointer object to the callback each time it is called.
* Convert test program to plain CGrigori Goronzy2009-07-113-173/+182
| | | | | The test program unnecessarily was using a few C++ features. Convert it to plain C to make everything work without a C++ compiler.
* Message callback funtionalityGrigori Goronzy2009-07-111-0/+11
| | | | | | | | | | | 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]".
* Test program: check track initializationGrigori Goronzy2009-07-071-0/+4
| | | | Stop in case the track initialization fails. This fixes a crash.
* Test program: nicer-looking backgroundGrigori Goronzy2009-06-251-2/+3
| | | | | | Use a uniformly colored background in the test program. This looks better than the randomly-looking pattern that was used before. A chessboard pattern would be even better, but this will do for now.
* ass_set_fonts: optionally pass fontconfig config pathgreg2009-06-201-1/+1
| | | | | | | Optionally pass a fontconfig config file to the fontconfig initialisation. This changes the public API.
* Remove wrappers for ass_set_fontsgreg2009-06-201-1/+1
| | | | | | | | | ass_set_fonts_ was wrapped through ass_set_fonts and ass_set_fonts_nofc to either use fontconfig or not. This is not very useful, since a simple parameter to ass_set_fonts_ can be used instead. Remove the wrapper functions and rename the real function to ass_set_fonts. This changes the public API.
* Add autotools infrastructure.greg2009-06-182-0/+161