[xiph-cvs] cvs commit: libshout/include/shout shout.h

Brendan brendan at xiph.org
Thu Jun 5 08:36:36 PDT 2003



brendan     03/06/05 11:36:36

  Modified:    include/shout shout.h
  Log:
  Make SHOUTERR codes negative, for better unix semantics.
  THIS BREAKS BINARY COMPATIBILITY.

Revision  Changes    Path
1.18      +9 -9      libshout/include/shout/shout.h

Index: shout.h
===================================================================
RCS file: /usr/local/cvsroot/libshout/include/shout/shout.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -u -r1.17 -r1.18
--- shout.h	28 Mar 2003 00:38:28 -0000	1.17
+++ shout.h	5 Jun 2003 15:36:35 -0000	1.18
@@ -8,15 +8,15 @@
 #include <sys/types.h>
 
 #define SHOUTERR_SUCCESS	(0)
-#define SHOUTERR_INSANE		(1)
-#define SHOUTERR_NOCONNECT	(2)
-#define SHOUTERR_NOLOGIN	(3)
-#define SHOUTERR_SOCKET		(4)
-#define SHOUTERR_MALLOC		(5)
-#define SHOUTERR_METADATA	(6)
-#define SHOUTERR_CONNECTED	(7)
-#define SHOUTERR_UNCONNECTED	(8)
-#define SHOUTERR_UNSUPPORTED	(9)
+#define SHOUTERR_INSANE		(-1)
+#define SHOUTERR_NOCONNECT	(-2)
+#define SHOUTERR_NOLOGIN	(-3)
+#define SHOUTERR_SOCKET		(-4)
+#define SHOUTERR_MALLOC		(-5)
+#define SHOUTERR_METADATA	(-6)
+#define SHOUTERR_CONNECTED	(-7)
+#define SHOUTERR_UNCONNECTED	(-8)
+#define SHOUTERR_UNSUPPORTED	(-9)
 
 #define SHOUT_FORMAT_VORBIS	(0)
 #define SHOUT_FORMAT_MP3	(1)

<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