C++ structure type declaration is more flexible than C's.
C always need to declare "struct Name" to use.
That's way we use typedef struct Name as a alias "Name".
Here patch just reorder the structure declaration for C language.
Change-Id: I43bc8d1fafb10e42cb22fcad4bc1115925a3cda2
unsigned char r, g, b, a;
} LOTGradientStop;
-struct LOTNode;
-
typedef enum
{
MaskModeAdd = 0,
MaskModeDifference
} LOTMaskMode;
-typedef struct _LOTMask {
+typedef struct LOTMask {
struct {
const float *ptPtr;
int ptCount;
MatteLumaInv
} LOTMatteType;
-typedef struct LOTLayerNode {
-
- struct {
- LOTMask *ptr;
- unsigned int size;
- }mMaskList;
-
- struct {
- LOTLayerNode **ptr;
- unsigned int size;
- }mLayerList;
-
- struct {
- LOTNode **ptr;
- unsigned int size;
- }mNodeList;
-
- LOTMatteType mMatte;
- int mVisible;
-
-}LOTLayerNode;
-
typedef struct LOTNode {
#define ChangeFlagNone 0x0000
} LOTNode;
+
+typedef struct LOTLayerNode {
+
+ struct {
+ LOTMask *ptr;
+ unsigned int size;
+ } mMaskList;
+
+ struct {
+ struct LOTLayerNode **ptr;
+ unsigned int size;
+ } mLayerList;
+
+ struct {
+ LOTNode **ptr;
+ unsigned int size;
+ } mNodeList;
+
+ LOTMatteType mMatte;
+ int mVisible;
+
+} LOTLayerNode;
+
+
#endif // _LOTTIE_COMMON_H_