It's possible to register new APIs from other languages by registering a global device_api.my_device, but it breaks down because the actual implementation depends on being a C++ DeviceApi with methods like AllocDataSpace. One solution is to create a "wrapper" DeviceAPI which calls out to globals like device_api.ext_dev.alloc_data_space.
It's possible to register new APIs from other languages by registering a global
device_api.my_device, but it breaks down because the actual implementation depends on being a C++DeviceApiwith methods likeAllocDataSpace. One solution is to create a "wrapper" DeviceAPI which calls out to globals likedevice_api.ext_dev.alloc_data_space.