Mercurial > libavutil.hg
changeset 792:57659b3ef05c libavutil
Add functions to return library license and library configuration.
author | diego |
---|---|
date | Wed, 18 Nov 2009 17:15:17 +0000 |
parents | ecf67bd079fe |
children | 9072135121e0 |
files | avutil.h utils.c |
diffstat | 2 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"
--- 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; +}