1 #ifndef RTDTYPES_H_ 2 #define RTDTYPES_H_ 3 4 #include "rtdText.h" 5 #include "rtdUri.h" 6 7 #define RTD_TEXT 'T' 8 #define RTD_URI 'U' 9 10 typedef union { 11 RtdTextTypeStr text; 12 RTDUriTypeStr uri; 13 } RTDTypeUnion; 14 15 typedef struct { 16 uint8_t typeCode; 17 RTDTypeUnion typePayload; 18 }RTDTypeStr; 19 20 #endif /* RTDTYPES_H_ */ 21