aboutsummaryrefslogtreecommitdiff
path: root/shared/common/binport.h
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2005-01-27 14:42:55 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2005-01-27 14:42:55 +0000
commitbfb359fd22e61faaca3a6e49ad3b7a81f2d71551 (patch)
treed070071515c7e7f53073da32046b24855e8307c8 /shared/common/binport.h
parent6435314717c5fb8fa062eb682c72c8df095b1be3 (diff)
cyclone alpha52 and toxy alpha15 (see notes.txt for cyclone, toxy and shared)
svn path=/trunk/externals/miXed/; revision=2550
Diffstat (limited to 'shared/common/binport.h')
-rw-r--r--shared/common/binport.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/shared/common/binport.h b/shared/common/binport.h
index f29d24d..b70c555 100644
--- a/shared/common/binport.h
+++ b/shared/common/binport.h
@@ -1,12 +1,20 @@
-/* Copyright (c) 2003-2004 krzYszcz and others.
+/* Copyright (c) 2003-2005 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#ifndef __BINPORT_H__
#define __BINPORT_H__
-enum { BINPORT_OK, BINPORT_MAXTEXT, BINPORT_MAXOLD, BINPORT_PDFILE,
- BINPORT_INVALID, BINPORT_CORRUPT, BINPORT_FAILED };
+/* return values of binport_read() and import_max(), also passed to
+ outlet_float() by cyclone library objects (cyclone, maxmode...) */
+#define BINPORT_FAILED -4 /* internal error */
+#define BINPORT_CORRUPT -3 /* file contents inconsistency */
+#define BINPORT_INVALID -2 /* file type not recognized */
+#define BINPORT_NOFILE -1 /* file not found */
+#define BINPORT_MAXBINARY 0
+#define BINPORT_MAXTEXT 1
+#define BINPORT_MAXOLD 2
+#define BINPORT_PDFILE 3
#ifndef MIXED_STANDALONE
int binport_read(t_binbuf *bb, char *filename, char *dirname);