/** * dnf_package_get_rpmdbid: * @pkg: a #DnfPackage instance. * * Gets the RPMDB ID for the package. * * Returns: an ID, or 0 for not known * * Since: 0.7.0 */ guint64 dnf_package_get_rpmdbid(DnfPackage *pkg) { guint64 ret = lookup_num(pkg, RPM_RPMDBID); g_assert(ret > 0); return ret; }
/** * dnf_package_get_size: * @pkg: a #DnfPackage instance. * * Gets the size for the package. * * Returns: size in bytes * * Since: 0.7.0 */ guint64 dnf_package_get_size(DnfPackage *pkg) { unsigned type = dnf_package_installed(pkg) ? SOLVABLE_INSTALLSIZE : SOLVABLE_DOWNLOADSIZE; return lookup_num(pkg, type); }
unsigned long long hy_package_get_rpmdbid(HyPackage pkg) { unsigned long long ret = lookup_num(pkg, RPM_RPMDBID); assert(ret > 0); return ret; }
unsigned long long hy_package_get_size(HyPackage pkg) { unsigned type = hy_package_installed(pkg) ? SOLVABLE_INSTALLSIZE : SOLVABLE_DOWNLOADSIZE; return lookup_num(pkg, type); }
/** * dnf_package_get_medianr: * @pkg: a #DnfPackage instance. * * Gets the media number for the package. * * Returns: integer value * * Since: 0.7.0 */ guint64 dnf_package_get_medianr(DnfPackage *pkg) { return lookup_num(pkg, SOLVABLE_MEDIANR); }
/** * dnf_package_get_installtime: * @pkg: a #DnfPackage instance. * * Gets the install time for the package. * * Returns: UNIX time * * Since: 0.7.0 */ guint64 dnf_package_get_installtime(DnfPackage *pkg) { return lookup_num(pkg, SOLVABLE_INSTALLTIME); }
/** * dnf_package_get_buildtime: * @pkg: a #DnfPackage instance. * * Gets the build time for the package. * * Returns: UNIX time * * Since: 0.7.0 */ guint64 dnf_package_get_buildtime(DnfPackage *pkg) { return lookup_num(pkg, SOLVABLE_BUILDTIME); }
/** * dnf_package_get_installsize: * @pkg: a #DnfPackage instance. * * Gets the installed size for the package. * * Returns: size in bytes * * Since: 0.7.0 */ guint64 dnf_package_get_installsize(DnfPackage *pkg) { return lookup_num(pkg, SOLVABLE_INSTALLSIZE); }
/** * dnf_package_get_hdr_end: * @pkg: a #DnfPackage instance. * * Gets the header end index for the package. * * Returns: an index, or 0 for not known * * Since: 0.7.0 */ guint64 dnf_package_get_hdr_end(DnfPackage *pkg) { return lookup_num(pkg, SOLVABLE_HEADEREND); }
/** * dnf_package_get_downloadsize: * @pkg: a #DnfPackage instance. * * Gets the download size for the package. * * Returns: %TRUE for success * * Since: 0.7.0 */ guint64 dnf_package_get_downloadsize(DnfPackage *pkg) { return lookup_num(pkg, SOLVABLE_DOWNLOADSIZE); }
unsigned long long hy_package_get_medianr(HyPackage pkg) { return lookup_num(pkg, SOLVABLE_MEDIANR); }
unsigned long long hy_package_get_installtime(HyPackage pkg) { return lookup_num(pkg, SOLVABLE_INSTALLTIME); }
unsigned long long hy_package_get_buildtime(HyPackage pkg) { return lookup_num(pkg, SOLVABLE_BUILDTIME); }
unsigned long long hy_package_get_hdr_end(HyPackage pkg) { return lookup_num(pkg, SOLVABLE_HEADEREND); }
unsigned long long hy_package_get_downloadsize(HyPackage pkg) { return lookup_num(pkg, SOLVABLE_DOWNLOADSIZE); }