Paolo Devoti <devotip@tiscali.it>

- Separated the structure definition from the instance of it.
See issue #2037 for more details.

svn path=/trunk/; revision=32026
This commit is contained in:
Aleksey Bragin 2008-01-27 13:37:40 +00:00
parent 34482cc96a
commit a1af57e18c

View file

@ -130,10 +130,18 @@ typedef struct _AAL_PARAMETERS_IE {
} AALSpecificParameters; } AALSpecificParameters;
} AAL_PARAMETERS_IE, *PAAL_PARAMETERS_IE; } AAL_PARAMETERS_IE, *PAAL_PARAMETERS_IE;
struct _ATM_AAL5_INFO {
BOOLEAN CellLossPriority;
UCHAR UserToUserIndication;
UCHAR CommonPartIndicator;
};
/* FIXME: Should the union be anonymous in C++ too? If so, struct _ATM_AAL0_INFO {
can't define named types _ATM_AAL5_INFO and _ATM_AAL0_INFO BOOLEAN CellLossPriority;
within anonymous union for C++. */ UCHAR PayLoadTypeIdentifier;
};
/* FIXME: Should the union be anonymous in C++ too? */
typedef struct _ATM_AAL_OOB_INFO typedef struct _ATM_AAL_OOB_INFO
{ {
ATM_AAL_TYPE AalType; ATM_AAL_TYPE AalType;
@ -141,16 +149,8 @@ typedef struct _ATM_AAL_OOB_INFO
_ANONYMOUS_UNION _ANONYMOUS_UNION
#endif #endif
union { union {
struct _ATM_AAL5_INFO { struct _ATM_AAL5_INFO ATM_AAL5_INFO;
BOOLEAN CellLossPriority; struct _ATM_AAL0_INFO ATM_AAL0_INFO;
UCHAR UserToUserIndication;
UCHAR CommonPartIndicator;
} ATM_AAL5_INFO;
struct _ATM_AAL0_INFO {
BOOLEAN CellLossPriority;
UCHAR PayLoadTypeIdentifier;
} ATM_AAL0_INFO;
#ifndef __cplusplus #ifndef __cplusplus
} DUMMYUNIONNAME; } DUMMYUNIONNAME;
#else #else