rust-apt 0.10.0

Bindings for libapt-pkg
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "rust-apt/apt-pkg-c/error.h"
#include <apt-pkg/error.h>

#include "types.h"

Vec<AptError> get_all() noexcept {
	Vec<AptError> list;

	while (!_error->empty()) {
		std::string msg;
		bool type = _error->PopMessage(msg);
		list.push_back(AptError{type, msg});
	}
	return list;
}