rustduck-sys 1.1.0

Raw Rust FFI bindings to the C ABI used by TSDuck's Python API
Documentation
#ifndef RUSTDUCK_BRIDGE_MEMORY_HANDLER_H
#define RUSTDUCK_BRIDGE_MEMORY_HANDLER_H

#include <memory>

class RustDuckMemoryHandler final {
public:
  RustDuckMemoryHandler();
  ~RustDuckMemoryHandler() noexcept;

  RustDuckMemoryHandler(const RustDuckMemoryHandler &) = delete;
  RustDuckMemoryHandler &operator=(const RustDuckMemoryHandler &) = delete;

  void *raw() const noexcept;
  std::shared_ptr<void> retain() const noexcept;

private:
  std::shared_ptr<void> handler_;
};

std::unique_ptr<RustDuckMemoryHandler> rustduck_memory_handler_new();

#endif