]> git.saurik.com Git - apt.git/blob - apt-pkg/init.h
4ee7a95acc4182ba21cc28fd17cefc0499dd3d55
[apt.git] / apt-pkg / init.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 /* ######################################################################
4
5 Init - Initialize the package library
6
7 This function must be called to configure the config class before
8 calling many APT library functions.
9
10 ##################################################################### */
11 /*}}}*/
12 #ifndef PKGLIB_INIT_H
13 #define PKGLIB_INIT_H
14
15 #ifndef APT_8_CLEANER_HEADERS
16 #include <apt-pkg/configuration.h>
17 #include <apt-pkg/pkgsystem.h>
18 #endif
19 #include <apt-pkg/macros.h>
20
21 class pkgSystem;
22 class Configuration;
23
24 extern const char *pkgVersion;
25 extern const char *pkgLibVersion;
26
27 bool pkgInitConfig(Configuration &Cnf);
28 bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
29
30 #endif