DlpReadOpenDBInfo3
Read information about a palmos database
Usage
#include <palm.h>
#include <pconn/pconn.h>
int
DlpReadOpenDBInfo(PConnection *pconn, ubyte handle, struct dlp_opendbinfo *dbinfo);
Library
libpconn
Overview
DlpReadOpenDBInfo reads information about a database on the Palm.
handle is the database handle given by DlpOpenDB.
dbinfo is filled in with information about the database. The dlp_opendbinfo structure is trivial:
struct dlp_opendbinfo
{
uword numrecs;
};
where numrecs is the number of records or resources in the database.
Return value
DlpReadOpenDBInfo returns 0 if successful, or a negative value otherwise.
Notes
The fact that this function takes an entire structure for a single value may be considered a bug. However, with a name like “read open DB info,” it seems likely that in future versions, this function might return far more information.
Releases
Unchanged in 3 releases since Debian 3.0 (Woody).