Skip to content

Commit cf20006

Browse files
authored
Update for OpenSwiftUI observation support (#180)
1 parent d0a060c commit cf20006

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/OpenAttributeGraphCxx/Attribute/OAGAttribute.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@
99

1010
const OAGAttribute OAGAttributeNil = OAGAttribute(OAG::AttributeID::Kind::Null);
1111

12-
OAGAttribute OAGGraphGetCurrentAttribute() {
12+
OAGAttribute OAGGraphGetCurrentAttribute(void) {
1313
// TODO
1414
return OAGAttributeNil;
1515
}
1616

17+
bool OAGGraphCurrentAttributeWasModified(void) {
18+
// TODO
19+
return false;
20+
}
21+
1722
namespace {
1823
OAGAttribute create_offset_attribute(OAGAttribute attribute, uint64_t offset, std::optional<uint64_t> size) {
1924
// TODO

Sources/OpenAttributeGraphCxx/include/OpenAttributeGraph/OAGAttribute.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
OAG_ASSUME_NONNULL_BEGIN
2020

21+
OAG_IMPLICIT_BRIDGING_ENABLED
22+
2123
OAG_EXTERN_C_BEGIN
2224

2325
OAG_EXPORT
@@ -27,6 +29,10 @@ OAG_EXPORT
2729
OAG_REFINED_FOR_SWIFT
2830
OAGAttribute OAGGraphGetCurrentAttribute(void);
2931

32+
OAG_EXPORT
33+
OAG_REFINED_FOR_SWIFT
34+
bool OAGGraphCurrentAttributeWasModified(void);
35+
3036
OAG_EXPORT
3137
OAG_REFINED_FOR_SWIFT
3238
OAGAttribute OAGGraphCreateOffsetAttribute(OAGAttribute attribute, long offset) OAG_SWIFT_NAME(OAGAttribute.create(self:offset:));
@@ -161,6 +167,8 @@ void OAGGraphWithUpdate(
161167

162168
OAG_EXTERN_C_END
163169

170+
OAG_IMPLICIT_BRIDGING_DISABLED
171+
164172
OAG_ASSUME_NONNULL_END
165173

166174
#endif /* OAGAttribute_h */

0 commit comments

Comments
 (0)