[ox/std] Change InitTraceMsg::appName from C string to BString<128>
This commit is contained in:
parent
874592cffd
commit
cf5786a4ed
6
deps/ox/src/ox/std/trace.hpp
vendored
6
deps/ox/src/ox/std/trace.hpp
vendored
@ -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 {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user