aptconfiguration.h
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
/*}}}*/
#ifndef APT_CONFIGURATION_H
#define APT_CONFIGURATION_H
// Include Files /*{{{*/
#include <apt-pkg/macros.h>
#include <limits>
#include <string>
#include <vector>
/*}}}*/
namespace APT {
namespace Configuration { /*{{{*/
APT_PUBLIC std::vector<std::string> const getCompressionTypes(bool const &Cached = true);
APT_PUBLIC std::vector<std::string> const getLanguages(bool const &All = false,
bool const &Cached = true, char const ** const Locale = 0);
APT_PUBLIC bool checkLanguage(std::string Lang, bool const All = false);
APT_PUBLIC std::vector<std::string> const getArchitectures(bool const &Cached = true);
APT_PUBLIC bool checkArchitecture(std::string const &Arch);
struct APT_PUBLIC Compressor {
std::string Name;
std::string Extension;
std::string Binary;
std::vector<std::string> CompressArgs;
std::vector<std::string> UncompressArgs;
unsigned short Cost;
Compressor(char const *name, char const *extension, char const *binary,
char const *compressArg, char const *uncompressArg,
unsigned short const cost);
Compressor() : Cost(std::numeric_limits<unsigned short>::max()) {};
};
APT_PUBLIC std::vector<Compressor> const getCompressors(bool const Cached = true);
APT_PUBLIC std::vector<std::string> const getCompressorExtensions();
APT_PUBLIC std::vector<std::string> const getBuildProfiles();
APT_PUBLIC std::string const getBuildProfilesString();
std::string const getMachineID();
#ifdef APT_COMPILING_APT
APT_PUBLIC bool isChroot();
APT_PUBLIC bool checkUsrMerged();
APT_PUBLIC std::string color(std::string const &colorName, std::string const &content = "");
struct ArchitectureVariant
{
std::string name;
std::string base;
std::vector<std::string> cpuflags;
std::vector<std::string> supplants{};
};
APT_HIDDEN std::vector<ArchitectureVariant> getArchitectureVariants(bool cached);
#endif
/*}}}*/
}
/*}}}*/
}
#endif
Configuration
Definition configuration.h:41