From e804124e6fd4f154a4f3790480baa181c2e76be7 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 29 Jan 2019 03:48:30 -0800 Subject: [PATCH] Rename `YGMarkerType` to `YGMarker` Summary: @public this will lead to nicer enum member names. Reviewed By: SidharthGuglani Differential Revision: D13817587 fbshipit-source-id: 85355328f7977b4fb29a9474532f2d578a3cbf79 --- ReactCommon/yoga/yoga/YGMarker.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ReactCommon/yoga/yoga/YGMarker.h b/ReactCommon/yoga/yoga/YGMarker.h index d4f4de647..df51d3b1b 100644 --- a/ReactCommon/yoga/yoga/YGMarker.h +++ b/ReactCommon/yoga/yoga/YGMarker.h @@ -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