00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef PKGLIB_INIT_H
00014 #define PKGLIB_INIT_H
00015
00016 #include <apt-pkg/configuration.h>
00017 #include <apt-pkg/pkgsystem.h>
00018
00019
00020
00021
00022
00023
00024 #define APT_PKG_MAJOR 4
00025 #define APT_PKG_MINOR 10
00026 #define APT_PKG_RELEASE 1
00027
00028 extern const char *pkgVersion;
00029 extern const char *pkgLibVersion;
00030
00031 bool pkgInitConfig(Configuration &Cnf);
00032 bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
00033
00034 #ifdef APT_COMPATIBILITY
00035 #if APT_COMPATIBILITY != 986
00036 #warning "Using APT_COMPATIBILITY"
00037 #endif
00038
00039 inline bool pkgInitialize(Configuration &Cnf)
00040 {
00041 return pkgInitConfig(Cnf) && pkgInitSystem(Cnf,_system);
00042 };
00043 #endif
00044
00045 #endif