]> git.saurik.com Git - apt.git/blame - apt-pkg/init.h
merged lp:~mvo/apt/add-missing-dsc-hashes
[apt.git] / apt-pkg / init.h
CommitLineData
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
b9dadc24
DK
16#ifndef APT_8_CLEANER_HEADERS
17#include <apt-pkg/configuration.h>
18#include <apt-pkg/pkgsystem.h>
19#endif
20
472ff00e
DK
21class pkgSystem;
22class Configuration;
9c14e3d6 23
23d84658
DK
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
c0a73937 29#define APT_PKG_MAJOR 4
9005f08e 30#define APT_PKG_MINOR 13
9abccf4a 31#define APT_PKG_RELEASE 0
63b1700f 32
b2e465d6
AL
33extern const char *pkgVersion;
34extern const char *pkgLibVersion;
b2e465d6
AL
35
36bool pkgInitConfig(Configuration &Cnf);
37bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
38
9c14e3d6 39#endif