libonvif 3.2.7__tar.gz → 3.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libonvif-3.2.7 → libonvif-3.2.8}/CMakeLists.txt +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/MANIFEST.in +3 -3
- {libonvif-3.2.7/libonvif.egg-info → libonvif-3.2.8}/PKG-INFO +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/include/onvif.h +4 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/onvif_data.h +22 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/include/session.h +1 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/libonvif/__init__.py +19 -19
- libonvif-3.2.8/libonvif/libxml2.so.16 +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8/libonvif.egg-info}/PKG-INFO +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/libonvif.egg-info/SOURCES.txt +0 -10
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/CONTRIBUTING.md +5 -5
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/workflows/ci.yml +16 -25
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/workflows/configure.yml +5 -5
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/workflows/emscripten.yaml +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/workflows/pip.yml +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.pre-commit-config.yaml +8 -8
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/CMakeLists.txt +48 -15
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/README.rst +2 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/classes.rst +2 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/embedding.rst +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/exceptions.rst +2 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/misc.rst +1 -8
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/compiling.rst +17 -19
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/faq.rst +8 -8
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/upgrade.rst +1 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/cast.h +6 -23
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/class.h +21 -54
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/common.h +73 -38
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/descr.h +3 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/exception_translation.h +11 -11
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/init.h +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/internals.h +66 -25
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/type_caster_base.h +13 -6
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/eigen/tensor.h +3 -3
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/embed.h +11 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/eval.h +5 -5
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/gil.h +6 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/gil_safe_call_once.h +0 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/pybind11.h +38 -81
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/pytypes.h +7 -29
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/stl.h +51 -251
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/stl_bind.h +2 -38
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/pybind11/__init__.py +2 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/pybind11/_version.py +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/pybind11/setup_helpers.py +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/pyproject.toml +2 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/setup.cfg +2 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/CMakeLists.txt +34 -25
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/conftest.py +3 -4
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/env.py +0 -1
- libonvif-3.2.8/pybind11/tests/exo_planet_c_api.cpp +103 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/extra_python_package/test_files.py +2 -10
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/pybind11_tests.cpp +0 -5
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/pybind11_tests.h +0 -21
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/pyproject.toml +4 -0
- libonvif-3.2.8/pybind11/tests/requirements.txt +13 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_buffers.cpp +0 -171
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_buffers.py +0 -164
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_builtin_casters.py +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_call_policies.cpp +2 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_call_policies.py +0 -7
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_callbacks.cpp +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_callbacks.py +0 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_class.cpp +0 -16
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_class.py +1 -37
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/CMakeLists.txt +5 -11
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/installed_embed/CMakeLists.txt +10 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/installed_function/CMakeLists.txt +11 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/installed_target/CMakeLists.txt +10 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt +10 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/subdirectory_function/CMakeLists.txt +10 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/subdirectory_target/CMakeLists.txt +10 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_copy_move.py +0 -4
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cpp_conduit.py +1 -5
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_custom_type_casters.py +0 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_custom_type_setup.py +2 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eigen_matrix.py +0 -3
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eigen_tensor.py +0 -3
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_embed/CMakeLists.txt +3 -5
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_enum.py +0 -63
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eval.py +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_exceptions.cpp +0 -39
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_exceptions.py +17 -21
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_factory_constructors.py +0 -13
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_gil_scoped.py +0 -16
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_iostream.py +0 -6
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_kwargs_and_defaults.cpp +0 -6
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_kwargs_and_defaults.py +0 -13
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_methods_and_attributes.cpp +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_methods_and_attributes.py +1 -14
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_modules.py +2 -5
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_multiple_inheritance.py +9 -15
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_numpy_array.py +1 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_opaque_types.py +1 -4
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_operator_overloading.py +0 -6
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_pickling.py +1 -18
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_pytypes.cpp +0 -12
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_pytypes.py +1 -12
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_sequences_and_iterators.py +10 -39
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_smart_ptr.py +0 -12
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_stl.cpp +0 -51
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_stl.py +0 -135
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_stl_binders.py +0 -19
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_type_caster_pyobject_ptr.cpp +1 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_virtual_functions.py +2 -7
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/FindPythonLibsNew.cmake +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/pybind11Common.cmake +70 -31
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/pybind11GuessPythonExtSuffix.cmake +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/pybind11NewTools.cmake +10 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/pybind11Tools.cmake +38 -15
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/setup_global.py.in +1 -4
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/setup_main.py.in +0 -2
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/test-pybind11GuessPythonExtSuffix.cmake +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/pyproject.toml +1 -1
- {libonvif-3.2.7 → libonvif-3.2.8}/setup.py +82 -82
- {libonvif-3.2.7 → libonvif-3.2.8}/src/onvif.c +103 -15
- {libonvif-3.2.7 → libonvif-3.2.8}/src/onvif.cpp +4 -1
- libonvif-3.2.7/libonvif/libstdc++.so.6 +0 -0
- libonvif-3.2.7/libonvif/libxml2.so.16 +0 -0
- libonvif-3.2.7/pybind11/docs/advanced/deadlock.md +0 -391
- libonvif-3.2.7/pybind11/include/pybind11/conduit/README.txt +0 -15
- libonvif-3.2.7/pybind11/include/pybind11/conduit/pybind11_conduit_v1.h +0 -111
- libonvif-3.2.7/pybind11/include/pybind11/conduit/pybind11_platform_abi_id.h +0 -88
- libonvif-3.2.7/pybind11/include/pybind11/conduit/wrap_include_python_h.h +0 -72
- libonvif-3.2.7/pybind11/include/pybind11/warnings.h +0 -75
- libonvif-3.2.7/pybind11/tests/custom_exceptions.py +0 -10
- libonvif-3.2.7/pybind11/tests/exo_planet_c_api.cpp +0 -76
- libonvif-3.2.7/pybind11/tests/requirements.txt +0 -13
- libonvif-3.2.7/pybind11/tests/test_warnings.cpp +0 -46
- libonvif-3.2.7/pybind11/tests/test_warnings.py +0 -68
- {libonvif-3.2.7 → libonvif-3.2.8}/LICENSE +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/README.md +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/cencode.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/getopt-win.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/allocators.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/cursorstreamwrapper.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/document.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/encodedstream.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/encodings.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/error/en.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/error/error.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/filereadstream.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/filewritestream.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/fwd.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/biginteger.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/clzll.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/diyfp.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/dtoa.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/ieee754.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/itoa.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/meta.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/pow10.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/regex.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/stack.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/strfunc.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/strtod.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/internal/swap.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/istreamwrapper.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/memorybuffer.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/memorystream.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/msinttypes/inttypes.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/msinttypes/stdint.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/ostreamwrapper.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/pointer.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/prettywriter.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/rapidjson.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/reader.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/schema.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/stream.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/stringbuffer.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/uri.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/rapidjson/writer.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/include/sha1.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/libonvif.egg-info/dependency_links.txt +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/libonvif.egg-info/not-zip-safe +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/libonvif.egg-info/top_level.txt +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.appveyor.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.clang-format +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.clang-tidy +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.cmake-format.yaml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.codespell-ignore-lines +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.git +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.gitattributes +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/CODEOWNERS +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/dependabot.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/labeler.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/labeler_merged.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/matchers/pylint.json +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/pull_request_template.md +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/workflows/format.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/workflows/labeler.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.github/workflows/upstream.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.gitignore +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/.readthedocs.yml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/LICENSE +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/MANIFEST.in +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/SECURITY.md +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/Doxyfile +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/Makefile +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/_static/css/custom.css +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/chrono.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/custom.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/eigen.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/functional.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/index.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/overview.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/stl.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/cast/strings.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/functions.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/pycpp/index.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/pycpp/numpy.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/pycpp/object.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/pycpp/utilities.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/advanced/smart_ptrs.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/basics.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/benchmark.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/benchmark.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/changelog.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/classes.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/cmake/index.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/conf.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/index.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/installing.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/limitations.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/pybind11-logo.png +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/pybind11_vs_boost_python1.png +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/pybind11_vs_boost_python1.svg +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/pybind11_vs_boost_python2.png +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/pybind11_vs_boost_python2.svg +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/reference.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/release.rst +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/requirements.in +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/docs/requirements.txt +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/attr.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/buffer_info.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/chrono.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/common.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/complex.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/cpp_conduit.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/typeid.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/detail/value_and_holder.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/eigen/common.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/eigen/matrix.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/eigen.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/functional.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/iostream.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/numpy.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/operators.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/options.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/stl/filesystem.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/type_caster_pyobject_ptr.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/include/pybind11/typing.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/noxfile.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/pybind11/__main__.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/pybind11/commands.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/pybind11/py.typed +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/setup.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/constructor_stats.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/cross_module_gil_utils.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/cross_module_interleaved_error_already_set.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/eigen_tensor_avoid_stl_array.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/exo_planet_pybind11.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/extra_python_package/pytest.ini +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/extra_setuptools/pytest.ini +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/extra_setuptools/test_setuphelper.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/home_planet_very_lonely_traveler.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/local_bindings.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/object.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/pybind11_cross_module_tests.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/pytest.ini +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_async.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_async.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_builtin_casters.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_chrono.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_chrono.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/embed.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/main.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cmake_build/test.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_const_name.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_const_name.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_constants_and_functions.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_constants_and_functions.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_copy_move.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cpp_conduit.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cpp_conduit_traveler_bindings.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_cpp_conduit_traveler_types.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_custom_type_casters.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_custom_type_setup.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_docstring_options.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_docstring_options.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eigen_matrix.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eigen_tensor.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eigen_tensor.inl +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_embed/catch.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_embed/external_module.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_embed/test_interpreter.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_embed/test_interpreter.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_embed/test_trampoline.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_enum.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eval.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_eval_call.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_exceptions.h +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_factory_constructors.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_gil_scoped.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_iostream.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_local_bindings.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_local_bindings.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_modules.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_multiple_inheritance.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_numpy_array.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_numpy_dtypes.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_numpy_dtypes.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_numpy_vectorize.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_numpy_vectorize.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_opaque_types.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_operator_overloading.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_pickling.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_python_multiple_inheritance.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_python_multiple_inheritance.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_sequences_and_iterators.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_smart_ptr.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_stl_binders.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_tagbased_polymorphic.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_tagbased_polymorphic.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_thread.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_thread.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_type_caster_pyobject_ptr.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_type_caster_std_function_specializations.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_type_caster_std_function_specializations.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_union.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_union.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_unnamed_namespace_a.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_unnamed_namespace_a.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_unnamed_namespace_b.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_unnamed_namespace_b.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_vector_unique_ptr_member.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_vector_unique_ptr_member.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/test_virtual_functions.cpp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/valgrind-numpy-scipy.supp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tests/valgrind-python.supp +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/FindCatch.cmake +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/FindEigen3.cmake +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/JoinPaths.cmake +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/check-style.sh +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/cmake_uninstall.cmake.in +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/codespell_ignore_lines_from_errors.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/libsize.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/make_changelog.py +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/pybind11.pc.in +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/pybind11Config.cmake.in +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/pybind11/tools/pyproject.toml +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/setup.cfg +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/src/cencode.c +0 -0
- {libonvif-3.2.7 → libonvif-3.2.8}/src/sha1.c +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
include README.md CMakeLists.txt LICENSE
|
|
2
|
-
recursive-include src *
|
|
3
|
-
recursive-include include *
|
|
1
|
+
include README.md CMakeLists.txt LICENSE
|
|
2
|
+
recursive-include src *
|
|
3
|
+
recursive-include include *
|
|
4
4
|
recursive-include pybind11 *
|
|
@@ -118,6 +118,7 @@ struct OnvifData {
|
|
|
118
118
|
char serial_number[128];
|
|
119
119
|
char host_name[1024];
|
|
120
120
|
char host[128];
|
|
121
|
+
char user_data[1024];
|
|
121
122
|
/*error*/
|
|
122
123
|
char last_error[1024];
|
|
123
124
|
/*date/time*/
|
|
@@ -237,6 +238,7 @@ LIBRARY_API void getCameraName(int ordinal, struct OnvifSession *onvif_session,
|
|
|
237
238
|
LIBRARY_API bool extractXAddrs(int ordinal, struct OnvifSession *onvif_session, struct OnvifData *onvif_data);
|
|
238
239
|
LIBRARY_API void extractOnvifService(char service[1024], bool post);
|
|
239
240
|
LIBRARY_API void extractHost(char * xaddrs, char host[128]);
|
|
241
|
+
LIBRARY_API void extractHostWithPort(char * xaddrs, char host[128]);
|
|
240
242
|
|
|
241
243
|
LIBRARY_API int setSocketOptions(int socket);
|
|
242
244
|
LIBRARY_API void prefix2mask(int prefix, char mask_buf[128]);
|
|
@@ -246,6 +248,8 @@ LIBRARY_API void copyData(struct OnvifData* dts, struct OnvifData* src);
|
|
|
246
248
|
LIBRARY_API bool hasPTZ(struct OnvifData* onvif_data);
|
|
247
249
|
LIBRARY_API void getActiveNetworkInterfaces(struct OnvifSession* onvif_session);
|
|
248
250
|
LIBRARY_API void dumpConfigAll (struct OnvifData *onvif_data);
|
|
251
|
+
LIBRARY_API void setShowCameraResponse(bool arg);
|
|
252
|
+
LIBRARY_API void setShowCommandSent(bool arg);
|
|
249
253
|
|
|
250
254
|
#ifdef __MINGW32__
|
|
251
255
|
int inet_pton(int af, const char *src, void *dst);
|
|
@@ -62,6 +62,9 @@ public:
|
|
|
62
62
|
int displayProfile = 0;
|
|
63
63
|
bool failedLogin = false;
|
|
64
64
|
|
|
65
|
+
// sorry about this, there's some wierd bug in windows that won't let me use the user_data set up in onvif.h
|
|
66
|
+
std::string m_user_data;
|
|
67
|
+
|
|
65
68
|
std::vector<Data> profiles;
|
|
66
69
|
|
|
67
70
|
Data()
|
|
@@ -88,6 +91,7 @@ public:
|
|
|
88
91
|
copyData(data, other.data);
|
|
89
92
|
cancelled = other.cancelled;
|
|
90
93
|
alias = other.alias;
|
|
94
|
+
m_user_data = other.m_user_data;
|
|
91
95
|
preset = other.preset;
|
|
92
96
|
stop_type = other.stop_type;
|
|
93
97
|
synchronizeTime = other.synchronizeTime;
|
|
@@ -103,6 +107,7 @@ public:
|
|
|
103
107
|
other.data = nullptr;
|
|
104
108
|
cancelled = other.cancelled;
|
|
105
109
|
alias = other.alias;
|
|
110
|
+
m_user_data = other.m_user_data;
|
|
106
111
|
preset = other.preset;
|
|
107
112
|
stop_type = other.stop_type;
|
|
108
113
|
synchronizeTime = other.synchronizeTime;
|
|
@@ -118,6 +123,7 @@ public:
|
|
|
118
123
|
copyData(data, other.data);
|
|
119
124
|
cancelled = other.cancelled;
|
|
120
125
|
alias = other.alias;
|
|
126
|
+
m_user_data = other.m_user_data;
|
|
121
127
|
preset = other.preset;
|
|
122
128
|
stop_type = other.stop_type;
|
|
123
129
|
synchronizeTime = other.synchronizeTime;
|
|
@@ -134,6 +140,7 @@ public:
|
|
|
134
140
|
data = other.data;
|
|
135
141
|
cancelled = other.cancelled;
|
|
136
142
|
alias = other.alias;
|
|
143
|
+
m_user_data = other.m_user_data;
|
|
137
144
|
other.data = nullptr;
|
|
138
145
|
preset = other.preset;
|
|
139
146
|
stop_type = other.stop_type;
|
|
@@ -579,6 +586,7 @@ public:
|
|
|
579
586
|
if (profile.profile().length() == 0)
|
|
580
587
|
break;
|
|
581
588
|
getStreamUri(profile.data);
|
|
589
|
+
getSnapshotUri(profile.data);
|
|
582
590
|
profiles.push_back(profile);
|
|
583
591
|
index++;
|
|
584
592
|
}
|
|
@@ -668,10 +676,16 @@ public:
|
|
|
668
676
|
std::string camera_name() { return data->camera_name; } const
|
|
669
677
|
void setCameraName(const std::string& arg) { strcpy(data->camera_name, arg.c_str()); }
|
|
670
678
|
void setHost(const std::string& arg) { strcpy(data->host, arg.c_str()); }
|
|
671
|
-
std::string last_error() { return data->last_error; } const
|
|
672
679
|
std::string profile() { return data->profileToken; } const
|
|
680
|
+
|
|
681
|
+
// was supposed to be like other string values from onvif.h, but windows problems
|
|
682
|
+
std::string user_data() { return m_user_data; } const
|
|
683
|
+
void setUserData(const std::string& arg) { m_user_data = arg; }
|
|
684
|
+
|
|
685
|
+
std::string last_error() { return data->last_error; } const
|
|
673
686
|
void clearLastError() { memset(data->last_error, 0, 1024); }
|
|
674
687
|
void setLastError(const std::string& arg) { strcpy(data->last_error, arg.c_str()); }
|
|
688
|
+
|
|
675
689
|
time_t time_offset() { return data->time_offset; } const
|
|
676
690
|
void setTimeOffset(time_t arg) { data->time_offset = arg; }
|
|
677
691
|
std::string timezone() { return data->timezone; } const
|
|
@@ -973,6 +987,8 @@ public:
|
|
|
973
987
|
w.String(data->password);
|
|
974
988
|
w.Key("stream_uri");
|
|
975
989
|
w.String(data->stream_uri);
|
|
990
|
+
w.Key("snapshot_uri");
|
|
991
|
+
w.String(data->snapshot_uri);
|
|
976
992
|
w.Key("camera_name");
|
|
977
993
|
w.String(data->camera_name);
|
|
978
994
|
w.Key("serial_number");
|
|
@@ -983,6 +999,8 @@ public:
|
|
|
983
999
|
w.String(data->host);
|
|
984
1000
|
w.Key("last_error");
|
|
985
1001
|
w.String(data->last_error);
|
|
1002
|
+
w.Key("user_data");
|
|
1003
|
+
w.String(m_user_data.c_str());
|
|
986
1004
|
w.Key("time_offset");
|
|
987
1005
|
w.Int(data->time_offset);
|
|
988
1006
|
w.Key("datetimetype");
|
|
@@ -1185,9 +1203,12 @@ public:
|
|
|
1185
1203
|
if (key == "username") strncpy(data->username, str, length);
|
|
1186
1204
|
if (key == "password") strncpy(data->password, str, length);
|
|
1187
1205
|
if (key == "stream_uri") strncpy(data->stream_uri, str, length);
|
|
1206
|
+
if (key == "snapshot_uri") strncpy(data->snapshot_uri, str, length);
|
|
1188
1207
|
if (key == "camera_name") strncpy(data->camera_name, str, length);
|
|
1189
1208
|
if (key == "serial_number") strncpy(data->serial_number, str, length);
|
|
1190
1209
|
if (key == "host_name") strncpy(data->host_name, str, length);
|
|
1210
|
+
//if (key == "user_data") strncpy(data->user_data, str, length);
|
|
1211
|
+
if (key == "user_data") m_user_data = str;
|
|
1191
1212
|
if (key == "host") strncpy(data->host, str, length);
|
|
1192
1213
|
if (key == "last_error") strncpy(data->last_error, str, length);
|
|
1193
1214
|
if (key == "timezone") strncpy(data->timezone, str, length);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import sys
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
import importlib.util
|
|
5
|
-
|
|
6
|
-
directory = Path(__file__).parent.absolute()
|
|
7
|
-
name = os.path.split(directory)[-1]
|
|
8
|
-
|
|
9
|
-
module_ext = ".so"
|
|
10
|
-
if sys.platform == "win32":
|
|
11
|
-
module_ext = ".pyd"
|
|
12
|
-
os.add_dll_directory(directory)
|
|
13
|
-
|
|
14
|
-
for file in os.listdir(directory):
|
|
15
|
-
filename, ext = os.path.splitext(file)
|
|
16
|
-
if ext == module_ext and filename.startswith(name):
|
|
17
|
-
target = os.path.join(directory, file)
|
|
18
|
-
spec = importlib.util.spec_from_file_location(name, target)
|
|
19
|
-
sys.modules[name] = importlib.util.module_from_spec(spec)
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
import importlib.util
|
|
5
|
+
|
|
6
|
+
directory = Path(__file__).parent.absolute()
|
|
7
|
+
name = os.path.split(directory)[-1]
|
|
8
|
+
|
|
9
|
+
module_ext = ".so"
|
|
10
|
+
if sys.platform == "win32":
|
|
11
|
+
module_ext = ".pyd"
|
|
12
|
+
os.add_dll_directory(directory)
|
|
13
|
+
|
|
14
|
+
for file in os.listdir(directory):
|
|
15
|
+
filename, ext = os.path.splitext(file)
|
|
16
|
+
if ext == module_ext and filename.startswith(name):
|
|
17
|
+
target = os.path.join(directory, file)
|
|
18
|
+
spec = importlib.util.spec_from_file_location(name, target)
|
|
19
|
+
sys.modules[name] = importlib.util.module_from_spec(spec)
|
|
Binary file
|
|
@@ -49,7 +49,6 @@ include/rapidjson/internal/swap.h
|
|
|
49
49
|
include/rapidjson/msinttypes/inttypes.h
|
|
50
50
|
include/rapidjson/msinttypes/stdint.h
|
|
51
51
|
libonvif/__init__.py
|
|
52
|
-
libonvif/libstdc++.so.6
|
|
53
52
|
libonvif/libxml2.so.16
|
|
54
53
|
libonvif.egg-info/PKG-INFO
|
|
55
54
|
libonvif.egg-info/SOURCES.txt
|
|
@@ -116,7 +115,6 @@ pybind11/docs/requirements.txt
|
|
|
116
115
|
pybind11/docs/upgrade.rst
|
|
117
116
|
pybind11/docs/_static/css/custom.css
|
|
118
117
|
pybind11/docs/advanced/classes.rst
|
|
119
|
-
pybind11/docs/advanced/deadlock.md
|
|
120
118
|
pybind11/docs/advanced/embedding.rst
|
|
121
119
|
pybind11/docs/advanced/exceptions.rst
|
|
122
120
|
pybind11/docs/advanced/functions.rst
|
|
@@ -157,11 +155,6 @@ pybind11/include/pybind11/stl.h
|
|
|
157
155
|
pybind11/include/pybind11/stl_bind.h
|
|
158
156
|
pybind11/include/pybind11/type_caster_pyobject_ptr.h
|
|
159
157
|
pybind11/include/pybind11/typing.h
|
|
160
|
-
pybind11/include/pybind11/warnings.h
|
|
161
|
-
pybind11/include/pybind11/conduit/README.txt
|
|
162
|
-
pybind11/include/pybind11/conduit/pybind11_conduit_v1.h
|
|
163
|
-
pybind11/include/pybind11/conduit/pybind11_platform_abi_id.h
|
|
164
|
-
pybind11/include/pybind11/conduit/wrap_include_python_h.h
|
|
165
158
|
pybind11/include/pybind11/detail/class.h
|
|
166
159
|
pybind11/include/pybind11/detail/common.h
|
|
167
160
|
pybind11/include/pybind11/detail/cpp_conduit.h
|
|
@@ -187,7 +180,6 @@ pybind11/tests/conftest.py
|
|
|
187
180
|
pybind11/tests/constructor_stats.h
|
|
188
181
|
pybind11/tests/cross_module_gil_utils.cpp
|
|
189
182
|
pybind11/tests/cross_module_interleaved_error_already_set.cpp
|
|
190
|
-
pybind11/tests/custom_exceptions.py
|
|
191
183
|
pybind11/tests/eigen_tensor_avoid_stl_array.cpp
|
|
192
184
|
pybind11/tests/env.py
|
|
193
185
|
pybind11/tests/exo_planet_c_api.cpp
|
|
@@ -302,8 +294,6 @@ pybind11/tests/test_vector_unique_ptr_member.cpp
|
|
|
302
294
|
pybind11/tests/test_vector_unique_ptr_member.py
|
|
303
295
|
pybind11/tests/test_virtual_functions.cpp
|
|
304
296
|
pybind11/tests/test_virtual_functions.py
|
|
305
|
-
pybind11/tests/test_warnings.cpp
|
|
306
|
-
pybind11/tests/test_warnings.py
|
|
307
297
|
pybind11/tests/valgrind-numpy-scipy.supp
|
|
308
298
|
pybind11/tests/valgrind-python.supp
|
|
309
299
|
pybind11/tests/extra_python_package/pytest.ini
|
|
@@ -81,7 +81,7 @@ nox -s build
|
|
|
81
81
|
### Full setup
|
|
82
82
|
|
|
83
83
|
To setup an ideal development environment, run the following commands on a
|
|
84
|
-
system with CMake 3.
|
|
84
|
+
system with CMake 3.14+:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
87
|
python3 -m venv venv
|
|
@@ -96,8 +96,8 @@ Tips:
|
|
|
96
96
|
* You can use `virtualenv` (faster, from PyPI) instead of `venv`.
|
|
97
97
|
* You can select any name for your environment folder; if it contains "env" it
|
|
98
98
|
will be ignored by git.
|
|
99
|
-
* If you don't have CMake 3.
|
|
100
|
-
* You can use `-DPYBIND11_FINDPYTHON=ON` to use FindPython.
|
|
99
|
+
* If you don't have CMake 3.14+, just add "cmake" to the pip install command.
|
|
100
|
+
* You can use `-DPYBIND11_FINDPYTHON=ON` to use FindPython on CMake 3.12+
|
|
101
101
|
* In classic mode, you may need to set `-DPYTHON_EXECUTABLE=/path/to/python`.
|
|
102
102
|
FindPython uses `-DPython_ROOT_DIR=/path/to` or
|
|
103
103
|
`-DPython_EXECUTABLE=/path/to/python`.
|
|
@@ -149,8 +149,8 @@ To run the tests, you can "build" the check target:
|
|
|
149
149
|
cmake --build build --target check
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
`--target` can be spelled `-t
|
|
153
|
-
targets:
|
|
152
|
+
`--target` can be spelled `-t` in CMake 3.15+. You can also run individual
|
|
153
|
+
tests with these targets:
|
|
154
154
|
|
|
155
155
|
* `pytest`: Python tests only, using the
|
|
156
156
|
[pytest](https://docs.pytest.org/en/stable/) framework
|
|
@@ -39,7 +39,6 @@ jobs:
|
|
|
39
39
|
- 'pypy-3.8'
|
|
40
40
|
- 'pypy-3.9'
|
|
41
41
|
- 'pypy-3.10'
|
|
42
|
-
- 'graalpy-24.1'
|
|
43
42
|
|
|
44
43
|
# Items in here will either be added to the build matrix (if not
|
|
45
44
|
# present), or add new keys to an existing matrix element if all the
|
|
@@ -65,31 +64,9 @@ jobs:
|
|
|
65
64
|
# Inject a couple Windows 2019 runs
|
|
66
65
|
- runs-on: windows-2019
|
|
67
66
|
python: '3.9'
|
|
68
|
-
# Inject a few runs with different runtime libraries
|
|
69
|
-
- runs-on: windows-2022
|
|
70
|
-
python: '3.9'
|
|
71
|
-
args: >
|
|
72
|
-
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
|
|
73
|
-
- runs-on: windows-2022
|
|
74
|
-
python: '3.10'
|
|
75
|
-
args: >
|
|
76
|
-
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL
|
|
77
|
-
# This needs a python built with MTd
|
|
78
|
-
# - runs-on: windows-2022
|
|
79
|
-
# python: '3.11'
|
|
80
|
-
# args: >
|
|
81
|
-
# -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebug
|
|
82
|
-
- runs-on: windows-2022
|
|
83
|
-
python: '3.12'
|
|
84
|
-
args: >
|
|
85
|
-
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebugDLL
|
|
86
67
|
# Extra ubuntu latest job
|
|
87
68
|
- runs-on: ubuntu-latest
|
|
88
69
|
python: '3.11'
|
|
89
|
-
exclude:
|
|
90
|
-
# The setup-python action currently doesn't have graalpy for windows
|
|
91
|
-
- python: 'graalpy-24.1'
|
|
92
|
-
runs-on: 'windows-2022'
|
|
93
70
|
|
|
94
71
|
|
|
95
72
|
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}"
|
|
@@ -334,6 +311,11 @@ jobs:
|
|
|
334
311
|
fail-fast: false
|
|
335
312
|
matrix:
|
|
336
313
|
clang:
|
|
314
|
+
- 3.6
|
|
315
|
+
- 3.7
|
|
316
|
+
- 3.9
|
|
317
|
+
- 7
|
|
318
|
+
- 9
|
|
337
319
|
- dev
|
|
338
320
|
std:
|
|
339
321
|
- 11
|
|
@@ -342,6 +324,8 @@ jobs:
|
|
|
342
324
|
include:
|
|
343
325
|
- clang: 5
|
|
344
326
|
std: 14
|
|
327
|
+
- clang: 10
|
|
328
|
+
std: 17
|
|
345
329
|
- clang: 11
|
|
346
330
|
std: 20
|
|
347
331
|
- clang: 12
|
|
@@ -519,6 +503,10 @@ jobs:
|
|
|
519
503
|
fail-fast: false
|
|
520
504
|
matrix:
|
|
521
505
|
include:
|
|
506
|
+
- { gcc: 7, std: 11 }
|
|
507
|
+
- { gcc: 7, std: 17 }
|
|
508
|
+
- { gcc: 8, std: 14 }
|
|
509
|
+
- { gcc: 8, std: 17 }
|
|
522
510
|
- { gcc: 9, std: 20 }
|
|
523
511
|
- { gcc: 10, std: 17 }
|
|
524
512
|
- { gcc: 10, std: 20 }
|
|
@@ -739,9 +727,9 @@ jobs:
|
|
|
739
727
|
|
|
740
728
|
# This tests an "install" with the CMake tools
|
|
741
729
|
install-classic:
|
|
742
|
-
name: "🐍 3.
|
|
730
|
+
name: "🐍 3.7 • Debian • x86 • Install"
|
|
743
731
|
runs-on: ubuntu-latest
|
|
744
|
-
container: i386/debian:
|
|
732
|
+
container: i386/debian:buster
|
|
745
733
|
|
|
746
734
|
steps:
|
|
747
735
|
- uses: actions/checkout@v1 # v1 is required to run inside docker
|
|
@@ -821,6 +809,7 @@ jobs:
|
|
|
821
809
|
fail-fast: false
|
|
822
810
|
matrix:
|
|
823
811
|
python:
|
|
812
|
+
- '3.7'
|
|
824
813
|
- '3.8'
|
|
825
814
|
- '3.9'
|
|
826
815
|
- '3.10'
|
|
@@ -838,6 +827,8 @@ jobs:
|
|
|
838
827
|
args: -DCMAKE_CXX_STANDARD=20
|
|
839
828
|
- python: '3.8'
|
|
840
829
|
args: -DCMAKE_CXX_STANDARD=17
|
|
830
|
+
- python: '3.7'
|
|
831
|
+
args: -DCMAKE_CXX_STANDARD=14
|
|
841
832
|
|
|
842
833
|
|
|
843
834
|
name: "🐍 ${{ matrix.python }} • MSVC 2019 • x86 ${{ matrix.args }}"
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
include:
|
|
32
32
|
- runs-on: ubuntu-20.04
|
|
33
33
|
arch: x64
|
|
34
|
-
cmake: "3.
|
|
34
|
+
cmake: "3.5"
|
|
35
35
|
|
|
36
36
|
- runs-on: ubuntu-20.04
|
|
37
37
|
arch: x64
|
|
@@ -39,22 +39,22 @@ jobs:
|
|
|
39
39
|
|
|
40
40
|
- runs-on: macos-13
|
|
41
41
|
arch: x64
|
|
42
|
-
cmake: "3.
|
|
42
|
+
cmake: "3.7"
|
|
43
43
|
|
|
44
44
|
- runs-on: windows-2019
|
|
45
45
|
arch: x64 # x86 compilers seem to be missing on 2019 image
|
|
46
46
|
cmake: "3.18"
|
|
47
47
|
|
|
48
|
-
name: 🐍 3.
|
|
48
|
+
name: 🐍 3.7 • CMake ${{ matrix.cmake }} • ${{ matrix.runs-on }}
|
|
49
49
|
runs-on: ${{ matrix.runs-on }}
|
|
50
50
|
|
|
51
51
|
steps:
|
|
52
52
|
- uses: actions/checkout@v4
|
|
53
53
|
|
|
54
|
-
- name: Setup Python 3.
|
|
54
|
+
- name: Setup Python 3.7
|
|
55
55
|
uses: actions/setup-python@v5
|
|
56
56
|
with:
|
|
57
|
-
python-version: 3.
|
|
57
|
+
python-version: 3.7
|
|
58
58
|
architecture: ${{ matrix.arch }}
|
|
59
59
|
|
|
60
60
|
- name: Prepare env
|
|
@@ -103,7 +103,7 @@ jobs:
|
|
|
103
103
|
- uses: actions/download-artifact@v4
|
|
104
104
|
|
|
105
105
|
- name: Generate artifact attestation for sdist and wheel
|
|
106
|
-
uses: actions/attest-build-provenance@
|
|
106
|
+
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
|
|
107
107
|
with:
|
|
108
108
|
subject-path: "*/pybind11*"
|
|
109
109
|
|
|
@@ -25,14 +25,14 @@ repos:
|
|
|
25
25
|
|
|
26
26
|
# Clang format the codebase automatically
|
|
27
27
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
28
|
-
rev: "
|
|
28
|
+
rev: "v18.1.8"
|
|
29
29
|
hooks:
|
|
30
30
|
- id: clang-format
|
|
31
31
|
types_or: [c++, c, cuda]
|
|
32
32
|
|
|
33
33
|
# Ruff, the Python auto-correcting linter/formatter written in Rust
|
|
34
34
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
35
|
-
rev: v0.
|
|
35
|
+
rev: v0.6.3
|
|
36
36
|
hooks:
|
|
37
37
|
- id: ruff
|
|
38
38
|
args: ["--fix", "--show-fixes"]
|
|
@@ -40,7 +40,7 @@ repos:
|
|
|
40
40
|
|
|
41
41
|
# Check static types with mypy
|
|
42
42
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
43
|
-
rev: "v1.
|
|
43
|
+
rev: "v1.11.2"
|
|
44
44
|
hooks:
|
|
45
45
|
- id: mypy
|
|
46
46
|
args: []
|
|
@@ -62,7 +62,7 @@ repos:
|
|
|
62
62
|
|
|
63
63
|
# Standard hooks
|
|
64
64
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
65
|
-
rev: "
|
|
65
|
+
rev: "v4.6.0"
|
|
66
66
|
hooks:
|
|
67
67
|
- id: check-added-large-files
|
|
68
68
|
- id: check-case-conflict
|
|
@@ -79,7 +79,7 @@ repos:
|
|
|
79
79
|
|
|
80
80
|
# Also code format the docs
|
|
81
81
|
- repo: https://github.com/adamchainz/blacken-docs
|
|
82
|
-
rev: "1.
|
|
82
|
+
rev: "1.18.0"
|
|
83
83
|
hooks:
|
|
84
84
|
- id: blacken-docs
|
|
85
85
|
additional_dependencies:
|
|
@@ -108,7 +108,7 @@ repos:
|
|
|
108
108
|
|
|
109
109
|
# Checks the manifest for missing files (native support)
|
|
110
110
|
- repo: https://github.com/mgedmin/check-manifest
|
|
111
|
-
rev: "0.
|
|
111
|
+
rev: "0.49"
|
|
112
112
|
hooks:
|
|
113
113
|
- id: check-manifest
|
|
114
114
|
# This is a slow hook, so only run this if --hook-stage manual is passed
|
|
@@ -142,14 +142,14 @@ repos:
|
|
|
142
142
|
|
|
143
143
|
# PyLint has native support - not always usable, but works for us
|
|
144
144
|
- repo: https://github.com/PyCQA/pylint
|
|
145
|
-
rev: "v3.
|
|
145
|
+
rev: "v3.2.7"
|
|
146
146
|
hooks:
|
|
147
147
|
- id: pylint
|
|
148
148
|
files: ^pybind11
|
|
149
149
|
|
|
150
150
|
# Check schemas on some of our YAML files
|
|
151
151
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
152
|
-
rev: 0.29.
|
|
152
|
+
rev: 0.29.2
|
|
153
153
|
hooks:
|
|
154
154
|
- id: check-readthedocs
|
|
155
155
|
- id: check-github-workflows
|
|
@@ -10,7 +10,16 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.27")
|
|
|
10
10
|
cmake_policy(GET CMP0148 _pybind11_cmp0148)
|
|
11
11
|
endif()
|
|
12
12
|
|
|
13
|
-
cmake_minimum_required(VERSION 3.
|
|
13
|
+
cmake_minimum_required(VERSION 3.5)
|
|
14
|
+
|
|
15
|
+
# The `cmake_minimum_required(VERSION 3.5...3.29)` syntax does not work with
|
|
16
|
+
# some versions of VS that have a patched CMake 3.11. This forces us to emulate
|
|
17
|
+
# the behavior using the following workaround:
|
|
18
|
+
if(${CMAKE_VERSION} VERSION_LESS 3.29)
|
|
19
|
+
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
|
20
|
+
else()
|
|
21
|
+
cmake_policy(VERSION 3.29)
|
|
22
|
+
endif()
|
|
14
23
|
|
|
15
24
|
if(_pybind11_cmp0148)
|
|
16
25
|
cmake_policy(SET CMP0148 ${_pybind11_cmp0148})
|
|
@@ -18,7 +27,9 @@ if(_pybind11_cmp0148)
|
|
|
18
27
|
endif()
|
|
19
28
|
|
|
20
29
|
# Avoid infinite recursion if tests include this as a subdirectory
|
|
21
|
-
|
|
30
|
+
if(DEFINED PYBIND11_MASTER_PROJECT)
|
|
31
|
+
return()
|
|
32
|
+
endif()
|
|
22
33
|
|
|
23
34
|
# Extract project version from source
|
|
24
35
|
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/include/pybind11/detail/common.h"
|
|
@@ -63,6 +74,14 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
|
|
63
74
|
|
|
64
75
|
set(PYBIND11_MASTER_PROJECT ON)
|
|
65
76
|
|
|
77
|
+
if(OSX AND CMAKE_VERSION VERSION_LESS 3.7)
|
|
78
|
+
# Bug in macOS CMake < 3.7 is unable to download catch
|
|
79
|
+
message(WARNING "CMAKE 3.7+ needed on macOS to download catch, and newer HIGHLY recommended")
|
|
80
|
+
elseif(WINDOWS AND CMAKE_VERSION VERSION_LESS 3.8)
|
|
81
|
+
# Only tested with 3.8+ in CI.
|
|
82
|
+
message(WARNING "CMAKE 3.8+ tested on Windows, previous versions untested")
|
|
83
|
+
endif()
|
|
84
|
+
|
|
66
85
|
message(STATUS "CMake ${CMAKE_VERSION}")
|
|
67
86
|
|
|
68
87
|
if(CMAKE_CXX_STANDARD)
|
|
@@ -114,7 +133,8 @@ cmake_dependent_option(
|
|
|
114
133
|
"Install pybind11 headers in Python include directory instead of default installation prefix"
|
|
115
134
|
OFF "PYBIND11_INSTALL" OFF)
|
|
116
135
|
|
|
117
|
-
|
|
136
|
+
cmake_dependent_option(PYBIND11_FINDPYTHON "Force new FindPython" ${_pybind11_findpython_default}
|
|
137
|
+
"NOT CMAKE_VERSION VERSION_LESS 3.12" OFF)
|
|
118
138
|
|
|
119
139
|
# Allow PYTHON_EXECUTABLE if in FINDPYTHON mode and building pybind11's tests
|
|
120
140
|
# (makes transition easier while we support both modes).
|
|
@@ -143,9 +163,6 @@ set(PYBIND11_HEADERS
|
|
|
143
163
|
include/pybind11/chrono.h
|
|
144
164
|
include/pybind11/common.h
|
|
145
165
|
include/pybind11/complex.h
|
|
146
|
-
include/pybind11/conduit/pybind11_conduit_v1.h
|
|
147
|
-
include/pybind11/conduit/pybind11_platform_abi_id.h
|
|
148
|
-
include/pybind11/conduit/wrap_include_python_h.h
|
|
149
166
|
include/pybind11/options.h
|
|
150
167
|
include/pybind11/eigen.h
|
|
151
168
|
include/pybind11/eigen/common.h
|
|
@@ -165,11 +182,10 @@ set(PYBIND11_HEADERS
|
|
|
165
182
|
include/pybind11/stl_bind.h
|
|
166
183
|
include/pybind11/stl/filesystem.h
|
|
167
184
|
include/pybind11/type_caster_pyobject_ptr.h
|
|
168
|
-
include/pybind11/typing.h
|
|
169
|
-
include/pybind11/warnings.h)
|
|
185
|
+
include/pybind11/typing.h)
|
|
170
186
|
|
|
171
187
|
# Compare with grep and warn if mismatched
|
|
172
|
-
if(PYBIND11_MASTER_PROJECT)
|
|
188
|
+
if(PYBIND11_MASTER_PROJECT AND NOT CMAKE_VERSION VERSION_LESS 3.12)
|
|
173
189
|
file(
|
|
174
190
|
GLOB_RECURSE _pybind11_header_check
|
|
175
191
|
LIST_DIRECTORIES false
|
|
@@ -187,7 +203,10 @@ if(PYBIND11_MASTER_PROJECT)
|
|
|
187
203
|
endif()
|
|
188
204
|
endif()
|
|
189
205
|
|
|
190
|
-
list(TRANSFORM
|
|
206
|
+
# CMake 3.12 added list(TRANSFORM <list> PREPEND
|
|
207
|
+
# But we can't use it yet
|
|
208
|
+
string(REPLACE "include/" "${CMAKE_CURRENT_SOURCE_DIR}/include/" PYBIND11_HEADERS
|
|
209
|
+
"${PYBIND11_HEADERS}")
|
|
191
210
|
|
|
192
211
|
# Cache variable so this can be used in parent projects
|
|
193
212
|
set(pybind11_INCLUDE_DIR
|
|
@@ -257,11 +276,25 @@ if(PYBIND11_INSTALL)
|
|
|
257
276
|
tools/${PROJECT_NAME}Config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
|
|
258
277
|
INSTALL_DESTINATION ${PYBIND11_CMAKECONFIG_INSTALL_DIR})
|
|
259
278
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
279
|
+
if(CMAKE_VERSION VERSION_LESS 3.14)
|
|
280
|
+
# Remove CMAKE_SIZEOF_VOID_P from ConfigVersion.cmake since the library does
|
|
281
|
+
# not depend on architecture specific settings or libraries.
|
|
282
|
+
set(_PYBIND11_CMAKE_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})
|
|
283
|
+
unset(CMAKE_SIZEOF_VOID_P)
|
|
284
|
+
|
|
285
|
+
write_basic_package_version_file(
|
|
286
|
+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
|
287
|
+
VERSION ${PROJECT_VERSION}
|
|
288
|
+
COMPATIBILITY AnyNewerVersion)
|
|
289
|
+
|
|
290
|
+
set(CMAKE_SIZEOF_VOID_P ${_PYBIND11_CMAKE_SIZEOF_VOID_P})
|
|
291
|
+
else()
|
|
292
|
+
# CMake 3.14+ natively supports header-only libraries
|
|
293
|
+
write_basic_package_version_file(
|
|
294
|
+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
|
295
|
+
VERSION ${PROJECT_VERSION}
|
|
296
|
+
COMPATIBILITY AnyNewerVersion ARCH_INDEPENDENT)
|
|
297
|
+
endif()
|
|
265
298
|
|
|
266
299
|
install(
|
|
267
300
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
|
|
@@ -34,7 +34,7 @@ dependency.
|
|
|
34
34
|
Think of this library as a tiny self-contained version of Boost.Python
|
|
35
35
|
with everything stripped away that isn't relevant for binding
|
|
36
36
|
generation. Without comments, the core header files only require ~4K
|
|
37
|
-
lines of code and depend on Python (3.
|
|
37
|
+
lines of code and depend on Python (3.7+, or PyPy) and the C++
|
|
38
38
|
standard library. This compact implementation was possible thanks to
|
|
39
39
|
some C++11 language features (specifically: tuples, lambda functions and
|
|
40
40
|
variadic templates). Since its creation, this library has grown beyond
|
|
@@ -79,7 +79,7 @@ Goodies
|
|
|
79
79
|
In addition to the core functionality, pybind11 provides some extra
|
|
80
80
|
goodies:
|
|
81
81
|
|
|
82
|
-
- Python 3.
|
|
82
|
+
- Python 3.7+, and PyPy3 7.3 are supported with an implementation-agnostic
|
|
83
83
|
interface (pybind11 2.9 was the last version to support Python 2 and 3.5).
|
|
84
84
|
|
|
85
85
|
- It is possible to bind C++11 lambda functions with captured
|
|
@@ -826,7 +826,8 @@ An instance can now be pickled as follows:
|
|
|
826
826
|
always use the latest available version. Beware: failure to follow these
|
|
827
827
|
instructions will cause important pybind11 memory allocation routines to be
|
|
828
828
|
skipped during unpickling, which will likely lead to memory corruption
|
|
829
|
-
and/or segmentation faults.
|
|
829
|
+
and/or segmentation faults. Python defaults to version 3 (Python 3-3.7) and
|
|
830
|
+
version 4 for Python 3.8+.
|
|
830
831
|
|
|
831
832
|
.. seealso::
|
|
832
833
|
|