]>
git.saurik.com Git - apt.git/blob - apt-pkg/init.h
b07bc99ec592b6ab4e427c9dab6c1a3f6faaa4fe
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: init.h,v 1.8 2001/04/22 05:42:52 jgg 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 2
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
);