Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Sources/OpenAttributeGraphCxx/Attribute/OAGAttribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@

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

OAGAttribute OAGGraphGetCurrentAttribute() {
OAGAttribute OAGGraphGetCurrentAttribute(void) {
// TODO
return OAGAttributeNil;
}

bool OAGGraphCurrentAttributeWasModified(void) {
// TODO
return false;
}

namespace {
OAGAttribute create_offset_attribute(OAGAttribute attribute, uint64_t offset, std::optional<uint64_t> size) {
// TODO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

OAG_ASSUME_NONNULL_BEGIN

OAG_IMPLICIT_BRIDGING_ENABLED

OAG_EXTERN_C_BEGIN

OAG_EXPORT
Expand All @@ -27,6 +29,10 @@ OAG_EXPORT
OAG_REFINED_FOR_SWIFT
OAGAttribute OAGGraphGetCurrentAttribute(void);

OAG_EXPORT
OAG_REFINED_FOR_SWIFT
bool OAGGraphCurrentAttributeWasModified(void);

OAG_EXPORT
OAG_REFINED_FOR_SWIFT
OAGAttribute OAGGraphCreateOffsetAttribute(OAGAttribute attribute, long offset) OAG_SWIFT_NAME(OAGAttribute.create(self:offset:));
Expand Down Expand Up @@ -161,6 +167,8 @@ void OAGGraphWithUpdate(

OAG_EXTERN_C_END

OAG_IMPLICIT_BRIDGING_DISABLED

OAG_ASSUME_NONNULL_END

#endif /* OAGAttribute_h */
Expand Down