apt  1.5
init.h
00001 // -*- mode: cpp; mode: fold -*-
00002 // Description                                                          /*{{{*/
00003 // $Id: init.h,v 1.9.2.2 2004/01/02 18:51:00 mdz Exp $
00004 /* ######################################################################
00005 
00006    Init - Initialize the package library
00007 
00008    This function must be called to configure the config class before
00009    calling many APT library functions.
00010    
00011    ##################################################################### */
00012                                                                         /*}}}*/
00013 #ifndef PKGLIB_INIT_H
00014 #define PKGLIB_INIT_H
00015 
00016 #ifndef APT_8_CLEANER_HEADERS
00017 #include <apt-pkg/configuration.h>
00018 #include <apt-pkg/pkgsystem.h>
00019 #endif
00020 
00021 class pkgSystem;
00022 class Configuration;
00023 
00024 // These lines are extracted by the makefiles and the buildsystem
00025 // Increasing MAJOR or MINOR results in the need of recompiling all
00026 // reverse-dependencies of libapt-pkg against the new SONAME.
00027 // Non-ABI-Breaks should only increase RELEASE number.
00028 // See also buildlib/libversion.mak
00029 #define APT_PKG_MAJOR 4
00030 #define APT_PKG_MINOR 12
00031 #define APT_PKG_RELEASE 0
00032     
00033 extern const char *pkgVersion;
00034 extern const char *pkgLibVersion;
00035 
00036 bool pkgInitConfig(Configuration &Cnf);
00037 bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
00038 
00039 #endif