Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

_PmPackageOps Struct Reference

Package operations structure. More...

#include <module.h>


Data Fields

PmStatus(* open )(PmPackage *package, const char *filename)
 Opens the specified package.

PmStatus(* close )(PmPackage *package)
 Closes the specified package.

int(* handlesFileType )(const char *filename)
 Determines if this module handles the specified file type.

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

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

char *(* getScript )(PmPackage *package, PmScriptType type, PmScriptEvent event, const char *trigger)
 Gets the script with the specified type, event, and trigger name, if the script is a trigger.


Detailed Description

Package operations structure.

These functions should only be used by libpackman!


Field Documentation

PmStatus(* _PmPackageOps::close)(PmPackage *package)
 

Closes the specified package.

Parameters:
package  A pointer to the parent package structure.
Returns:
The status of the operation.

PmStatus(* _PmPackageOps::extractAll)(PmPackage *package)
 

Extracts the entire archive.

Parameters:
package  A pointer to the parent package structure.
Returns:
The status of the operation.

PmStatus(* _PmPackageOps::extractFile)(PmPackage *package, const char *archivePath, const char *fsPath)
 

Extracts a single file from an archive.

Parameters:
package  A pointer to the parent package structure.
archivePath  The path of the file in the archive.
fsPath  The destination path on the filesystem.
Returns:
The status of the operation.

char*(* _PmPackageOps::getScript)(PmPackage *package, PmScriptType type, PmScriptEvent event, const char *trigger)
 

Gets the script with the specified type, event, and trigger name, if the script is a trigger.

Parameters:
package  A pointer to the parent package structure.
type  The type of script.
event  The event.
trigger  The name of a package for a trigger, NULL if the specified script is not a trigger script.
Returns:
The script if found, or NULL if not found.

int(* _PmPackageOps::handlesFileType)(const char *filename)
 

Determines if this module handles the specified file type.

Parameters:
filename  The filename of the package.
Returns:
1 if this module supports the specified file type; 0 otherwise.

PmStatus(* _PmPackageOps::open)(PmPackage *package, const char *filename)
 

Opens the specified package.

Parameters:
package  A pointer to the parent package structure.
filename  The filename to open.
Returns:
The status of the operation.
See also:
pmPackageRead()


The documentation for this struct was generated from the following file:
Generated on Tue Jul 2 03:15:24 2002 for libpackman by doxygen1.2.15-20020430