Václav Kubernát | 654303f | 2020-07-31 13:16:54 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/ |
| 3 | * |
| 4 | * Written by Václav Kubernát <kubernat@cesnet.cz> |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include <pybind11/pybind11.h> |
| 9 | #include "sysrepo_subscription.hpp" |
| 10 | |
| 11 | using namespace pybind11::literals; |
| 12 | |
Václav Kubernát | b4e5b18 | 2020-11-16 19:55:09 +0100 | [diff] [blame] | 13 | PYBIND11_MODULE(sysrepo_subscription_py, m) |
| 14 | { |
Václav Kubernát | 654303f | 2020-07-31 13:16:54 +0200 | [diff] [blame] | 15 | m.doc() = "SysrepoSubscription Python interface"; |
| 16 | |
| 17 | pybind11::class_<SysrepoSubscription>(m, "SysrepoSubscription") |
Václav Kubernát | b4e5b18 | 2020-11-16 19:55:09 +0100 | [diff] [blame] | 18 | .def(pybind11::init<const std::string&>(), "moduleName"_a); |
Václav Kubernát | 654303f | 2020-07-31 13:16:54 +0200 | [diff] [blame] | 19 | } |