Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

db.h File Reference

Database structures. More...

#include <libpackman/module.h>
#include <libpackman/package.h>
#include <libpackman/types.h>

Go to the source code of this file.

Data Structures

struct  _PmDatabase
 A package database. More...

struct  _PmMatches
 Search matches. More...


Typedefs

typedef _PmDatabase PmDatabase
 PmDatabase.

typedef _PmMatches PmMatches
 PmMatches.


Functions

void pmSetDbAccessMode (PmDatabase *db, PmAccessMode mode)
 Sets the database's access mode.

PmAccessMode pmGetDbAccessMode (PmDatabase *db)
 Returns the database's access mode.


Detailed Description

Database structures.

Id:
db.h,v 1.17 2002/03/05 22:37:28 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 _PmDatabase PmDatabase
 

PmDatabase.

typedef struct _PmMatches PmMatches
 

PmMatches.


Function Documentation

PmAccessMode pmGetDbAccessMode PmDatabase   db
 

Returns the database's access mode.

Parameters:
db  The database.
Returns:
The access mode, or PM_MODE_ERROR if db is NULL.
See also:
pmSetDbAccessMode()

void pmSetDbAccessMode PmDatabase   db,
PmAccessMode    mode
 

Sets the database's access mode.

Parameters:
db  The database.
mode  The access mode.
See also:
pmGetDbAccessMode()


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