]> git.saurik.com Git - apt.git/blob - apt-pkg/init.h
implement arch+= and arch-= for sources.list
[apt.git] / apt-pkg / init.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 // $Id: init.h,v 1.9.2.2 2004/01/02 18:51:00 mdz Exp $
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 /*}}}*/
13 #ifndef PKGLIB_INIT_H
14 #define PKGLIB_INIT_H
15
16 #ifndef APT_8_CLEANER_HEADERS
17 #include <apt-pkg/configuration.h>
18 #include <apt-pkg/pkgsystem.h>
19 #endif
20
21 class pkgSystem;
22 class Configuration;
23
24 // These lines are extracted by the makefiles and the buildsystem
25 // Increasing MAJOR or MINOR results in the need of recompiling all
26 // reverse-dependencies of libapt-pkg against the new SONAME.
27 // Non-ABI-Breaks should only increase RELEASE number.
28 // See also buildlib/libversion.mak
29 #define APT_PKG_MAJOR 4
30 #define APT_PKG_MINOR 12
31 #define APT_PKG_RELEASE 0
32
33 extern const char *pkgVersion;
34 extern const char *pkgLibVersion;
35
36 bool pkgInitConfig(Configuration &Cnf);
37 bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
38
39 #endif