crazy_status_t crazy_library_get_info(crazy_library_t* library, crazy_context_t* context, crazy_library_info_t* info) { if (!library) { context->error = "Invalid library file handle"; return CRAZY_STATUS_FAILURE; } LibraryView* wrap = reinterpret_cast<LibraryView*>(library); if (!wrap->GetInfo(&info->load_address, &info->load_size, &info->relro_start, &info->relro_size, &context->error)) { return CRAZY_STATUS_FAILURE; } return CRAZY_STATUS_SUCCESS; }