Skip to content

Commit 83bedb9

Browse files
authored
Add OGSubgraphAddChild2 API interface (#131)
1 parent cbe7eaf commit 83bedb9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
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/OpenGraph_SPI/Graph/OGSubgraph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ OGGraphRef OGSubgraphGetGraph(OGSubgraphRef cf_subgraph) {
128128
}
129129

130130
void OGSubgraphAddChild(OGSubgraphRef parent, OGSubgraphRef child) {
131+
OGSubgraphAddChild2(parent, child, 0);
132+
}
133+
134+
void OGSubgraphAddChild2(OGSubgraphRef parent, OGSubgraphRef child, uint8_t tag) {
131135
// TODO
132136
}
133137

Sources/OpenGraph_SPI/include/OGSubgraph.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ OG_EXPORT
5858
OG_REFINED_FOR_SWIFT
5959
void OGSubgraphAddChild(OGSubgraphRef parent, OGSubgraphRef child) OG_SWIFT_NAME(OGSubgraphRef.addChild(self:_:));
6060

61+
OG_EXPORT
62+
OG_REFINED_FOR_SWIFT
63+
void OGSubgraphAddChild2(OGSubgraphRef parent, OGSubgraphRef child, uint8_t tag) OG_SWIFT_NAME(OGSubgraphRef.addChild(self:_:tag:));
64+
6165
OG_EXPORT
6266
OG_REFINED_FOR_SWIFT
6367
void OGSubgraphRemoveChild(OGSubgraphRef parent, OGSubgraphRef child) OG_SWIFT_NAME(OGSubgraphRef.removeChild(self:_:));

0 commit comments

Comments
 (0)