libdebian-installer

dpkg.h

00001 /*
00002  * dpkg.h
00003  *
00004  * Copyright (C) 2003 Bastian Blank <waldi@debian.org>
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 #ifndef DEBIAN_INSTALLER__SYSTEM__DPKG_H
00021 #define DEBIAN_INSTALLER__SYSTEM__DPKG_H
00022 
00023 #include <debian-installer/packages.h>
00024 
00025 #include <stdbool.h>
00026 
00032 #define DI_SYSTEM_DPKG_ADMINDIR "/var/lib/dpkg/"
00033 #define DI_SYSTEM_DPKG_INFODIR DI_SYSTEM_DPKG_ADMINDIR "info/"
00034 #define DI_SYSTEM_DPKG_STATUSFILE DI_SYSTEM_DPKG_ADMINDIR "status"
00035 #define DI_SYSTEM_DPKG_TMPCONTROLDIR DI_SYSTEM_DPKG_ADMINDIR "tmp.ci/"
00036 
00037 #if 0
00038 int di_system_dpkg_package_configure (di_packages *status, const char *package, bool force);
00039 #endif
00040 int di_system_dpkg_package_control_file_exec (di_package *package, const char *name, int argc, const char *const argv[]);
00041 #if 0
00042 int di_system_dpkg_package_unpack (di_packages *status, const char *_package, const char *filename, di_packages_allocator *allocator);
00043 #endif
00044 
00046 #endif