Add in the DVDVersion function. Feel free to drop this patch as it really doesn't add anything helpful.
Signed-off-by: Erik Hovland <[email protected]> --- src/dvd_reader.c | 8 ++++++++ src/dvdread/dvd_reader.h | 4 ++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/dvd_reader.c b/src/dvd_reader.c index 052d5b0..0147bbb 100644 --- a/src/dvd_reader.c +++ b/src/dvd_reader.c @@ -116,6 +116,14 @@ int UDFReadBlocksRaw( dvd_reader_t *device, uint32_t lb_number, int encrypted ); /** + * Returns the compiled version. (DVDREAD_VERSION as an int) + */ +int DVDVersion() +{ + return DVDREAD_VERSION; +} + +/** * Set the level of caching on udf * level = 0 (no caching) * level = 1 (caching filesystem info) diff --git a/src/dvdread/dvd_reader.h b/src/dvdread/dvd_reader.h index be94cc7..327c6f6 100644 --- a/src/dvdread/dvd_reader.h +++ b/src/dvdread/dvd_reader.h @@ -68,6 +68,10 @@ typedef struct dvd_reader_s dvd_reader_t; * Opaque type for a file read handle, much like a normal fd or FILE *. */ typedef struct dvd_file_s dvd_file_t; +/** + * Returns the compiled version of the library. (The value of DVDREAD_VERSION) + */ +int DVDVersion(); /** * Opens a block device of a DVD-ROM file, or an image file, or a directory _______________________________________________ DVDnav-discuss mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss
