// track_guid.cpp — the single MediaTrack* -> canonical GUID key formatter. See // track_guid.h. Compiled into the reaper_reasampler MODULE; includes // reaper_plugin_functions.h WITHOUT REAPERAPI_IMPLEMENT (main.cpp is the one TU // that defines the API pointers — CLAUDE.md §contract). #include "track_guid.h" #define REAPERAPI_MINIMAL #define REAPERAPI_WANT_GetTrackGUID #define REAPERAPI_WANT_guidToString #include "reaper_plugin_functions.h" namespace reasampler { std::string guidString(MediaTrack* tr) { if (!tr) return {}; GUID* g = GetTrackGUID(tr); if (!g) return {}; char buf[64] = {0}; // guidToString needs a >=64-char destination (SDK contract) guidToString(g, buf); return std::string(buf); } } // namespace reasampler