summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/pdb.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/pdb.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/pdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/pdb.h b/noncore/apps/opie-reader/pdb.h
index 143c5cb..41649bd 100644
--- a/noncore/apps/opie-reader/pdb.h
+++ b/noncore/apps/opie-reader/pdb.h
@@ -1,43 +1,44 @@
1 1
2/* 2/*
3 * This header file defines some structures and types normally found in the 3 * This header file defines some structures and types normally found in the
4 * Palm SDK. However, I don't want to require the presense of the SDK for a 4 * Palm SDK. However, I don't want to require the presense of the SDK for a
5 * small utility since most Palm owners won't have it. 5 * small utility since most Palm owners won't have it.
6 * 6 *
7 * $Id$ 7 * $Id$
8 * 8 *
9 */ 9 */
10 10
11#ifndef __PDB_H__ 11#ifndef __PDB_H__
12#define __PDB_H__ 12#define __PDB_H__
13 13
14#include <netinet/in.h> 14#include <netinet/in.h>
15#include <stdio.h> 15#include <stdio.h>
16 16
17/* Normal Palm typedefs */ 17/* Normal Palm typedefs */
18typedef unsigned char UInt8; 18typedef unsigned char UInt8;
19typedef unsigned short UInt16; 19typedef unsigned short UInt16;
20typedef signed short Int16;
20typedef unsigned long UInt32; 21typedef unsigned long UInt32;
21typedef UInt32 LocalID; 22typedef UInt32 LocalID;
22 23
23/* Max length of DB name */ 24/* Max length of DB name */
24#define dmDBNameLength 0x20 25#define dmDBNameLength 0x20
25 26
26 27
27/************************************************************ 28/************************************************************
28 * Structure of a Record entry 29 * Structure of a Record entry
29 *************************************************************/ 30 *************************************************************/
30typedef struct { 31typedef struct {
31 LocalID localChunkID; // local chunkID of a record 32 LocalID localChunkID; // local chunkID of a record
32 UInt8 attributes; // record attributes; 33 UInt8 attributes; // record attributes;
33 UInt8 uniqueID[3]; // unique ID of record; should 34 UInt8 uniqueID[3]; // unique ID of record; should
34 // not be 0 for a legal record. 35 // not be 0 for a legal record.
35} RecordEntryType; 36} RecordEntryType;
36 37
37 38
38/************************************************************ 39/************************************************************
39 * Structure of a record list extension. This is used if all 40 * Structure of a record list extension. This is used if all
40 * the database record/resource entries of a database can't fit into 41 * the database record/resource entries of a database can't fit into
41 * the database header. 42 * the database header.
42 *************************************************************/ 43 *************************************************************/
43typedef struct { 44typedef struct {