/ sys_info_svc_reply_msg.h
sys_info_svc_reply_msg.h
 1  #pragma once
 2  #include "cbor.h"
 3  
 4  namespace SysInfoSvcReplyMsg {
 5  
 6  constexpr size_t NUM_FIELDS = 5;
 7  
 8  struct Data {
 9    uint64_t node_id;
10    uint32_t git_sha;
11    uint32_t sys_config_crc;
12    uint32_t app_name_strlen;
13    char *app_name;
14  };
15  
16  CborError encode(Data &d, uint8_t *cbor_buffer, size_t size,
17                   size_t *encoded_len);
18  
19  CborError decode(Data &d, const uint8_t *cbor_buffer, size_t size);
20  
21  } // namespace SysInfoSvcReplyMsg