// // $Id$ // #ifndef TAO_RTEC_DEFAULTEVENTPAYLOAD_IDL #define TAO_RTEC_DEFAULTEVENTPAYLOAD_IDL #pragma prefix "" typedef sequence EventPayload; struct RtecEventData { #ifndef TAO_LACKS_EVENT_CHANNEL_OCTET_SEQUENCE long pad1; // This two objects ensure that the encapsulated stream below is // properly aligned; this makes the decoding of the payload more // efficient because we can use the usual demarshalling code // (without making extra copies). // This is how this works: // - The last field in the header is an 8-byte unsigned long, hence // the header finishes on an 8 byte boundary. // - The pad1 long has 4 bytes. // - The length in the octet sequence adds another 4 bytes. // - Thus the data in the octet sequence starts on an 8 bytes // boundary too. EventPayload payload; #endif /* TAO_LACKS_EVENT_CHANNEL_OCTET_SEQUENCE */ #ifndef TAO_LACKS_EVENT_CHANNEL_ANY any any_value; #endif /* TAO_LACKS_EVENT_CHANNEL_ANY */ }; #pragma prefix "" #endif /* TAO_RTEC_DEFAULTEVENTPAYLOAD_IDL */