Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

depcheck.h File Reference

Dependency checking functions. More...

#include <libpackman/types.h>
#include <libpackman/batch.h>
#include <libpackman/package.h>

Go to the source code of this file.

Functions

PmStatus pmCheckDeps (PmDatabase *db, PmPackage *package, PmDependency **errorList, unsigned int *errorCount)
 Determines if the necessary dependencies are installed for a package.

PmStatus pmCheckBatchDeps (PmDatabase *db, PmBatch *batch, PmDependency **errorList, unsigned int *errorCount)
 Determines if the necessary dependencies are installed for all packages in a batch.


Detailed Description

Dependency checking functions.

Id:
depcheck.h,v 1.3 2002/03/05 22:37:29 chipx86 Exp
Copyright:
(C) 1999-2002 The GNUpdate Project.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Function Documentation

PmStatus pmCheckBatchDeps PmDatabase   db,
PmBatch   batch,
PmDependency **    errorList,
unsigned int *    errorCount
 

Determines if the necessary dependencies are installed for all packages in a batch.

If a file conflicts, it will show up in the list.

Parameters:
db  The opened database.
batch  The batch of packages to check.
errorList  A linked list of missing or conflicting dependencies.
errorCount  The number of items in errorList.
Returns:
PM_SUCCESS on success. PM_DEP_ERROR on missing or conflicting dependency. Other errors if there are problems with the database or package.
See also:
pmCheckDeps(3)

PmStatus pmCheckDeps PmDatabase   db,
PmPackage   package,
PmDependency **    errorList,
unsigned int *    errorCount
 

Determines if the necessary dependencies are installed for a package.

If a file conflicts, it will show up in the list.

Parameters:
db  The opened database.
package  The package to check.
errorList  A linked list of missing or conflicting dependencies.
errorCount  The number of items in errorList.
Returns:
PM_SUCCESS on success. PM_DEP_ERROR if there are missing or conflicting dependencies. Other error types if there are problems with the database or package.
See also:
pmCheckBatchDeps(3)


Generated on Tue Jul 2 03:15:23 2002 for libpackman by doxygen1.2.15-20020430