Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

package_api.h File Reference

Package I/O API. More...

#include <packman.h>
#include <packman.h>

Go to the source code of this file.

Functions

PmPackagepmPackageRead (const char *filename, PmAccessMode mode)
 Opens a package from a file.

PmStatus pmPackageExtractFile (PmPackage *package, const char *archivePath, const char *fsPath)
 Extracts a single file from an archive.

PmStatus pmPackageExtractAll (PmPackage *package)
 Extracts the entire archive.

void pmPackageUpdateProgress (PmPackage *package)
 Updates the progress of a package's installation or uninstallation.


Detailed Description

Package I/O API.

Id:
package_api.h,v 1.24 2002/03/06 01:36:08 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 pmPackageExtractAll PmPackage   package
 

Extracts the entire archive.

Parameters:
package  The package containing the files to extract.
Returns:
The status of the operation.
See also:
pmPackageExtractFile()

PmStatus pmPackageExtractFile PmPackage   package,
const char *    archivePath,
const char *    fsPath
 

Extracts a single file from an archive.

Parameters:
package  The PmPackage structure.
archivePath  The path of the file in the archive.
fsPath  The destination path on the filesystem.
Returns:
The status of the operation.
See also:
pmPackageExtractAll()

PmPackage* pmPackageRead const char *    filename,
PmAccessMode    mode
 

Opens a package from a file.

Parameters:
filename  The file to read in.
mode  The access mode.
Returns:
A PmPackage structure representing the package, or NULL if the package could not be opened.

void pmPackageUpdateProgress PmPackage   package
 

Updates the progress of a package's installation or uninstallation.

Parameters:
package  The package.


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