[ox/std] Change InitTraceMsg::appName from C string to BString<128>

This commit is contained in:
Gary Talent 2023-06-26 23:57:17 -05:00
parent 874592cffd
commit cf5786a4ed

View File

@ -95,14 +95,14 @@ constexpr Error model(T *io, ox::CommonPtrWith<InitTraceMsgRcv> auto *obj) noexc
struct InitTraceMsg {
static constexpr auto TypeName = "net.drinkingtea.ox.trace.InitTraceMsg";
static constexpr auto TypeVersion = 1;
const char *appName = "";
static constexpr auto TypeVersion = 2;
ox::BasicString<128> appName;
};
template<typename T>
constexpr Error model(T *io, ox::CommonPtrWith<InitTraceMsg> auto *obj) noexcept {
oxReturnError(io->template setTypeInfo<InitTraceMsg>());
oxReturnError(io->fieldCString("appName", &obj->appName));
oxReturnError(io->field("appName", &obj->appName));
return {};
}