[xiph-cvs] cvs commit: libshout/src shout.c

Brendan brendan at xiph.org
Mon Feb 3 16:53:42 PST 2003



brendan     03/02/03 19:53:42

  Modified:    .        configure.in
               src      shout.c
  Log:
  Finished shout_version()

Revision  Changes    Path
1.12      +4 -0      libshout/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/libshout/configure.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- configure.in	21 Jan 2003 06:45:43 -0000	1.11
+++ configure.in	4 Feb 2003 00:53:42 -0000	1.12
@@ -5,6 +5,10 @@
 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

<p><p>1.20      +7 -1      libshout/src/shout.c

Index: shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- shout.c	20 Jan 2003 08:24:27 -0000	1.19
+++ shout.c	4 Feb 2003 00:53:42 -0000	1.20
@@ -341,9 +341,15 @@
 }
 
 /* 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;
 }
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list