]>
Commit | Line | Data |
---|---|---|
9c14e3d6 AL |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
7db98ffc | 3 | // $Id: init.h,v 1.9.2.2 2004/01/02 18:51:00 mdz Exp $ |
9c14e3d6 AL |
4 | /* ###################################################################### |
5 | ||
6 | Init - Initialize the package library | |
7 | ||
8 | This function must be called to configure the config class before | |
9 | calling many APT library functions. | |
10 | ||
11 | ##################################################################### */ | |
12 | /*}}}*/ | |
9c14e3d6 AL |
13 | #ifndef PKGLIB_INIT_H |
14 | #define PKGLIB_INIT_H | |
15 | ||
094a497d | 16 | #include <apt-pkg/configuration.h> |
b2e465d6 | 17 | #include <apt-pkg/pkgsystem.h> |
9c14e3d6 | 18 | |
23d84658 DK |
19 | // These lines are extracted by the makefiles and the buildsystem |
20 | // Increasing MAJOR or MINOR results in the need of recompiling all | |
21 | // reverse-dependencies of libapt-pkg against the new SONAME. | |
22 | // Non-ABI-Breaks should only increase RELEASE number. | |
23 | // See also buildlib/libversion.mak | |
acdd8da1 MV |
24 | // FIXME: this needs to be changed to "4" (without quotes) on the next |
25 | // ABI break | |
26 | #define APT_PKG_MAJOR libc6.10-6-4 | |
81e9789b | 27 | #define APT_PKG_MINOR 8 |
10c9f030 | 28 | #define APT_PKG_RELEASE 0 |
63b1700f | 29 | |
b2e465d6 AL |
30 | extern const char *pkgVersion; |
31 | extern const char *pkgLibVersion; | |
b2e465d6 AL |
32 | |
33 | bool pkgInitConfig(Configuration &Cnf); | |
34 | bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys); | |
35 | ||
36 | #ifdef APT_COMPATIBILITY | |
37 | #if APT_COMPATIBILITY != 986 | |
38 | #warning "Using APT_COMPATIBILITY" | |
39 | #endif | |
40 | ||
41 | inline bool pkgInitialize(Configuration &Cnf) | |
42 | { | |
43 | return pkgInitConfig(Cnf) && pkgInitSystem(Cnf,_system); | |
44 | }; | |
45 | #endif | |
9c14e3d6 AL |
46 | |
47 | #endif |