Working C++ IoTSlave for both IoTSet and IoTRelation; threading works for C++ LifxLig...
[iot2.git] / benchmarks / drivers / Cpp / LabRoom / Room_Skeleton.cpp
1 #include <iostream>
2 #include "Room_Skeleton.hpp"
3
4
5 // External create, destroy, and init functions
6 extern "C" void* createRoom_Skeleton(void** params) {
7         // Arguments: Room *_mainObj, string _callbackAddress, int _port
8         return new Room_Skeleton((Room*) params[0], *((string*) params[1]), *((int*) params[2]));
9 }
10
11
12 extern "C" void destroyRoom_Skeleton(void* t) {
13         Room_Skeleton* rs = (Room_Skeleton*) t;
14         delete rs;
15 }
16
17
18 extern "C" void initRoom_Skeleton(void* t) {
19         // TODO: We actually need init() in LabRoom class
20         // But, this is declared here just for the sake of consistency for Sentinel
21         // In this case, we need the symbol "init" when loading object handlers with .so files
22         //Room_Skeleton* rs = (Room_Skeleton*) t;
23         //rs->init();
24 }
25