summaryrefslogtreecommitdiff
path: root/source/LCDriver.cpp
diff options
context:
space:
mode:
authorAleksandar Bozhinovski <aleksandar.bozhinovski@seavus.com>2012-04-02 16:56:05 +0200
committerViktor Mladenovski <viktor.mladenovski@seavus.com>2012-05-25 14:45:10 +0200
commit9f79e7a9892b5e8a3db704e3632ea118d314b250 (patch)
treee95bebf7e33070ac6c93cc61f577860e354884d3 /source/LCDriver.cpp
parentdf8a6edd480dccb8a43c8acd2bea50e5167f3e2c (diff)
Improve error handling
New LCD function added which for received error code number returns its short and long description. ST-Ericsson ID: 321379 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204 Change-Id: I9537fc920696e718e35127875ad8441405af8ed2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/54515 Reviewed-by: QATEST Reviewed-by: Viktor MLADENOVSKI <viktor.mladenovski@stericsson.com> Tested-by: Vlatko STENKOSKI Tested-by: Aleksandar BOZHINOVSKI <aleksandar.bozhinovski@seavus.com> Reviewed-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com> Tested-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Diffstat (limited to 'source/LCDriver.cpp')
-rw-r--r--source/LCDriver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/LCDriver.cpp b/source/LCDriver.cpp
index 9af739e..a979d1d 100644
--- a/source/LCDriver.cpp
+++ b/source/LCDriver.cpp
@@ -7,6 +7,7 @@
#include "lcdriver_error_codes.h"
#include "LCDriverInterface.h"
#include "Error.h"
+#include "error_codes_desc.h"
#define VERIFY_CONTEXT(c) \
do { \
@@ -195,6 +196,11 @@ LCDRIVER_API int __cdecl CancelCurrentLoaderCommand(LCDContext Context)
return 0;
}
+LCDRIVER_API void __cdecl GetLoaderErrorDescription(uint32 ErrorNr, uint8 *ShortDescription, uint8 *LongDescription, uint32 ShorDescrBufLen, uint32 LongDescrBufLen)
+{
+ GetLoaderErrorDescription_Call(ErrorNr, ShortDescription, LongDescription, ShorDescrBufLen, LongDescrBufLen);
+}
+
/************************************************************************************************
* API functions for loader commands
************************************************************************************************/