123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <hardware/nvram.h>
- int testing_nvram_open(const hw_module_t* module,
- const char* device_id,
- hw_device_t** device_ptr);
- static struct hw_module_methods_t testing_nvram_module_methods = {
- .open = testing_nvram_open,
- };
- struct nvram_module HAL_MODULE_INFO_SYM
- __attribute__((visibility("default"))) = {
- .common = {.tag = HARDWARE_MODULE_TAG,
- .module_api_version = NVRAM_MODULE_API_VERSION_0_1,
- .hal_api_version = HARDWARE_HAL_API_VERSION,
- .id = NVRAM_HARDWARE_MODULE_ID,
- .name = "NVRAM HAL S/W testing sample",
- .author = "The Android Open Source Project",
- .methods = &testing_nvram_module_methods,
- .dso = 0,
- .reserved = {}},
- };
|