]> git.sur5r.net Git - u-boot/commit
API: Improve glue mid-layer of the API demo application.
authorRafal Jaworowski <raj@semihalf.com>
Fri, 23 Jan 2009 12:27:18 +0000 (13:27 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 17 Feb 2009 23:39:44 +0000 (00:39 +0100)
commit923aa48126259c13de95131203f1d28bfa5cb889
treeaa1c893363a1fcfa6a3611d3fcb7bd72dbbcbc05
parent44a94e596ba0f6d0951b165403c520bf55b1c56f
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>
api_examples/demo.c
api_examples/glue.c
api_examples/glue.h
include/api_public.h