init.h 809 B

123456789101112131415161718192021222324252627282930313233
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. /* ######################################################################
  4. Init - Initialize the package library
  5. This function must be called to configure the config class before
  6. calling many APT library functions.
  7. ##################################################################### */
  8. /*}}}*/
  9. #ifndef PKGLIB_INIT_H
  10. #define PKGLIB_INIT_H
  11. #ifndef APT_8_CLEANER_HEADERS
  12. #include <apt-pkg/configuration.h>
  13. #include <apt-pkg/pkgsystem.h>
  14. #endif
  15. #ifndef APT_10_CLEANER_HEADERS
  16. #include <apt-pkg/macros.h>
  17. #endif
  18. class pkgSystem;
  19. class Configuration;
  20. extern const char *pkgVersion;
  21. extern const char *pkgLibVersion;
  22. bool pkgInitConfig(Configuration &Cnf);
  23. bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
  24. #endif