File: DlpReadAppBlock.3

package info (click to toggle)
coldsync 3.0%2Bpre3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,180 kB
  • ctags: 2,036
  • sloc: ansic: 20,386; perl: 2,302; cpp: 1,640; yacc: 1,102; lex: 802; makefile: 586; sh: 177
file content (82 lines) | stat: -rw-r--r-- 2,321 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.\" DlpReadAppBlock.3
.\" 
.\" Copyright 2001, Andrew Arensburger.
.\" You may distribute this file under the terms of the Artistic
.\" License, as specified in the README file.
.\"
.\" $Id: DlpReadAppBlock.3,v 1.1 2001/09/05 07:29:13 arensb Exp $
.\"
.\" This man page uses the 'mdoc' formatting macros. If your 'man' uses
.\" the old 'man' package, you may run into problems.
.\"
.Dd Aug 16, 2001
.Dt DlpReadAppBlock 3
.Sh NAME
.Nm DlpReadAppBlock ,
.Nm DlpWriteAppBlock ,
.Nm DlpReadSortBlock ,
.Nm DlpWriteSortBlock
.Nd manipulate special blocks in Palm databases
.Sh LIBRARY
.Pa libpconn
.Sh SYNOPSIS
.Fd #include <palm.h>
.Fd #include <pconn/pconn.h>
.Ft int
.Fn DlpReadAppBlock "PConnection *pconn" "const ubyte handle" "const uword offset" "const uword len" "uword *size" "const ubyte **data"
.Ft int
.Fn DlpWriteAppBlock "PConnection *pconn" "const ubyte handle" "const uword len" "const ubyte *data"
.Ft int
.Fn DlpReadSortBlock "PConnection *pconn" "const ubyte handle" "const uword offset" "const uword len" "uword *size" "const ubyte **data"
.Ft int
.Fn DlpWriteSortBlock "PConnection *pconn" "const ubyte handle" "const uword len" "const ubyte *data"
.Sh DESCRIPTION
.Nm DlpReadAppBlock
reads the AppInfo block of a database on the Palm. The database must
already be open for reading.
.Pp
.Fa handle
is the database handle given by
.Nm DlpOpenDB .
.Pp
.Fa offset
indicates the offset at which to start reading. This should be 0 to
read from the beginning of the AppInfo block.
.Pp
.Fa len
indicates the maximum number of bytes to read.
.Pp
.Fa size
is filled in with the number of bytes actually read.
.Pp
.Fa data
is filled in with a pointer to a buffer containing the data read. This
buffer is volatile, so the data should be copied before the next DLP
function call.
.Pp
.Nm DlpWriteAppBlock
writes a database's AppInfo block. If the database already had an
AppInfo block, it is erased.
.Pp
.Fa handle
is the database handle given by
.Nm DlpOpenDB .
.Pp
.Fa len
specifies the length of the new AppInfo block.
.Pp
.Fa data
is a pointer to the new AppInfo block.
.Pp
.Nm DlpReadSortBlock
and
.Nm DlpWriteSortBlock
are similar to
.Nm DlpReadAppBlock
and
.Nm DlpWriteAppBlock ,
but affect the database's sort block instead of its AppInfo block.
.Sh RETURN VALUE
.Sh SEE ALSO
.Xr libpconn 3 ,
.Xr DlpOpenDB .