summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2011-10-17 11:18:37 -0500
committerMIKE J. JONES <mjjones@us.ibm.com>2011-10-17 11:29:22 -0500
commitc728faf93232e211ebd59ce830ed54bea1698917 (patch)
tree458279af49d46af6dbdd0fdd9e660f6572fe82e1 /src/include/usr/hwpf
parent0edaa15a20f8986a80d0c819dfa11648ef4f0d9e (diff)
downloadtalos-hostboot-c728faf93232e211ebd59ce830ed54bea1698917.tar.gz
talos-hostboot-c728faf93232e211ebd59ce830ed54bea1698917.zip
HWPF: Change Util functions to have C symbols
Change-Id: I759cf5f5163fd61ab87abdd80315d48f22215a2c Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/437 Reviewed-by: Thi N. Tran <thi@us.ibm.com> Tested-by: Jenkins Server
Diffstat (limited to 'src/include/usr/hwpf')
-rw-r--r--src/include/usr/hwpf/fapi/fapiUtil.H18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/include/usr/hwpf/fapi/fapiUtil.H b/src/include/usr/hwpf/fapi/fapiUtil.H
index 3c2978ff3..e3a3b9f3a 100644
--- a/src/include/usr/hwpf/fapi/fapiUtil.H
+++ b/src/include/usr/hwpf/fapi/fapiUtil.H
@@ -37,7 +37,7 @@
* camvanng 09/06/2011 Added fapiLogError
* mjjones 09/14/2011 Prepended fapi to delay
* mjjones 10/05/2011 Added fapiCheckType
- *
+ * mjjones 10/13/2011 Added extern "C" to functions
*/
#ifndef FAPIUTIL_H_
@@ -45,10 +45,13 @@
#include <stdint.h>
#include <stddef.h>
-#include <fapi.H>
+#include <fapiReturnCode.H>
-namespace fapi
+// It is an eCMD requirement that these functions have a "C" symbol
+// because they may be used from a dynamically linked shared library
+extern "C"
{
+
/**
* @brief Assert that an expression is true. Aborting the process if false.
*
@@ -108,7 +111,7 @@ fapi::ReturnCode fapiDelay(uint64_t i_nanoSeconds, uint64_t i_simCycles);
* FAPI_EXEC_HWP(l_rc, function2, i_target)
* return rc;
*/
-void fapiLogError(ReturnCode & io_rc);
+void fapiLogError(fapi::ReturnCode & io_rc);
/** @brief This function answers the question, is scand tracing turned on?
* The implementation of this function is specific to the platform.
@@ -123,7 +126,12 @@ bool platIsScanTraceEnabled();
* @param[in] True to enable or false to disable scan trace.
* @return void
*/
-void platSetScanTrace( bool i_enable );
+void platSetScanTrace(bool i_enable);
+
+}
+
+namespace fapi
+{
/**
* @brief Check the type of a variable
OpenPOWER on IntegriCloud