// Describes a single file
struct File
{
- APT_DEPRECATED std::string MD5Hash;
- APT_DEPRECATED unsigned long Size;
+ APT_DEPRECATED_MSG("Use Hashes member instead of hardcoded hash algorithm") std::string MD5Hash;
+ APT_DEPRECATED_MSG("Use FileSize member instead") unsigned long Size;
std::string Path;
std::string Type;
};
// Abstract parser for each source record
class Parser
{
- void *d;
+ void * const d;
protected:
const pkgIndexFile *iIndex;
public:
enum BuildDep {BuildDepend=0x0,BuildDependIndep=0x1,
- BuildConflict=0x2,BuildConflictIndep=0x3};
+ BuildConflict=0x2,BuildConflictIndep=0x3,
+ BuildDependArch=0x4,BuildConflictArch=0x5};
struct BuildDepRec
{
private:
/** \brief dpointer placeholder (for later in case we need it) */
- void *d;
+ void * const d;
// The list of files and the current parser pointer
std::vector<Parser*> Files;