Author: fireball Date: Sun Jan 27 16:37:40 2008 New Revision: 32026
URL: http://svn.reactos.org/svn/reactos?rev=32026&view=rev Log: Paolo Devoti devotip@tiscali.it - Separated the structure definition from the instance of it. See issue #2037 for more details.
Modified: trunk/reactos/include/ddk/atm.h
Modified: trunk/reactos/include/ddk/atm.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/atm.h?rev=32026... ============================================================================== --- trunk/reactos/include/ddk/atm.h (original) +++ trunk/reactos/include/ddk/atm.h Sun Jan 27 16:37:40 2008 @@ -130,10 +130,18 @@ } AALSpecificParameters; } AAL_PARAMETERS_IE, *PAAL_PARAMETERS_IE;
- -/* FIXME: Should the union be anonymous in C++ too? If so, - can't define named types _ATM_AAL5_INFO and _ATM_AAL0_INFO - within anonymous union for C++. */ +struct _ATM_AAL5_INFO { + BOOLEAN CellLossPriority; + UCHAR UserToUserIndication; + UCHAR CommonPartIndicator; +}; + +struct _ATM_AAL0_INFO { + BOOLEAN CellLossPriority; + UCHAR PayLoadTypeIdentifier; +}; + +/* FIXME: Should the union be anonymous in C++ too? */ typedef struct _ATM_AAL_OOB_INFO { ATM_AAL_TYPE AalType; @@ -141,16 +149,8 @@ _ANONYMOUS_UNION #endif union { - struct _ATM_AAL5_INFO { - BOOLEAN CellLossPriority; - UCHAR UserToUserIndication; - UCHAR CommonPartIndicator; - } ATM_AAL5_INFO; - - struct _ATM_AAL0_INFO { - BOOLEAN CellLossPriority; - UCHAR PayLoadTypeIdentifier; - } ATM_AAL0_INFO; + struct _ATM_AAL5_INFO ATM_AAL5_INFO; + struct _ATM_AAL0_INFO ATM_AAL0_INFO; #ifndef __cplusplus } DUMMYUNIONNAME; #else