#pragma once #include // Shared host/plugin interface for the service hot-reload tests. It // derives Void::Service::IService so the host recovers it from the // plugin's exported IService* by a single-inheritance static_cast (no // dynamic_cast across the RTLD_LOCAL boundary). namespace VoidTest { class ICalc : public Void::Service::IService { public: /// Returns an accumulated value; each call adds `delta` to the /// service's running total and returns the new total. The total /// is the state migrated across plugin reloads. virtual int accumulate(int delta) = 0; /// Schema version of this build (1 or 2) — lets tests confirm a /// reload actually swapped the implementation. [[nodiscard]] virtual int version() const = 0; }; } // namespace VoidTest