Rename `YGMarkerType` to `YGMarker`

Summary:
@public

this will lead to nicer enum member names.

Reviewed By: SidharthGuglani

Differential Revision: D13817587

fbshipit-source-id: 85355328f7977b4fb29a9474532f2d578a3cbf79
This commit is contained in:
David Aurelio 2019-01-29 03:48:30 -08:00 committed by Facebook Github Bot
parent ac90c4fd6d
commit e804124e6f
1 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ YG_EXTERN_C_BEGIN
typedef struct YGNode* YGNodeRef;
typedef YG_ENUM_BEGIN(YGMarkerType) {}
YG_ENUM_END(YGMarkerType);
typedef YG_ENUM_BEGIN(YGMarker) {}
YG_ENUM_END(YGMarker);
typedef union {
int unused;
@ -22,10 +22,10 @@ typedef union {
typedef struct {
// accepts marker type, a node ref, and marker data (depends on marker type)
// can return a handle or id that Yoga will pass to endMarker
void* (*startMarker)(YGMarkerType, YGNodeRef, YGMarkerData);
void* (*startMarker)(YGMarker, YGNodeRef, YGMarkerData);
// accepts marker type, a node ref, marker data, and marker id as returned by
// startMarker
void (*endMarker)(YGMarkerType, YGNodeRef, YGMarkerData, void* id);
void (*endMarker)(YGMarker, YGNodeRef, YGMarkerData, void* id);
} YGMarkerCallbacks;
YG_EXTERN_C_END