init.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: init.h,v 1.9.2.2 2004/01/02 18:51:00 mdz Exp $
  4. /* ######################################################################
  5. Init - Initialize the package library
  6. This function must be called to configure the config class before
  7. calling many APT library functions.
  8. ##################################################################### */
  9. /*}}}*/
  10. #ifndef PKGLIB_INIT_H
  11. #define PKGLIB_INIT_H
  12. #ifndef APT_8_CLEANER_HEADERS
  13. #include <apt-pkg/configuration.h>
  14. #include <apt-pkg/pkgsystem.h>
  15. #endif
  16. class pkgSystem;
  17. class Configuration;
  18. // These lines are extracted by the makefiles and the buildsystem
  19. // Increasing MAJOR or MINOR results in the need of recompiling all
  20. // reverse-dependencies of libapt-pkg against the new SONAME.
  21. // Non-ABI-Breaks should only increase RELEASE number.
  22. // See also buildlib/libversion.mak
  23. #define APT_PKG_MAJOR 4
  24. #define APT_PKG_MINOR 12
  25. #define APT_PKG_RELEASE 0
  26. extern const char *pkgVersion;
  27. extern const char *pkgLibVersion;
  28. bool pkgInitConfig(Configuration &Cnf);
  29. bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
  30. #endif