#include <module.h>
Data Fields | |
PmStatus(* | open )(PmDatabase *db) |
Opens the database. | |
PmStatus(* | create )(PmDatabase *db) |
Creates a new database. | |
PmStatus(* | close )(PmDatabase *db) |
Closes the database. | |
PmStatus(* | rebuild )(PmDatabase *db) |
Rebuilds the database. | |
unsigned long(* | getPackageCount )(PmDatabase *db) |
Returns the number of packages in the database. | |
PmStatus(* | addPackage )(PmDatabase *db, PmPackage *pkg) |
Adds the information on a package to the database. | |
PmStatus(* | removePackage )(PmDatabase *db, PmPackage *package) |
Removes the information on a package from the database. | |
PmStatus(* | findByName )(PmDatabase *db, const char *name, PmMatches *matches) |
Searches for a package by name. | |
PmStatus(* | findByGroup )(PmDatabase *db, const char *group, PmMatches *matches) |
Searches for a package by group. | |
PmStatus(* | findByFile )(PmDatabase *db, const char *file, PmMatches *matches) |
Searches for a package by file. | |
PmStatus(* | findByRequires )(PmDatabase *db, const char *requires, PmMatches *matches) |
Searches for a package by the specified required dependency. | |
PmStatus(* | findByProvides )(PmDatabase *db, const char *provides, PmMatches *matches) |
Searches for a package by the specified provided dependency. | |
PmStatus(* | findByConflicts )(PmDatabase *db, const char *conflicts, PmMatches *matches) |
Searches for a package by the specified conflicting dependency. | |
PmStatus(* | getAllPackages )(PmDatabase *db, PmMatches *matches) |
Returns all packages in the database. | |
PmPackage *(* | firstPackage )(PmDatabase *db, PmMatches *matches) |
Returns the first matched package. | |
PmPackage *(* | nextPackage )(PmDatabase *db, PmMatches *matches) |
Returns the next matched package. | |
PmStatus(* | destroyMatches )(PmMatches *matches) |
Destroys a PmMatches structure. | |
void(* | destroyPkgData )(void *data) |
Destroys any database-specific data in a package structure. | |
void(* | getFiles )(PmDatabase *db, PmPackage *pkg) |
Gets a list of files from a package in the database and adds them to the package. | |
void(* | getRequiredDeps )(PmDatabase *db, PmPackage *pkg) |
Gets a list of required dependencies from a package in the database and adds them to the package. | |
void(* | getProvidedDeps )(PmDatabase *db, PmPackage *pkg) |
Gets a list of provided dependencies from a package in the database and adds them to the package. | |
char *(* | getScript )(PmDatabase *db, 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. |
These functions should only be used by libpackman!
|
Adds the information on a package to the database. This is different from pmInstallPackage(), which adds the information and then proceeds to extract and install the package's files.
|
|
Closes the database.
|
|
Creates a new database.
|
|
Destroys a PmMatches structure.
|
|
Destroys any database-specific data in a package structure.
|
|
Searches for a package by the specified conflicting dependency.
|
|
Searches for a package by file.
|
|
Searches for a package by group.
|
|
Searches for a package by name.
|
|
Searches for a package by the specified provided dependency.
|
|
Searches for a package by the specified required dependency.
|
|
Returns the first matched package.
|
|
Returns all packages in the database.
|
|
Gets a list of files from a package in the database and adds them to the package.
|
|
Returns the number of packages in the database.
|
|
Gets a list of provided dependencies from a package in the database and adds them to the package.
|
|
Gets a list of required dependencies from a package in the database and adds them to the package.
|
|
Gets the script with the specified type, event, and trigger name, if the script is a trigger.
|
|
Returns the next matched package.
|
|
Opens the database.
|
|
Rebuilds the database.
|
|
Removes the information on a package from the database. This is different from pmUninstallPackage(), which removes the information and then proceeds to uninstall the package's files.
|