| 1 | #pragma once |
| 2 | #include <apt-pkg/error.h> |
| 3 | #include "rust-apt/src/error.rs" |
| 4 | #include "rust/cxx.h" |
| 5 | |
| 6 | #include "types.h" |
| 7 | |
| 8 | /// Handle the situation where a string is null and return a result to rust |
| 9 | inline bool pending_error() { return _error->PendingError(); } |
| 10 | |
| 11 | inline bool empty() { return _error->empty(); } |
| 12 | |
| 13 | Vec<AptError> get_all() noexcept; |