Hello,
I am trying to use the union construct to define data as follows:
// Data Package Kinds
enum data_packet_kind
{
EVENT,
REQUEST,
RESPONSE,
COMMAND,
COMMAND_RESULT,
CAT,
CAT_REPLY,
TEXT_MESSAGE
};
// all types are defined - see attached IDL file
struct data_packet_t
{
data_packet_kind packet_kind;
union data switch ( data_packet_kind )
{
case EVENT:
event_t event;