mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[robotpy] Mirror most other subprojects (#8208)
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a This mirrors the robotpy files for the following projects: - apriltag - datalog - hal - ntcore - romiVendordep - wpilibc - wpimath - xrpVendordep This excludes cscore and the halsim wrappers for at this time. NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
This commit is contained in:
22
ntcore/src/main/python/semiwrap/MultiSubscriber.yml
Normal file
22
ntcore/src/main/python/semiwrap/MultiSubscriber.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
classes:
|
||||
nt::MultiSubscriber:
|
||||
methods:
|
||||
MultiSubscriber:
|
||||
overloads:
|
||||
'':
|
||||
ignore: true
|
||||
NetworkTableInstance, std::span<const std::string_view>, const PubSubOptions&:
|
||||
GetHandle:
|
||||
ignore: true
|
||||
inline_code: |
|
||||
.def("close", [](MultiSubscriber *self) {
|
||||
py::gil_scoped_release release;
|
||||
*self = MultiSubscriber();
|
||||
}, py::doc("Destroys the subscriber"))
|
||||
.def("__enter__", [](MultiSubscriber *self) {
|
||||
return self;
|
||||
})
|
||||
.def("__exit__", [](MultiSubscriber *self, py::args args) {
|
||||
py::gil_scoped_release release;
|
||||
*self = MultiSubscriber();
|
||||
})
|
||||
Reference in New Issue
Block a user