New upstream version 8.1.0
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "RegisterNodeRespMsg.h"
|
||||
|
||||
const struct NetMessageOps RegisterNodeRespMsg_Ops = {
|
||||
.serializePayload = _NetMessage_serializeDummy, // serialization not implemented
|
||||
.deserializePayload = RegisterNodeRespMsg_deserializePayload,
|
||||
.processIncoming = NetMessage_processIncoming,
|
||||
.getSupportedHeaderFeatureFlagsMask = NetMessage_getSupportedHeaderFeatureFlagsMask,
|
||||
};
|
||||
|
||||
bool RegisterNodeRespMsg_deserializePayload(NetMessage* this, DeserializeCtx* ctx)
|
||||
{
|
||||
RegisterNodeRespMsg* thisCast = (RegisterNodeRespMsg*)this;
|
||||
|
||||
// nodeNumID
|
||||
if(!NumNodeID_deserialize(ctx, &thisCast->nodeNumID) )
|
||||
return false;
|
||||
|
||||
// GRPC Port
|
||||
if(!Serialization_deserializeUShort(ctx, &thisCast->grpcPort) )
|
||||
return false;
|
||||
|
||||
// fsUUID
|
||||
if(!Serialization_deserializeStr(ctx, &thisCast->fsUUIDLen,
|
||||
&thisCast->fsUUID) )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user