Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

downloadurl.h File Reference

Download URL API. More...

#include <libpackman/package.h>

Go to the source code of this file.

Data Structures

struct  _PmDownloadUrl
 A download URL. More...


PmDownloadUrl (De)allocation Functions

PmDownloadUrlpmNewDownloadUrl (void)
 Creates a new PmDownloadUrl.

PmDownloadUrlpmDuplicateDownloadUrl (PmDownloadUrl *baseDownloadUrl)
 Duplicates an existing PmDownloadUrl.

void pmDestroyDownloadUrl (PmDownloadUrl *downloadUrl)
 Destroys the specified PmDownloadUrl.


Attribute Modification Functions

void pmSetDownloadUrl (PmDownloadUrl *downloadUrl, const char *url)
 Sets the URL on the specified PmDownloadUrl.


Attribute Retrieval Functions

const char * pmGetDownloadUrl (PmDownloadUrl *downloadUrl)
 Returns the URL of the specified PmDownloadUrl.


Iteration Functions

PmDownloadUrlpmFirstDownloadUrl (PmPackage *pkg)
 Returns the first PmDownloadUrl in the list.

PmDownloadUrlpmPreviousDownloadUrl (PmDownloadUrl *downloadUrl)
 Returns the previous PmDownloadUrl in the list.

PmDownloadUrlpmNextDownloadUrl (PmDownloadUrl *downloadUrl)
 Returns the next PmDownloadUrl in the list.


Typedefs

typedef _PmDownloadUrl PmDownloadUrl
 PmDownloadUrl.


Detailed Description

Download URL API.

Id:
downloadurl.h,v 1.8 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.


Typedef Documentation

typedef struct _PmDownloadUrl PmDownloadUrl
 

PmDownloadUrl.


Function Documentation

void pmDestroyDownloadUrl PmDownloadUrl   downloadUrl
 

Destroys the specified PmDownloadUrl.

Parameters:
downloadUrl  The PmDownloadUrl to destroy.
See also:
pmNewDownloadUrl() , pmDuplicateDownloadUrl()

PmDownloadUrl* pmDuplicateDownloadUrl PmDownloadUrl   baseDownloadUrl
 

Duplicates an existing PmDownloadUrl.

Parameters:
baseDownloadUrl  The PmDownloadUrl to duplicate.
Returns:
A new copy of baseDownloadUrl.
See also:
pmNewDownloadUrl() , pmDestroyDownloadUrl()

PmDownloadUrl* pmFirstDownloadUrl PmPackage   pkg
 

Returns the first PmDownloadUrl in the list.

Parameters:
pkg  The package containing the download URLs.
Returns:
The first PmDownloadUrl in the list.
See also:
pmPreviousDownloadUrl() , pmNextDownloadUrl()

const char* pmGetDownloadUrl PmDownloadUrl   downloadUrl
 

Returns the URL of the specified PmDownloadUrl.

Parameters:
downloadUrl  The PmDownloadUrl.
Returns:
downloadUrl's URL.
See also:
pmSetDownloadUrl()

PmDownloadUrl* pmNewDownloadUrl void   
 

Creates a new PmDownloadUrl.

Returns:
A new, empty PmDownloadUrl.
See also:
pmDuplicateDownloadUrl() , pmDestroyDownloadUrl()

PmDownloadUrl* pmNextDownloadUrl PmDownloadUrl   downloadUrl
 

Returns the next PmDownloadUrl in the list.

Parameters:
downloadUrl  The current PmDownloadUrl.
Returns:
The next PmDownloadUrl in the list.
See also:
pmFirstDownloadUrl() , pmPreviousDownloadUrl()

PmDownloadUrl* pmPreviousDownloadUrl PmDownloadUrl   downloadUrl
 

Returns the previous PmDownloadUrl in the list.

Parameters:
downloadUrl  The current PmDownloadUrl.
Returns:
The previous PmDownloadUrl in the list.
See also:
pmFirstDownloadUrl() , pmNextDownloadUrl()

void pmSetDownloadUrl PmDownloadUrl   downloadUrl,
const char *    url
 

Sets the URL on the specified PmDownloadUrl.

Parameters:
downloadUrl  The PmDownloadUrl to modify.
url  The new URL.
See also:
pmGetDownloadUrl()


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