DlpWriteRecord3
Write a record to a palmos device
Usage
#include <palm.h>
#include <pconn/pconn.h>
int
DlpWriteRecord(PConnection *pconn, const ubyte handle, const ubyte flags, const udword id, const ubyte attributes, const ubyte category, const udword len, const ubyte *data, udword *recid);
Library
libpconn
Overview
DlpWriteRecord writes a record to a database on a Palm. The database must already be open for writing.
handle is a database handle, as returned by DlpOpenDB(3).
flags specifies flags. There are no useful flags. Set this argument to 0.
id specifies the record's ID.
attributes specifies the record's attributes. See the DLPCMD_DBFLAG_* flags in <pconn/dlp_cmd.h>.
category specifies the record's category (but see the BUGS section).
len specifies the length of data.
data points to the record data.
recid is filled in with the record ID on the Palm. The Palm may assign the record an ID other than that given by id.
Return value
DlpWriteRecord returns 0 if successful, or a negative value otherwise.
Releases
Unchanged in 3 releases since Debian 3.0 (Woody).