#include <time.h>
#include <libpackman/types.h>
#include <libpackman/file.h>
#include <libpackman/downloadurl.h>
#include <libpackman/dependency.h>
#include <libpackman/module.h>
#include <libpackman/db.h>
Go to the source code of this file.
Data Structures | |
struct | _PmPackage |
A representation of a package. More... | |
PmPackage (De)allocation Functions | |
PmPackage * | pmNewPackage (void) |
Creates a new PmPackage structure. | |
void | pmDestroyPackage (PmPackage *package) |
Destroys a PmPackage structure. | |
Package Modification Functions | |
void | pmPackageAddDownloadUrl (PmPackage *pkg, PmDownloadUrl *downloadUrl) |
Adds a download URL to the package. | |
void | pmPackageAddRequirement (PmPackage *pkg, PmDependency *requirement) |
Adds a required dependency to the package. | |
void | pmPackageAddProvide (PmPackage *pkg, PmDependency *provide) |
Adds a provided dependency to the package. | |
void | pmPackageAddFile (PmPackage *pkg, PmFile *file) |
Adds a file to the package. | |
Attribute Modification Functions | |
void | pmSetPackageModule (PmPackage *pkg, PmModule *module) |
Sets the package's associated module. | |
void | pmSetPackageAccessMode (PmPackage *pkg, PmAccessMode mode) |
Sets the package's file access mode. | |
void | pmSetPackageFormat (PmPackage *pkg, const char *pkgFormat) |
Sets the package's file format. | |
void | pmSetPackageOsDistrib (PmPackage *pkg, const char *osDistrib) |
Sets the package's supported OS distribution. | |
void | pmSetPackageFilePath (PmPackage *pkg, const char *filePath) |
Sets the package's file path. | |
void | pmSetPackageName (PmPackage *pkg, const char *name) |
Sets the package's name. | |
void | pmSetPackageVersion (PmPackage *pkg, const char *version) |
Sets the package's version. | |
void | pmSetPackageRelease (PmPackage *pkg, const char *release) |
Sets the package's release identifier. | |
void | pmSetPackageUrl (PmPackage *pkg, const char *url) |
Sets the package's website's URL. | |
void | pmSetPackageGroup (PmPackage *pkg, const char *group) |
Sets the package's categorical group. | |
void | pmSetPackageLicense (PmPackage *pkg, const char *license) |
Sets the package's license. | |
void | pmSetPackageSummary (PmPackage *pkg, const char *summary) |
Sets a brief summary of the specified package. | |
void | pmSetPackageDescription (PmPackage *pkg, const char *description) |
Sets a detailed description of the specified package. | |
void | pmSetPackageArch (PmPackage *pkg, const char *arch) |
Sets the supported architecture of the specified package. | |
void | pmSetPackageBranch (PmPackage *pkg, const char *branch) |
Sets the release branch of the specified package. | |
void | pmSetPackageFileSize (PmPackage *pkg, unsigned int fileSize) |
Sets the file size of the package file. | |
void | pmSetPackageInstalledSize (PmPackage *pkg, unsigned int installedSize) |
Sets the total installed size of all files in the package. | |
void | pmSetPreviousPackage (PmPackage *pkg, PmPackage *prev) |
Sets the previous package in the list. | |
void | pmSetNextPackage (PmPackage *pkg, PmPackage *next) |
Sets the next package in the list. | |
Attribute Retrieval Functions | |
PmModule * | pmGetPackageModule (PmPackage *pkg) |
Returns the package's module. | |
PmAccessMode | pmGetPackageAccessMode (PmPackage *pkg) |
Returns the package's file access mode. | |
const char * | pmGetPackageFormat (PmPackage *pkg) |
Returns the package's file format. | |
const char * | pmGetPackageOsDistrib (PmPackage *pkg) |
Returns the package's supported OS distribution. | |
const char * | pmGetPackageFilePath (PmPackage *pkg) |
Returns the package's file path. | |
const char * | pmGetPackageName (PmPackage *pkg) |
Returns the package's name. | |
const char * | pmGetPackageVersion (PmPackage *pkg) |
Returns the package's version. | |
const char * | pmGetPackageRelease (PmPackage *pkg) |
Returns the package's release identifier. | |
const char * | pmGetPackageUrl (PmPackage *pkg) |
Returns the package's website's URL. | |
const char * | pmGetPackageGroup (PmPackage *pkg) |
Returns the package's categorical group. | |
const char * | pmGetPackageLicense (PmPackage *pkg) |
Returns the package's license. | |
const char * | pmGetPackageSummary (PmPackage *pkg) |
Returns a brief summary of the specified package. | |
const char * | pmGetPackageDescription (PmPackage *pkg) |
Returns a detailed description of the specified package. | |
const char * | pmGetPackageArch (PmPackage *pkg) |
Returns the supported architecture of the specified package. | |
const char * | pmGetPackageBranch (PmPackage *pkg) |
Returns the package's release branch. | |
unsigned int | pmGetPackageFileSize (PmPackage *pkg) |
Returns the file size of the specified package. | |
unsigned int | pmGetPackageInstalledSize (PmPackage *pkg) |
Returns the total size of all installed files in the package. | |
unsigned int | pmGetPackageDownloadUrlCount (PmPackage *pkg) |
Returns the number of download URLs in the specified package. | |
unsigned int | pmGetPackageRequirementCount (PmPackage *pkg) |
Returns the number of required dependencies in the specified package. | |
unsigned int | pmGetPackageProvideCount (PmPackage *pkg) |
Returns the number of provided dependencies in the specified package. | |
unsigned int | pmGetPackageFileCount (PmPackage *pkg) |
Returns the number of files in the specified package. | |
PmPackage * | pmGetPreviousPackage (PmPackage *pkg) |
Returns the previous package in the list. | |
PmPackage * | pmGetNextPackage (PmPackage *pkg) |
Returns the next package in the list. | |
Typedefs | |
typedef _PmPackage | PmPackage |
PmPackage. |
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.
|
PmPackage.
|
|
Destroys a PmPackage structure.
|
|
Returns the next package in the list.
|
|
Returns the package's file access mode.
|
|
Returns the supported architecture of the specified package.
|
|
Returns the package's release branch.
|
|
Returns a detailed description of the specified package.
|
|
Returns the number of download URLs in the specified package.
|
|
Returns the number of files in the specified package.
|
|
Returns the package's file path.
|
|
Returns the file size of the specified package.
|
|
Returns the package's file format.
|
|
Returns the package's categorical group.
|
|
Returns the total size of all installed files in the package.
|
|
Returns the package's license.
|
|
Returns the package's module.
|
|
Returns the package's name.
|
|
Returns the package's supported OS distribution.
|
|
Returns the number of provided dependencies in the specified package.
|
|
Returns the package's release identifier.
|
|
Returns the number of required dependencies in the specified package.
|
|
Returns a brief summary of the specified package.
|
|
Returns the package's website's URL.
|
|
Returns the package's version.
|
|
Returns the previous package in the list.
|
|
Creates a new PmPackage structure.
|
|
Adds a download URL to the package.
|
|
Adds a file to the package.
|
|
Adds a provided dependency to the package.
|
|
Adds a required dependency to the package.
|
|
Sets the next package in the list.
|
|
Sets the package's file access mode.
|
|
Sets the supported architecture of the specified package. Common architectures include (but are not limited to):
|
|
Sets the release branch of the specified package. Common branches include (but are not limited to):
|
|
Sets a detailed description of the specified package.
|
|
Sets the package's file path. This should really only be used by libpackman.
|
|
Sets the file size of the package file.
|
|
Sets the package's file format. This should really only be used by libpackman.
|
|
Sets the package's categorical group.
|
|
Sets the total installed size of all files in the package.
|
|
Sets the package's license.
|
|
Sets the package's associated module. This should really only be used by libpackman.
|
|
Sets the package's name.
|
|
Sets the package's supported OS distribution. This should really only be used by libpackman.
|
|
Sets the package's release identifier.
|
|
Sets a brief summary of the specified package.
|
|
Sets the package's website's URL.
|
|
Sets the package's version.
|
|
Sets the previous package in the list.
|