Skip to content

Commit 192b6fa

Browse files
committed
Add OGSubgraphRemoveObserver
1 parent da341ee commit 192b6fa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/OpenGraphCxx/Graph/OGSubgraph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ OGUniqueID OGSubgraphAddObserver(OGSubgraphRef cf_subgraph,
198198
return subgraph->add_observer(OG::ClosureFunction<void>(function, context));
199199
}
200200

201+
void OGSubgraphRemoveObserver(OGSubgraphRef cf_subgraph, OGUniqueID observer_id) {
202+
// TODO
203+
}
204+
201205
#if !OG_TARGET_OS_WASI
202206
static bool should_record_tree;
203207
static dispatch_once_t should_record_tree_once;

Sources/OpenGraphCxx/include/OpenGraph/OGSubgraph.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ OGUniqueID OGSubgraphAddObserver(OGSubgraphRef cf_subgraph,
113113
const void (*function)(const void * _Nullable context OG_SWIFT_CONTEXT) OG_SWIFT_CC(swift),
114114
const void * _Nullable context);
115115

116+
OG_EXPORT
117+
OG_REFINED_FOR_SWIFT
118+
void OGSubgraphRemoveObserver(OGSubgraphRef cf_subgraph, OGUniqueID observer_id) OG_SWIFT_NAME(OGSubgraphRef.removeObserver(self:observerID:));
119+
116120
OG_EXPORT
117121
OG_REFINED_FOR_SWIFT
118122
bool OGSubgraphShouldRecordTree(void) OG_SWIFT_NAME(getter:OGSubgraphRef.shouldRecordTree());

0 commit comments

Comments
 (0)