]> git.saurik.com Git - apt.git/blame_incremental - apt-pkg/init.h
Applying #298821 patch for further arbitary typos
[apt.git] / apt-pkg / init.h
... / ...
CommitLineData
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
19// See the makefile
20#define APT_PKG_MAJOR 4
21#define APT_PKG_MINOR 6
22#define APT_PKG_RELEASE 0
23
24extern const char *pkgVersion;
25extern const char *pkgLibVersion;
26
27bool pkgInitConfig(Configuration &Cnf);
28bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
29
30#ifdef APT_COMPATIBILITY
31#if APT_COMPATIBILITY != 986
32#warning "Using APT_COMPATIBILITY"
33#endif
34
35inline bool pkgInitialize(Configuration &Cnf)
36{
37 return pkgInitConfig(Cnf) && pkgInitSystem(Cnf,_system);
38};
39#endif
40
41#endif