mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-25 17:43:18 +00:00
interface: fix to compatible with C language.
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
This commit is contained in:
parent
32a77c49d6
commit
53e71eb670
@ -77,8 +77,6 @@ typedef struct LOTGradientStop
|
|||||||
unsigned char r, g, b, a;
|
unsigned char r, g, b, a;
|
||||||
} LOTGradientStop;
|
} LOTGradientStop;
|
||||||
|
|
||||||
struct LOTNode;
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
MaskModeAdd = 0,
|
MaskModeAdd = 0,
|
||||||
@ -87,7 +85,7 @@ typedef enum
|
|||||||
MaskModeDifference
|
MaskModeDifference
|
||||||
} LOTMaskMode;
|
} LOTMaskMode;
|
||||||
|
|
||||||
typedef struct _LOTMask {
|
typedef struct LOTMask {
|
||||||
struct {
|
struct {
|
||||||
const float *ptPtr;
|
const float *ptPtr;
|
||||||
int ptCount;
|
int ptCount;
|
||||||
@ -106,28 +104,6 @@ typedef enum
|
|||||||
MatteLumaInv
|
MatteLumaInv
|
||||||
} LOTMatteType;
|
} 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 {
|
typedef struct LOTNode {
|
||||||
|
|
||||||
#define ChangeFlagNone 0x0000
|
#define ChangeFlagNone 0x0000
|
||||||
@ -173,4 +149,28 @@ typedef struct LOTNode {
|
|||||||
} LOTNode;
|
} 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_
|
#endif // _LOTTIE_COMMON_H_
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user