carta
pdb_InsertResource(3)

pdb_InsertResource3

Add records to a palm database

Part of pdb_AppendRecord(3).

Usage

int

int

int

int

Library

libpdb

Overview

pdb_AppendRecord appends the record pointed to by newrec to the database db. Note that newrec is not copied, so the caller must not free it.

pdb_AppendResource appends the resource pointed to by newrsrc to the database db. Note that newrsrc is not copied, so the caller must not free it.

pdb_InsertRecord adds the record pointed to by newrec into the database pointed to by db, immediately after the record prev. If prev is NULL, the new record is inserted at the beginning of the database.

pdb_InsertResource adds the resource pointed to by newrsrc into the database pointed to by db, immediately after the resource prev. If prev is NULL, the new resource is inserted at the beginning of the database.

Return value

These functions return 0 if successful, or a negative value otherwise.

Authors

Andrew Arensburger ⟨[email protected]⟩ LIMITATIONS pdb_InsertRecord and pdb_InsertResource do not check whether prev is in db. It is strongly recommended that the caller not abuse this behavior.

From coldsync 3.0+pre3-3 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.