dlpreadstorageinfo(3)
NAME
DlpReadStorageInfo - short description
LIBRARY
libpconn
SYNOPSIS
#include <palm.h> #include <pconn/pconn.h> int DlpReadStorageInfo(PConnection *pconn, const ubyte card, ubyte *last_card, ubyte *more, struct dlp_cardinfo *cinfo);
DESCRIPTION
- DlpReadStorageInfo reads information about a given memory
- card on the Palm. card is the number of the memory card. Card
- numbers start at 0.
- last_card is filled in with the number of the last card re
- trieved.
- more is filled in with a value. This ought to be non-zero if
- there are more memory cards; however, this doesn't appear to be
- the case. This field is currently useless.
- cinfo is filled in with memory card information. The
- dlp_cardinfo structure is defined as
struct dlp_cardinfo
{ubyte totalsize;
ubyte cardno;
uword cardversion;
struct dlp_time ctime;
udword rom_size;
udword ram_size;
udword free_ram;
ubyte cardname_size;
ubyte manufname_size;
char cardname[DLPCMD_MEMCARD_LEN];
char manufname[DLPCMD_MEMCARD_LEN];
uword rom_dbs;
uword ram_dbs;- };
RETURN VALUE
- DlpReadStorageInfo returns 0 if successful, or a negative
- value in case of error.
SEE ALSO
- libpconn(3), new_PConnection(3). May not work if the Palm
- has more than one memory card.
- BSD Aug 16, 2001