summaryrefslogtreecommitdiff
path: root/src/python/pybind11
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-05-05 16:52:21 -0700
committerGabe Black <gabeblack@google.com>2017-05-09 16:44:30 +0000
commit2d5296ce1974fe1b16ba62dda3f91dd25cc199e1 (patch)
tree62f172ad99298d094c7bdea31220789ebf4814db /src/python/pybind11
parentf2b6dc8d2701dc8da5d365a73336d4a8a3dd3478 (diff)
downloadgem5-2d5296ce1974fe1b16ba62dda3f91dd25cc199e1.tar.xz
misc: Expose the listener loopbackOnly function to python.
Change-Id: Ibb405af54a46a93706a6f476b5314491e84be0c8 Reviewed-on: https://gem5-review.googlesource.com/3081 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/python/pybind11')
-rw-r--r--src/python/pybind11/core.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/pybind11/core.cc b/src/python/pybind11/core.cc
index 9e97df2b7..a11ad7f6b 100644
--- a/src/python/pybind11/core.cc
+++ b/src/python/pybind11/core.cc
@@ -234,6 +234,7 @@ pybind_init_core(py::module &m_native)
.def("disableAllListeners", &ListenSocket::disableAll)
.def("listenersDisabled", &ListenSocket::allDisabled)
+ .def("listenersLoopbackOnly", &ListenSocket::loopbackOnly)
.def("seedRandom", [](uint64_t seed) { random_mt.init(seed); })