From c1736936982e9b0d3400462eda2b0bf410f6e003 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 18 Nov 2009 17:15:17 +0000 Subject: Add functions to return library license and library configuration. Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavdevice/avdevice.c | 11 +++++++++++ libavdevice/avdevice.h | 10 ++++++++++ 2 files changed, 21 insertions(+) (limited to 'libavdevice') diff --git a/libavdevice/avdevice.c b/libavdevice/avdevice.c index ec379b9d42..3d67b4b8be 100644 --- a/libavdevice/avdevice.c +++ b/libavdevice/avdevice.c @@ -22,3 +22,14 @@ unsigned avdevice_version(void) { return LIBAVDEVICE_VERSION_INT; } + +const char * avdevice_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char * avdevice_license(void) +{ +#define LICENSE_PREFIX "libavdevice license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +} diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h index 2635423481..124cfa28a0 100644 --- a/libavdevice/avdevice.h +++ b/libavdevice/avdevice.h @@ -38,6 +38,16 @@ */ unsigned avdevice_version(void); +/** + * Returns the libavdevice build-time configuration. + */ +const char * avdevice_configuration(void); + +/** + * Returns the libavdevice license. + */ +const char * avdevice_license(void); + /** * Initialize libavdevice and register all the input and output devices. * @warning This function is not thread safe. -- cgit v1.2.3