2026-01-06 16:27:19 +08:00
|
|
|
#include <basalt/export_macro.hpp>
|
2026-01-10 21:49:29 +08:00
|
|
|
#include <basalt/deliver.hpp>
|
|
|
|
|
|
|
|
|
|
namespace deliver = ::basalt::shared::deliver;
|
|
|
|
|
using deliver::DeliverConfig;
|
|
|
|
|
using deliver::IDeliver;
|
|
|
|
|
|
|
|
|
|
class PipeDeliver : public IDeliver {
|
|
|
|
|
public:
|
|
|
|
|
PipeDeliver() {}
|
|
|
|
|
virtual ~PipeDeliver() {}
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
};
|
2026-01-04 16:12:36 +08:00
|
|
|
|
|
|
|
|
BS_EXPORT void* BSCreateInstance() {
|
2026-01-10 21:49:29 +08:00
|
|
|
return static_cast<IDeliver*>(new PipeDeliver());
|
2026-01-04 16:12:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BS_EXPORT void BSDestroyInstance(void* instance) {
|
2026-01-10 21:49:29 +08:00
|
|
|
delete dynamic_cast<PipeDeliver*>(static_cast<IDeliver*>(instance));
|
2026-01-04 16:12:36 +08:00
|
|
|
}
|