From cb77b0e714ec41fca0a15a0999011f036123dfa3 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Wed, 22 Jan 2025 07:47:10 -0800 Subject: [PATCH] [ObjC] Move `GPBEnumDescriptorFunc` to be private. The type is internal to the generated code/runtime and isn't exposed in any public api, so go ahead and move it into the Descriptor private header. PiperOrigin-RevId: 718383227 --- objectivec/GPBDescriptor_PackagePrivate.h | 3 +++ objectivec/GPBRuntimeTypes.h | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/objectivec/GPBDescriptor_PackagePrivate.h b/objectivec/GPBDescriptor_PackagePrivate.h index 3b14f522d7..7065164a33 100644 --- a/objectivec/GPBDescriptor_PackagePrivate.h +++ b/objectivec/GPBDescriptor_PackagePrivate.h @@ -77,6 +77,9 @@ typedef struct GPBFileDescription { GPBFileSyntax syntax; } GPBFileDescription; +// Fetches an EnumDescriptor. +typedef GPBEnumDescriptor *(*GPBEnumDescriptorFunc)(void); + // Describes a single field in a protobuf as it is represented as an ivar. typedef struct GPBMessageFieldDescription { // Name of ivar. diff --git a/objectivec/GPBRuntimeTypes.h b/objectivec/GPBRuntimeTypes.h index f96a324d58..0f59c133fc 100644 --- a/objectivec/GPBRuntimeTypes.h +++ b/objectivec/GPBRuntimeTypes.h @@ -17,11 +17,6 @@ * */ typedef BOOL (*GPBEnumValidationFunc)(int32_t); -/** - * Fetches an EnumDescriptor. - * */ -typedef GPBEnumDescriptor *(*GPBEnumDescriptorFunc)(void); - /** * Magic value used at runtime to indicate an enum value that wasn't know at * compile time.