X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/131a2dc0cb36c29d002c2a61f96411e5d84f4adf..aa16679ccb39598b9b4546c912af1cf8c70e529b:/apt-pkg/acquire.h diff --git a/apt-pkg/acquire.h b/apt-pkg/acquire.h index 64dafdc9d..eaadded55 100644 --- a/apt-pkg/acquire.h +++ b/apt-pkg/acquire.h @@ -72,9 +72,6 @@ using std::vector; using std::string; -#ifdef __GNUG__ -#pragma interface "apt-pkg/acquire.h" -#endif #include #include @@ -440,8 +437,12 @@ class pkgAcquire::Queue public: - /** \brief Insert the given fetch request into this queue. */ - void Enqueue(ItemDesc &Item); + /** \brief Insert the given fetch request into this queue. + * + * \return \b true if the queuing was successful. May return + * \b false if the Item is already in the queue + */ + bool Enqueue(ItemDesc &Item); /** \brief Remove all fetch requests for the given item from this queue. * @@ -538,7 +539,7 @@ class pkgAcquire::UriIterator public: - inline void operator ++() {operator ++();}; + inline void operator ++() {operator ++(0);}; void operator ++(int) {