Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

batch.h File Reference

Package batch structure and support API. More...

#include <libpackman/package.h>

Go to the source code of this file.

Data Structures

struct  _PmBatch
 A list of packages. More...


PmBatch (De)allocation Functions

PmBatchpmNewBatch (void)
 Creates a new PmBatch structure.

void pmDestroyBatch (PmBatch *batch)
 Destroys a PmBatch structure.


Batch Modification Functions

void pmBatchAddPackage (PmBatch *batch, PmPackage *package)
 Adds a package to a batch.


Typedefs

typedef _PmBatch PmBatch
 PmBatch.


Detailed Description

Package batch structure and support API.

Id:
batch.h,v 1.4 2002/03/18 09:51:04 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.


Typedef Documentation

typedef struct _PmBatch PmBatch
 

PmBatch.


Function Documentation

void pmBatchAddPackage PmBatch   batch,
PmPackage   package
 

Adds a package to a batch.

Destroying the package will result in segfaults. To free up the memory, call pmDestroyBatch().

Parameters:
batch  The batch to add the package to.
package  The package to add.

void pmDestroyBatch PmBatch   batch
 

Destroys a PmBatch structure.

Destroying the batch is the only way to free up the memory used by all the packages stored inside.

Parameters:
batch  The batch to destroy.

PmBatch* pmNewBatch void   
 

Creates a new PmBatch structure.

Returns:
A new, empty PmBatch structure.


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