Skip to content

Commit 495ff2c

Browse files
committed
Update return type of OGGraphGetWeakValue
1 parent 417c5d2 commit 495ff2c

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

Sources/OpenGraphCxx/Attribute/OGWeakAttribute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OGAttribute OGWeakAttributeGetAttribute(OGWeakAttribute weakAttribute) {
1414
return OGAttributeNil;
1515
}
1616

17-
OGValue OGGraphGetWeakValue(OGWeakAttribute weakAttribute, OGValueOptions options, OGTypeID type) {
17+
OGWeakValue OGGraphGetWeakValue(OGWeakAttribute weakAttribute, OGValueOptions options, OGTypeID type) {
1818
// TODO
1919
return {nullptr, false};
2020
}

Sources/OpenGraphCxx/include/OpenGraph/OGWeakAttribute.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <OpenGraph/OGBase.h>
99
#include <OpenGraph/OGAttribute.h>
10+
#include <OpenGraph/OGWeakValue.h>
1011

1112
OG_ASSUME_NONNULL_BEGIN
1213

@@ -29,7 +30,7 @@ OGAttribute OGWeakAttributeGetAttribute(OGWeakAttribute weakAttribute);
2930

3031
OG_EXPORT
3132
OG_REFINED_FOR_SWIFT
32-
OGValue OGGraphGetWeakValue(OGWeakAttribute weakAttribute, OGValueOptions options, OGTypeID type);
33+
OGWeakValue OGGraphGetWeakValue(OGWeakAttribute weakAttribute, OGValueOptions options, OGTypeID type);
3334

3435
OG_EXTERN_C_END
3536

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// OGWeakValue.h
3+
// OpenGraphCxx
4+
5+
#ifndef OGWeakValue_h
6+
#define OGWeakValue_h
7+
8+
#include <OpenGraph/OGBase.h>
9+
#include <OpenGraph/OGChangedValueFlags.h>
10+
11+
OG_ASSUME_NONNULL_BEGIN
12+
13+
typedef struct OGWeakValue {
14+
const void * _Nullable value;
15+
OGChangedValueFlags flags;
16+
} OGWeakValue;
17+
18+
OG_ASSUME_NONNULL_END
19+
20+
#endif /* OGWeakValue_h */

Sources/OpenGraphCxx/include/OpenGraph/OpenGraph-umbrella.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <OpenGraph/OGValueState.h>
2626
#include <OpenGraph/OGVersion.h>
2727
#include <OpenGraph/OGWeakAttribute.h>
28+
#include <OpenGraph/OGWeakValue.h>
2829

2930
OG_EXPORT double OpenGraphVersionNumber;
3031
OG_EXPORT const unsigned char OpenGraphVersionString[];

0 commit comments

Comments
 (0)