[libvirt-rust PATCH v3 0/4] Map more functions in stream module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This set of patches will add more functions to the Rust bindings.
Newly mapped functions from C library: virStreamNew virStreamEventUpdateCallback virStreamEventRemoveCallback virStreamEventAddCallback.

virStreamEventAddCallback can accept normal fn functions or closures (can capture variables outside)

The changes are not very thoroughly tested since event module is not implemented at all so the virStreamEventAddCallback will always return "unsupported by the connection driver".

Version 2: Addressed comments
Version 3: Undo format changes and rebased against latest branch

Zixing Liu (4):
  libvirt-rust: stream: add more functions in stream
  libvirt-rust: stream: add more functions in stream
  libvirt-rust: use reference instead of moving
  libvirt-rust: stream: addressed comments

 src/domain.rs   |  2 +-
 src/stream.rs   | 94 ++++++++++++++++++++++++++++++++++++++++++++++---
 tests/stream.rs | 40 +++++++++++++++++++++
 3 files changed, 130 insertions(+), 6 deletions(-)
 create mode 100644 tests/stream.rs

-- 
2.25.0






[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux