Commit ca7e0c7
committed
feat(toolbox): add remove_data_source runtime-host slot; release 0.7.0
Add an optional tail slot remove_data_source(handle) to
PJ_toolbox_runtime_host_vtable_t so a toolbox can ask the host to drop a
data source it created via create_data_source — its derived topics leave
the catalog, enabling a clean reset that leaves no residue. Mirrors the
existing notify_data_changed control-plane callback.
ABI: slot is tail-appended after notify_data_changed and marked
OPTIONAL; hosts may omit it. ToolboxRuntimeHostView::removeDataSource()
guards the read with PJ_HAS_TAIL_SLOT (struct_size + nullability), so a
new plugin on an older host no-ops, and an older plugin never calls it.
ABI-appendable → backward compatible, no recompile needed for existing
plugins.
toolbox_plugin_test: the runtime-host vtable initializer gains
.remove_data_source = nullptr (the test does not exercise it).
Release: MINOR bump 0.6.0 -> 0.7.0 (version in conanfile.py and
CMakeLists.txt PJ_PACKAGE_VERSION, plus the conanfile docstring
example). abi/baseline.abi is unchanged (it moves only on MAJOR); CI's
abidiff must confirm additions-only against the existing baseline.1 parent 90133ad commit ca7e0c7
5 files changed
Lines changed: 25 additions & 3 deletions
File tree
- pj_base/include/pj_base
- sdk
- pj_plugins/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
0 commit comments