summaryrefslogtreecommitdiff
path: root/apps/buffering.h
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-10-28 15:54:10 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-10-28 15:54:10 +0000
commit7807279eaf698474e2eabde440b73a1f587ea7ef (patch)
tree07d972da2a7251d134a0a5d74ce5d8be5ca42838 /apps/buffering.h
parent9f6719ec56f2a6b5ae164f6be7dcd7fc3f072d75 (diff)
downloadrockbox-7807279eaf698474e2eabde440b73a1f587ea7ef.zip
rockbox-7807279eaf698474e2eabde440b73a1f587ea7ef.tar.gz
rockbox-7807279eaf698474e2eabde440b73a1f587ea7ef.tar.bz2
rockbox-7807279eaf698474e2eabde440b73a1f587ea7ef.tar.xz
Add #defines for error values. Makes the code easier to read.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15348 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.h')
-rw-r--r--apps/buffering.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/buffering.h b/apps/buffering.h
index 29771ad..7dc07f5 100644
--- a/apps/buffering.h
+++ b/apps/buffering.h
@@ -35,6 +35,13 @@ enum data_type {
TYPE_UNKNOWN,
};
+/* Error return values */
+#define HANDLE_NOT_FOUND -1
+#define BUFFER_FULL -2
+#define INVALID_VALUE -3
+#define FILE_ERROR -4
+#define DATA_NOT_READY -5
+
/* Initialise the buffering subsystem */
void buffering_init(void);