~ubuntu-branches/ubuntu/natty/apt/natty-proposed

« back to all changes in this revision

Viewing changes to apt-pkg/aptconfiguration.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-03-10 16:12:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110310161222-gdsdpd1fvbya4nc5
Tags: 0.8.12ubuntu1
merged from debian/sid, this adds important fixes in the udev based
cdrom handling and multiarch handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
         */
83
83
        bool static const checkArchitecture(std::string const &Arch);
84
84
 
 
85
        /** \brief Representation of supported compressors */
 
86
        struct Compressor {
 
87
                std::string Name;
 
88
                std::string Extension;
 
89
                std::string Binary;
 
90
                std::vector<std::string> CompressArgs;
 
91
                std::vector<std::string> UncompressArgs;
 
92
                unsigned short Cost;
 
93
 
 
94
                Compressor(char const *name, char const *extension, char const *binary,
 
95
                           char const *compressArg, char const *uncompressArg,
 
96
                           unsigned short const cost);
 
97
                Compressor() {};
 
98
        };
 
99
 
 
100
        /** \brief Return a vector of Compressors supported for data.tar's
 
101
         *
 
102
         *  \param Cached saves the result so we need to calculated it only once
 
103
         *                this parameter should ony be used for testing purposes.
 
104
         *
 
105
         *  \return a vector of Compressors
 
106
         */
 
107
        std::vector<Compressor> static const getCompressors(bool const Cached = true);
 
108
 
 
109
        /** \brief Return a vector of extensions supported for data.tar's */
 
110
        std::vector<std::string> static const getCompressorExtensions();
 
111
                                                                        /*}}}*/
 
112
        private:                                                        /*{{{*/
 
113
        void static setDefaultConfigurationForCompressors();
85
114
                                                                        /*}}}*/
86
115
};
87
116
                                                                        /*}}}*/