Skip to content

Commit 20de0cc

Browse files
committed
Add OGGraph[Begin/End]DeferringSubgraphInvalidation
1 parent 192b6fa commit 20de0cc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Sources/OpenGraphCxx/Graph/OGGraph.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,12 @@ bool OGGraphAnyInputsChanged(const OGAttribute *excluded_inputs, size_t count) {
209209
// TODO
210210
return false;
211211
}
212+
213+
bool OGGraphBeginDeferringSubgraphInvalidation(OGGraphRef graph) {
214+
// TODO
215+
return false;
216+
}
217+
218+
void OGGraphEndDeferringSubgraphInvalidation(OGGraphRef graph, bool was_deferring) {
219+
// TODO
220+
}

Sources/OpenGraphCxx/include/OpenGraph/OGGraph.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ OG_REFINED_FOR_SWIFT
114114
bool OGGraphAnyInputsChanged(const OGAttribute *excluded_inputs, size_t count);
115115
#endif
116116

117+
OG_EXPORT
118+
OG_REFINED_FOR_SWIFT
119+
bool OGGraphBeginDeferringSubgraphInvalidation(OGGraphRef graph) OG_SWIFT_NAME(OGGraphRef.beginDeferringSubgraphInvalidation(self:));
120+
121+
OG_EXPORT
122+
OG_REFINED_FOR_SWIFT
123+
void OGGraphEndDeferringSubgraphInvalidation(OGGraphRef graph, bool was_deferring) OG_SWIFT_NAME(OGGraphRef.endDeferringSubgraphInvalidation(self:wasDeferring:));
124+
117125
OG_EXTERN_C_END
118126

119127
OG_IMPLICIT_BRIDGING_DISABLED

0 commit comments

Comments
 (0)