[studio,keel] Make fileChanged emit UUID as well as path, add uuidUrlToUuid

This commit is contained in:
2024-05-22 23:17:28 -05:00
parent 08f958fbac
commit 4a2b1fd743
4 changed files with 15 additions and 7 deletions

View File

@ -95,6 +95,10 @@ ox::Error buildUuidMap(Context &ctx) noexcept;
ox::Result<ox::UUID> pathToUuid(Context &ctx, ox::CRStringView path) noexcept;
constexpr ox::Result<ox::UUID> uuidUrlToUuid(ox::StringView uuidUrl) noexcept {
return ox::UUID::fromString(substr(uuidUrl, 7));
}
ox::Result<ox::CStringView> uuidUrlToPath(Context &ctx, ox::StringView uuid) noexcept;
ox::Result<ox::CStringView> uuidToPath(Context &ctx, ox::CRStringView uuid) noexcept;