[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 {
|
struct InitTraceMsg {
|
||||||
static constexpr auto TypeName = "net.drinkingtea.ox.trace.InitTraceMsg";
|
static constexpr auto TypeName = "net.drinkingtea.ox.trace.InitTraceMsg";
|
||||||
static constexpr auto TypeVersion = 1;
|
static constexpr auto TypeVersion = 2;
|
||||||
const char *appName = "";
|
ox::BasicString<128> appName;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
constexpr Error model(T *io, ox::CommonPtrWith<InitTraceMsg> auto *obj) noexcept {
|
constexpr Error model(T *io, ox::CommonPtrWith<InitTraceMsg> auto *obj) noexcept {
|
||||||
oxReturnError(io->template setTypeInfo<InitTraceMsg>());
|
oxReturnError(io->template setTypeInfo<InitTraceMsg>());
|
||||||
oxReturnError(io->fieldCString("appName", &obj->appName));
|
oxReturnError(io->field("appName", &obj->appName));
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user