From: Wolfgang Denk Date: Wed, 18 Feb 2009 00:41:01 +0100 Subject: [U-Boot] [PATCH 4/4] API: Improve glue mid-layer of the API demo application. In-Reply-To: <12327136393883-git-send-email-raj@semihalf.com> References: <12327136383163-git-send-email-raj@semihalf.com> <12327136393883-git-send-email-raj@semihalf.com> Message-ID: <20090217234101.73390832E893@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Rafal Jaworowski, In message <12327136393883-git-send-email-raj@semihalf.com> you wrote: > - 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 > --- > api_examples/demo.c | 8 ++---- > api_examples/glue.c | 58 +++++++++++++++++++++---------------------------- > api_examples/glue.h | 16 ++++++++----- > include/api_public.h | 1 + > 4 files changed, 39 insertions(+), 44 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de How long does it take a DEC field service engineer to change a lightbulb? It depends on how many bad ones he brought with him.