11 lines
370 B
C
11 lines
370 B
C
#ifndef ZRE_DEVICE_H
|
|
#define ZRE_DEVICE_H
|
|
|
|
#include "opcodes.h"
|
|
|
|
int vm_register_device(VM *vm, const char *path, const char *type, void *data, DeviceOps *ops);
|
|
Device* find_device_by_path(VM *vm, const char *path);
|
|
Device* find_device_by_type(VM *vm, const char *type);
|
|
int find_devices_by_type(VM *vm, const char *type, Device **results, uint32_t max_results);
|
|
|
|
#endif |