]> git.saurik.com Git - apt-legacy.git/blame - apt-pkg/init.h
Add /etc/apt/preferences.d.
[apt-legacy.git] / apt-pkg / init.h
CommitLineData
da6ee469
JF
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#include <apt-pkg/configuration.h>
17#include <apt-pkg/pkgsystem.h>
18
0e5943eb
JF
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
00ec24d0
JF
24#define APT_PKG_MAJOR 4
25#define APT_PKG_MINOR 6
da6ee469
JF
26#define APT_PKG_RELEASE 0
27
28extern const char *pkgVersion;
29extern const char *pkgLibVersion;
da6ee469
JF
30
31bool pkgInitConfig(Configuration &Cnf);
32bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
33
34#ifdef APT_COMPATIBILITY
35#if APT_COMPATIBILITY != 986
36#warning "Using APT_COMPATIBILITY"
37#endif
38
39inline bool pkgInitialize(Configuration &Cnf)
40{
41 return pkgInitConfig(Cnf) && pkgInitSystem(Cnf,_system);
42};
43#endif
44
45#endif