Created primary API wrappers for the Isolator class
This is an attempt to abstract the internal workings of the isolator
class from the user application.
Change-Id: Ic898b202da6a0ddb368411c11218ca019d1f23fd
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
diff --git a/test/simulator/hei_sim_main.cpp b/test/simulator/hei_sim_main.cpp
index e83a577..b3291aa 100644
--- a/test/simulator/hei_sim_main.cpp
+++ b/test/simulator/hei_sim_main.cpp
@@ -1,19 +1,19 @@
-#include "hei_isolator.hpp"
+#include <hei_main.hpp>
int main()
{
- libhei::Isolator iso;
-
void * buffer = nullptr;
size_t sz_buffer = 0;
- iso.initialize( buffer, sz_buffer );
+ libhei::initialize( buffer, sz_buffer );
void * chip = nullptr;
libhei::ChipType_t chipType = 0;
- libhei::IsolationData isoData;
+ libhei::IsolationData isoData { chip, chipType };
- iso.isolate( chip, chipType, isoData );
+ libhei::isolate( isoData );
+
+ libhei::uninitialize();
return 0;
}