diff options
author | Rafal Jaworowski <raj@semihalf.com> | 2009-01-23 13:27:18 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-02-18 00:39:44 +0100 |
commit | 923aa48126259c13de95131203f1d28bfa5cb889 (patch) | |
tree | aa1c893363a1fcfa6a3611d3fcb7bd72dbbcbc05 /include | |
parent | 44a94e596ba0f6d0951b165403c520bf55b1c56f (diff) | |
download | u-boot-imx-923aa48126259c13de95131203f1d28bfa5cb889.zip u-boot-imx-923aa48126259c13de95131203f1d28bfa5cb889.tar.gz u-boot-imx-923aa48126259c13de95131203f1d28bfa5cb889.tar.bz2 |
API: Improve glue mid-layer of the API demo application.
- Extend ub_dev_read() and ub_dev_recv() so they return the length actually
read, which allows for better control and error handling (this introduces
additional error code API_ESYSC returned by the glue mid-layer).
- Clean up definitions naming and usage.
- Other minor cosmetics.
Note these changes do not touch the API proper, so the interface between
U-Boot and standalone applications remains unchanged.
Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/api_public.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/api_public.h b/include/api_public.h index d3164f6..5940d81 100644 --- a/include/api_public.h +++ b/include/api_public.h @@ -57,6 +57,7 @@ #define API_ENOMEM 3 /* no memory */ #define API_EBUSY 4 /* busy, occupied etc. */ #define API_EIO 5 /* I/O error */ +#define API_ESYSC 6 /* syscall error */ typedef int (*scp_t)(int, int *, ...); |