diff options
-rw-r--r-- | libass/ass.c | 5 | ||||
-rw-r--r-- | libass/ass.h | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/libass/ass.c b/libass/ass.c index 19e1b53..c2e0bfa 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -59,6 +59,11 @@ struct parser_priv { #define ASS_STYLES_ALLOC 20 #define ASS_EVENTS_ALLOC 200 +int ass_library_version(void) +{ + return LIBASS_VERSION; +} + void ass_free_track(ASS_Track *track) { int i; diff --git a/libass/ass.h b/libass/ass.h index cb85a2c..e7c2ade 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -23,7 +23,7 @@ #include <stdarg.h> #include "ass_types.h" -#define LIBASS_VERSION 0x01020000 +#define LIBASS_VERSION 0x01030000 /* * A linked list of images produced by an ass renderer. @@ -88,6 +88,13 @@ typedef enum { } ASS_ShapingLevel; /** + * \brief Return the version of library. This returns the value LIBASS_VERSION + * was set to when the library was compiled. + * \return library version + */ +int ass_library_version(void); + +/** * \brief Initialize the library. * \return library handle or NULL if failed */ |