Commit c58290c4 authored by brendan's avatar brendan

Finished shout_version()

svn path=/trunk/libshout/; revision=4319
parent cbe71217
......@@ -5,6 +5,10 @@ LIBSHOUT_MAJOR=2
LIBSHOUT_MINOR=0
LIBSHOUT_MICRO=0
AC_DEFINE_UNQUOTED([LIBSHOUT_MAJOR], [$LIBSHOUT_MAJOR], ["Shout library major version"])
AC_DEFINE_UNQUOTED([LIBSHOUT_MINOR], [$LIBSHOUT_MINOR], ["Shout library minor version"])
AC_DEFINE_UNQUOTED([LIBSHOUT_MICRO], [$LIBSHOUT_MICRO], ["Shout library patch version"])
if test "$LIBSHOUT_MICRO" != 0
then
VERSION=$LIBSHOUT_MAJOR.$LIBSHOUT_MINOR.$LIBSHOUT_MICRO
......
......@@ -341,9 +341,15 @@ int shout_set_metadata(shout_t *self, shout_metadata_t *metadata)
}
/* getters/setters */
/* TODO: Add major/minor/patch support */
const char *shout_version(int *major, int *minor, int *patch)
{
if (major)
*major = LIBSHOUT_MAJOR;
if (minor)
*minor = LIBSHOUT_MINOR;
if (patch)
*patch = LIBSHOUT_MICRO;
return VERSION;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment