# HG changeset patch # User diego # Date 1258564517 0 # Node ID 57659b3ef05cc0058df2b67dbc808eea9bc26687 # Parent ecf67bd079fee2e043112c0333d4190de20bf093 Add functions to return library license and library configuration. diff -r ecf67bd079fe -r 57659b3ef05c avutil.h --- a/avutil.h Wed Nov 18 00:07:20 2009 +0000 +++ b/avutil.h Wed Nov 18 17:15:17 2009 +0000 @@ -53,6 +53,16 @@ */ unsigned avutil_version(void); +/** + * Returns the libavutil build-time configuration. + */ +const char * avutil_configuration(void); + +/** + * Returns the libavutil license. + */ +const char * avutil_license(void); + #include "common.h" #include "mathematics.h" #include "rational.h" diff -r ecf67bd079fe -r 57659b3ef05c utils.c --- a/utils.c Wed Nov 18 00:07:20 2009 +0000 +++ b/utils.c Wed Nov 18 17:15:17 2009 +0000 @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include "avutil.h" /** @@ -27,3 +28,14 @@ { return LIBAVUTIL_VERSION_INT; } + +const char * avutil_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char * avutil_license(void) +{ +#define LICENSE_PREFIX "libavutil license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +}