Files
hardware_RedLintu16_compat/libcodec2/C2PlatformStorePluginLoader.cpp
Bruno Martins 70abb57ff2 compat: Add legacy Codec2 allocator and block pool wrappers
Forward legacy plugin-loader calls using the default deleters and
construct pooled block pools with VER_HIDL, preserving the implicit
this pointer.

Assisted-by: LLM
Change-Id: If76a0edd3bb740501cb157a9fa8f1c93691d1706
2026-10-17 10:28:35 +01:00

21 lines
782 B
C++

/*
* SPDX-FileCopyrightText: The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
#include <C2PlatformStorePluginLoader.h>
extern "C" c2_status_t
_ZN27C2PlatformStorePluginLoader15createAllocatorEjPNSt3__110shared_ptrI11C2AllocatorEE(
C2PlatformStorePluginLoader* loader, C2Allocator::id_t allocatorId,
std::shared_ptr<C2Allocator>* allocator) {
return loader->createAllocator(allocatorId, allocator);
}
extern "C" c2_status_t
_ZN27C2PlatformStorePluginLoader15createBlockPoolEjmPNSt3__110shared_ptrI11C2BlockPoolEE(
C2PlatformStorePluginLoader* loader, C2Allocator::id_t allocatorId,
C2BlockPool::local_id_t blockPoolId, std::shared_ptr<C2BlockPool>* pool) {
return loader->createBlockPool(allocatorId, blockPoolId, pool);
}