diff options
| author | Julian Andres Klode <jak@debian.org> | 2021-01-08 14:07:09 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2021-01-08 14:07:09 +0000 |
| commit | d35d51ddbdc75512a73e713972f4bbb5a1fd73ae (patch) | |
| tree | 9fb90d98cb20bb0be193a63efc7c32b513408bad /apt-pkg/pkgcache.h | |
| parent | 4d28ddc501738d571c21ff6d41168f6c53ea462d (diff) | |
| parent | bd64bb79537fac17e1474672402d6b0572dce94a (diff) | |
Merge branch 'pu/phased-updates' into 'master'
Add support for Phased-Update-Percentage
See merge request apt-team/apt!129
Diffstat (limited to 'apt-pkg/pkgcache.h')
| -rw-r--r-- | apt-pkg/pkgcache.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index 6c6a4664e..55baa3cef 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -623,6 +623,8 @@ struct pkgCache::DescFile or handled as separate versions based on the Hash value. */ struct pkgCache::Version { + struct Extra; + /** \brief complete version string */ map_stringitem_t VerStr; /** \brief section this version is filled in */ @@ -688,8 +690,16 @@ struct pkgCache::Version map_pointer<Version> NextInSource; /** \brief Private pointer */ - map_pointer<void> d; + map_pointer<Extra> d; }; + +#ifdef APT_COMPILING_APT +/// \brief Extra information for packages. APT-internal use only. +struct pkgCache::Version::Extra +{ + uint8_t PhasedUpdatePercentage; +}; +#endif /*}}}*/ // Description structure /*{{{*/ /** \brief datamember of a linked list of available description for a version */ |
