]>
git.saurik.com Git - apt.git/blob - apt-pkg/init.h
8255b406a6bd65d694ef7cdd68d2adda2ad6b54b
   1 // -*- mode: cpp; mode: fold -*- 
   3 // $Id: init.h,v 1.9.2.2 2004/01/02 18:51:00 mdz Exp $ 
   4 /* ###################################################################### 
   6    Init - Initialize the package library 
   8    This function must be called to configure the config class before 
   9    calling many APT library functions. 
  11    ##################################################################### */ 
  16 #include <apt-pkg/configuration.h> 
  17 #include <apt-pkg/pkgsystem.h> 
  20 #define APT_PKG_MAJOR 3 
  21 #define APT_PKG_MINOR 11 
  22 #define APT_PKG_RELEASE 0 
  24 extern const char *pkgVersion
; 
  25 extern const char *pkgLibVersion
; 
  26 extern const char *pkgOS
; 
  27 extern const char *pkgCPU
; 
  29 bool pkgInitConfig(Configuration 
&Cnf
); 
  30 bool pkgInitSystem(Configuration 
&Cnf
,pkgSystem 
*&Sys
); 
  32 #ifdef APT_COMPATIBILITY 
  33 #if APT_COMPATIBILITY != 986 
  34 #warning "Using APT_COMPATIBILITY" 
  37 inline bool pkgInitialize(Configuration 
&Cnf
)  
  39    return pkgInitConfig(Cnf
) && pkgInitSystem(Cnf
,_system
);