Skip to content

Commit 34a583c

Browse files
committed
Add Swift name refinements for Trace, TraceEvents and ValueSource
1 parent 8b00960 commit 34a583c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/OpenGraph/Attribute/Attribute/Attribute.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public struct Attribute<Value> {
152152
nonmutating set { _ = setValue(newValue) }
153153
}
154154

155-
public var valueState: OGValueState { identifier.valueState }
155+
public var valueState: ValueState { identifier.valueState }
156156

157157
public func valueAndFlags(options: OGValueOptions = []) -> (value: Value, flags: OGChangedValueFlags) {
158158
let value = OGGraphGetValue(identifier, options: options, type: Value.self)

Sources/OpenGraphCxx/include/OpenGraph/OGTrace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ typedef OG_ENUM(uint64_t, OGTraceEvents) {
1515
OGTraceEventsNamed = 2,
1616
OGTraceEventsDeadline = 3,
1717
OGTraceEventsCompareFailed = 4,
18-
};
18+
} OG_SWIFT_NAME(TraceEvents);
1919

2020
typedef struct OGTrace {
2121
OGTraceEvents events;
@@ -76,7 +76,7 @@ typedef struct OGTrace {
7676
void (*_Nullable passed_deadline)(void *_Nullable context);
7777

7878
void (*_Nullable compare_failed)(void *_Nullable context, OGAttribute attribute, OGComparisonState comparisonState);
79-
} OGTrace;
79+
} OGTrace OG_SWIFT_NAME(Trace);
8080

8181
OG_ASSUME_NONNULL_END
8282

Sources/OpenGraphCxx/include/OpenGraph/OGValueState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ typedef OG_OPTIONS(uint8_t, OGValueState) {
1919
OGValueStateMainRef = 1 << 5,
2020
OGValueStateRequiresMainThread = 1 << 6,
2121
OGValueStateSelfModified = 1 << 7,
22-
};
22+
} OG_SWIFT_NAME(ValueState);
2323

2424
OG_ASSUME_NONNULL_END
2525

0 commit comments

Comments
 (0)