-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathOGSubgraph.h
More file actions
113 lines (85 loc) · 3.29 KB
/
OGSubgraph.h
File metadata and controls
113 lines (85 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
//
// OGSubgraph.h
//
//
// Created by Kyle on 2024/2/15.
//
#ifndef OGSubgraph_h
#define OGSubgraph_h
#include "OGBase.h"
#include "OGGraph.h"
#include "OGAttribute.h"
#include "OGAttributeFlags.h"
#include "OGUniqueID.h"
#include "../Private/CFRuntime.h"
OG_ASSUME_NONNULL_BEGIN
// MARK: - Exported C functions
OG_EXTERN_C_BEGIN
OG_EXPORT
OG_REFINED_FOR_SWIFT
CFTypeID OGSubgraphGetTypeID();
OG_EXPORT
OG_REFINED_FOR_SWIFT
OGSubgraphRef OGSubgraphCreate(OGGraphRef cf_graph) OG_SWIFT_NAME(OGSubgraphRef.init(graph:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
OGSubgraphRef OGSubgraphCreate2(OGGraphRef cf_graph, OGAttribute attribute) OG_SWIFT_NAME(OGSubgraphRef.init(graph:attribute:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
_Nullable OGSubgraphRef OGSubgraphGetCurrent(void) OG_SWIFT_NAME(getter:OGSubgraphRef.current());
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphSetCurrent(_Nullable OGSubgraphRef cf_subgraph) OG_SWIFT_NAME(setter:OGSubgraphRef.current(_:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
_Nullable OGGraphContextRef OGSubgraphGetCurrentGraphContext(void) OG_SWIFT_NAME(getter:OGSubgraphRef.currentGraphContext());
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphInvalidate(OGSubgraphRef cf_subgraph) OG_SWIFT_NAME(OGSubgraphRef.invalidate(self:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
bool OGSubgraphIsValid(OGSubgraphRef cf_subgraph) OG_SWIFT_NAME(getter:OGSubgraphRef.isValid(self:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
OGGraphRef OGSubgraphGetGraph(OGSubgraphRef cf_subgraph) OG_SWIFT_NAME(getter:OGSubgraphRef.graph(self:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphAddChild(OGSubgraphRef parent, OGSubgraphRef child) OG_SWIFT_NAME(OGSubgraphRef.addChild(self:_:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphRemoveChild(OGSubgraphRef parent, OGSubgraphRef child) OG_SWIFT_NAME(OGSubgraphRef.removeChild(self:_:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphApply(OGSubgraphRef cf_subgraph,
OGAttributeFlags flags,
const void (*function)(const void * _Nullable context OG_SWIFT_CONTEXT, OGAttribute attribute) OG_SWIFT_CC(swift),
const void * _Nullable context);
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphUpdate(OGSubgraphRef cf_subgraph, OGAttributeFlags flags) OG_SWIFT_NAME(OGSubgraphRef.update(self:flags:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
bool OGSubgraphIsDirty(OGSubgraphRef cf_subgraph, uint32_t unknown) OG_SWIFT_NAME(OGSubgraphRef.isDirty(self:_:));
OG_EXPORT
OG_REFINED_FOR_SWIFT
OGUniqueID OGSubgraphAddObserver(OGSubgraphRef cf_subgraph,
const void (*function)(const void * _Nullable context OG_SWIFT_CONTEXT) OG_SWIFT_CC(swift),
const void * _Nullable context);
OG_EXPORT
OG_REFINED_FOR_SWIFT
bool OGSubgraphShouldRecordTree(void) OG_SWIFT_NAME(getter:OGSubgraphRef.shouldRecordTree());
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphSetShouldRecordTree(void) OG_SWIFT_NAME(OGSubgraphRef.setShouldRecordTree());
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphBeginTreeElement(OGAttribute attribute, OGTypeID type, uint32_t flags);
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphAddTreeValue(OGAttribute attribute, OGTypeID type, const char * key, uint32_t flags);
OG_EXPORT
OG_REFINED_FOR_SWIFT
void OGSubgraphEndTreeElement(OGAttribute attribute);
OG_EXTERN_C_END
OG_ASSUME_NONNULL_END
#endif /* OGSubgraph_h */