DlpWriteResource(3)

DlpWriteResource3

Write a resource to a palmos device

Usage

#include <palm.h>

#include <pconn/pconn.h>

int

DlpWriteResource(PConnection *pconn, const ubyte handle, const udword type, const uword id, const uword size, const ubyte *data);

Library

libpconn

Overview

DlpWriteResource writes a resource to a database on a Palm. The database must already be open for writing.

handle is a database handle, as returned by DlpOpenDB(3).

type specifies the resource's four-character type, with the first character in the most-significant eight bits.

id specifies the resource ID.

size specifies the length of the resource, in bytes.

data points to the resource data.

Return value

DlpWriteResource returns 0 if successful, or a negative value otherwise.

Releases

Unchanged in 3 releases since Debian 3.0 (Woody).

  1. 3.0–4.0

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