#ifndef __BASE_DEVICE_H__ #define __BASE_DEVICE_H__ #include "hmmmm.h" typedef struct { void* specs; device_lib_t* lib; device_public_context_t* ctx; uint64_t clockCycleLimit; uint64_t clockCycleCounter; } device_handle_t; device_handle_t* openBaseDeviceFromConfig(const char* configPath, char* errbuf); device_handle_t* openBaseDevice(conf_dev_t* devConf, char* errbuf); conf_dev_t* openBaseDeviceConfig(const char* configPath, char* errbuf); void closeBaseDevice(device_handle_t* devHandle); #endif // ifndef __BASE_DEVICE_H__