]>
git.saurik.com Git - apt-legacy.git/blob - apt-pkg/init.h
6d8693be9879eaf2c929c2a8be9f8ae2d7c36d36
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 4
21 #define APT_PKG_MINOR 6
22 #define APT_PKG_RELEASE 0
24 extern const char *pkgVersion
;
25 extern const char *pkgLibVersion
;
27 bool pkgInitConfig(Configuration
&Cnf
);
28 bool pkgInitSystem(Configuration
&Cnf
,pkgSystem
*&Sys
);
30 #ifdef APT_COMPATIBILITY
31 #if APT_COMPATIBILITY != 986
32 #warning "Using APT_COMPATIBILITY"
35 inline bool pkgInitialize(Configuration
&Cnf
)
37 return pkgInitConfig(Cnf
) && pkgInitSystem(Cnf
,_system
);