Change isolate() API to take list of chips
In order to avoid issues with the internal data structures of the
isolation code, we changed the isolate() API take a list of chips
instead of a single chip.
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I736d59ce1733cf6b582ece53447ef0c978846f50
diff --git a/test/simulator/hei_sim_main.cpp b/test/simulator/hei_sim_main.cpp
index b3291aa..46de629 100644
--- a/test/simulator/hei_sim_main.cpp
+++ b/test/simulator/hei_sim_main.cpp
@@ -2,18 +2,24 @@
int main()
{
+ using namespace libhei;
+
void * buffer = nullptr;
size_t sz_buffer = 0;
- libhei::initialize( buffer, sz_buffer );
+ initialize( buffer, sz_buffer );
- void * chip = nullptr;
- libhei::ChipType_t chipType = 0;
- libhei::IsolationData isoData { chip, chipType };
+ Chip c1, c2;
- libhei::isolate( isoData );
+ std::vector<Chip> chipList;
+ chipList.push_back(c1);
+ chipList.push_back(c2);
- libhei::uninitialize();
+ IsolationData isoData;
+
+ isolate( chipList, isoData );
+
+ uninitialize();
return 0;
}