Skip to content

Commit 40b020c

Browse files
authored
Add Subgraph.removeChild API (#105)
1 parent 5992cb5 commit 40b020c

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
@@ -131,6 +131,10 @@ void OGSubgraphAddChild(OGSubgraphRef parent, OGSubgraphRef child) {
131131
// TODO
132132
}
133133

134+
void OGSubgraphRemoveChild(OGSubgraphRef parent, OGSubgraphRef child) {
135+
// TODO
136+
}
137+
134138
void OGSubgraphApply(OGSubgraphRef cf_subgraph,
135139
OGAttributeFlags flags,
136140
const void (*function)(const void * _Nullable context OG_SWIFT_CONTEXT, OGAttribute attribute) OG_SWIFT_CC(swift),

Sources/OpenGraph_SPI/Graph/OGSubgraph.h

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

64+
OG_EXPORT
65+
OG_REFINED_FOR_SWIFT
66+
void OGSubgraphRemoveChild(OGSubgraphRef parent, OGSubgraphRef child) OG_SWIFT_NAME(OGSubgraphRef.removeChild(self:_:));
67+
6468
OG_EXPORT
6569
OG_REFINED_FOR_SWIFT
6670
void OGSubgraphApply(OGSubgraphRef cf_subgraph,

0 commit comments

Comments
 (0)