Skip to content

Commit ed70841

Browse files
committed
Add OAGSubgraphGetTreeRoot
1 parent e5bf9e7 commit ed70841

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Sources/OpenAttributeGraphCxx/Graph/OAGSubgraph.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,8 @@ void OAGSubgraphEndTreeElement(OAGAttribute attribute) {
251251
subgraph->end_tree(attribute);
252252
}
253253
}
254+
255+
OAGTreeElement OAGSubgraphGetTreeRoot(OAGSubgraphRef cf_subgraph) {
256+
// TODO
257+
return nullptr;
258+
}

Sources/OpenAttributeGraphCxx/include/OpenAttributeGraph/OAGSubgraph.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <OpenAttributeGraph/OAGAttributeFlags.h>
1010
#include <OpenAttributeGraph/OAGBase.h>
1111
#include <OpenAttributeGraph/OAGGraph.h>
12+
#include <OpenAttributeGraph/OAGTreeElement.h>
1213
#include <OpenAttributeGraph/OAGUniqueID.h>
1314
#include <OpenAttributeGraph/Private/CFRuntime.h>
1415

@@ -139,6 +140,10 @@ OAG_EXPORT
139140
OAG_REFINED_FOR_SWIFT
140141
void OAGSubgraphEndTreeElement(OAGAttribute attribute);
141142

143+
OAG_EXPORT
144+
OAG_REFINED_FOR_SWIFT
145+
_Nullable OAGTreeElement OAGSubgraphGetTreeRoot(OAGSubgraphRef cf_subgraph) OAG_SWIFT_NAME(getter:OAGSubgraphRef.treeRoot(self:));
146+
142147
OAG_EXTERN_C_END
143148

144149
OAG_IMPLICIT_BRIDGING_DISABLED

0 commit comments

Comments
 (0)