annotate src/libpst.h @ 185:e0392999e9b8

Added tag stable-0-6-36 for changeset 05dc6892d7e4
author Carl Byington <carl@five-ten-sg.com>
date Mon, 13 Apr 2009 15:55:55 -0700
parents b65e8d0a088a
children 0a4f7ecd7452
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
1 /***
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
2 * libpst.h
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
3 * Part of LibPST project
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
4 * Written by David Smith
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
5 * dave.s@earthcorp.com
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
6 */
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
7 // LibPST - Library for Accessing Outlook .pst files
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
8 // Dave Smith - davesmith@users.sourceforge.net
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
9
182
b65e8d0a088a more cleanup on external names in the shared object file
Carl Byington <carl@five-ten-sg.com>
parents: 176
diff changeset
10 #ifndef __PST_LIBPST_H
b65e8d0a088a more cleanup on external names in the shared object file
Carl Byington <carl@five-ten-sg.com>
parents: 176
diff changeset
11 #define __PST_LIBPST_H
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
12
132
5e4d6faada34 fix from Fridrich Strba for parallel make
Carl Byington <carl@five-ten-sg.com>
parents: 130
diff changeset
13 #include "common.h"
130
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
14
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
15
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
16 // switch to maximal packing for all structures in the libpst interface
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
17 // this is reverted at the end of this file
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
18 #ifdef _MSC_VER
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
19 #pragma pack(push, 1)
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
20 #endif
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
21 #if defined(__GNUC__) || defined (__SUNPRO_C) || defined(__SUNPRO_CC)
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
22 #pragma pack(1)
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
23 #endif
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
24
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
25
79
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
26 #define PST_TYPE_NOTE 1
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
27 #define PST_TYPE_APPOINTMENT 8
79
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
28 #define PST_TYPE_CONTACT 9
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
29 #define PST_TYPE_JOURNAL 10
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
30 #define PST_TYPE_STICKYNOTE 11
79
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
31 #define PST_TYPE_TASK 12
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
32 #define PST_TYPE_OTHER 13
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
33 #define PST_TYPE_REPORT 14
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
34
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
35 // defines whether decryption is done on this bit of data
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
36 #define PST_NO_ENC 0
79
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
37 #define PST_ENC 1
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
38
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
39 // defines types of possible encryption
79
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
40 #define PST_NO_ENCRYPT 0
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
41 #define PST_COMP_ENCRYPT 1
79
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
42 #define PST_ENCRYPT 2
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
43
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
44 // defines different types of mappings
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
45 #define PST_MAP_ATTRIB (uint32_t)1
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
46 #define PST_MAP_HEADER (uint32_t)2
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
47
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
48 // define my custom email attributes.
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
49 #define PST_ATTRIB_HEADER -1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
50
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
51 // defines types of free/busy values for appointment->showas
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
52 #define PST_FREEBUSY_FREE 0
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
53 #define PST_FREEBUSY_TENTATIVE 1
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
54 #define PST_FREEBUSY_BUSY 2
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
55 #define PST_FREEBUSY_OUT_OF_OFFICE 3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
56
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
57 // defines labels for appointment->label
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
58 #define PST_APP_LABEL_NONE 0 // None
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
59 #define PST_APP_LABEL_IMPORTANT 1 // Important
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
60 #define PST_APP_LABEL_BUSINESS 2 // Business
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
61 #define PST_APP_LABEL_PERSONAL 3 // Personal
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
62 #define PST_APP_LABEL_VACATION 4 // Vacation
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
63 #define PST_APP_LABEL_MUST_ATTEND 5 // Must Attend
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
64 #define PST_APP_LABEL_TRAVEL_REQ 6 // Travel Required
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
65 #define PST_APP_LABEL_NEEDS_PREP 7 // Needs Preparation
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
66 #define PST_APP_LABEL_BIRTHDAY 8 // Birthday
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
67 #define PST_APP_LABEL_ANNIVERSARY 9 // Anniversary
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
68 #define PST_APP_LABEL_PHONE_CALL 10// Phone Call
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
69
50
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
70 // define type of reccuring event
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
71 #define PST_APP_RECUR_NONE 0
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
72 #define PST_APP_RECUR_DAILY 1
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
73 #define PST_APP_RECUR_WEEKLY 2
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
74 #define PST_APP_RECUR_MONTHLY 3
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
75 #define PST_APP_RECUR_YEARLY 4
fb3818370dd6 more fixes for 64 bit format
carl
parents: 49
diff changeset
76
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
77
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
78 typedef struct pst_misc_6_struct {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
79 int32_t i1;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
80 int32_t i2;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
81 int32_t i3;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
82 int32_t i4;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
83 int32_t i5;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
84 int32_t i6;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
85 } pst_misc_6;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
86
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
87
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
88 typedef struct pst_entryid_struct {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
89 int32_t u1;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
90 char entryid[16];
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
91 uint32_t id;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
92 } pst_entryid;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
93
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
94
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
95 typedef struct pst_desc_struct32 {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
96 uint32_t d_id;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
97 uint32_t desc_id;
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
98 uint32_t tree_id;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
99 uint32_t parent_d_id;
43
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
100 } pst_desc32;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
101
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
102
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
103 typedef struct pst_desc_structn {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
104 uint64_t d_id;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
105 uint64_t desc_id;
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
106 uint64_t tree_id;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
107 uint32_t parent_d_id; // not 64 bit ??
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
108 uint32_t u1; // padding
43
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
109 } pst_descn;
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
110
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
111
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
112 typedef struct pst_index_struct32 {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
113 uint32_t id;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
114 uint32_t offset;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
115 uint16_t size;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
116 int16_t u1;
43
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
117 } pst_index32;
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
118
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
119
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
120 typedef struct pst_index_struct {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
121 uint64_t id;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
122 uint64_t offset;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
123 uint16_t size;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
124 int16_t u0;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
125 int32_t u1;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
126 } pst_index;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
127
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
128
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
129 typedef struct pst_index_tree32 {
164
ab384fed78c5 Compensate for iconv conversion to utf-7 that produces strings that are not null terminated.
Carl Byington <carl@five-ten-sg.com>
parents: 154
diff changeset
130 uint32_t i_id;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
131 uint32_t offset;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
132 uint32_t size;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
133 int32_t u1;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
134 struct pst_index_tree * next;
43
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
135 } pst_index_ll32;
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
136
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
137
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
138 typedef struct pst_index_tree {
164
ab384fed78c5 Compensate for iconv conversion to utf-7 that produces strings that are not null terminated.
Carl Byington <carl@five-ten-sg.com>
parents: 154
diff changeset
139 uint64_t i_id;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
140 uint64_t offset;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
141 uint64_t size;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
142 int64_t u1;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
143 struct pst_index_tree *next;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
144 } pst_index_ll;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
145
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
146
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
147 typedef struct pst_id2_tree {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
148 uint64_t id2;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
149 pst_index_ll *id;
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
150 struct pst_id2_tree *child;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
151 struct pst_id2_tree *next;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
152 } pst_id2_ll;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
153
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
154
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
155 typedef struct pst_desc_tree {
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
156 uint64_t d_id;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
157 uint64_t parent_d_id;
143
fdc58ad2c758 fix embedded rfc822 messages with attachments
Carl Byington <carl@five-ten-sg.com>
parents: 142
diff changeset
158 pst_index_ll *desc;
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
159 pst_index_ll *assoc_tree;
143
fdc58ad2c758 fix embedded rfc822 messages with attachments
Carl Byington <carl@five-ten-sg.com>
parents: 142
diff changeset
160 int32_t no_child;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
161 struct pst_desc_tree *prev;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
162 struct pst_desc_tree *next;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
163 struct pst_desc_tree *parent;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
164 struct pst_desc_tree *child;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
165 struct pst_desc_tree *child_tail;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
166 } pst_desc_ll;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
167
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
168
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
169 typedef struct pst_string {
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
170 int is_utf8; // 1 = true, 0 = false
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
171 char *str; // either utf8 or some sbcs
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
172 } pst_string;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
173
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
174
167
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
175 typedef struct pst_binary {
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
176 size_t size;
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
177 char *data;
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
178 } pst_binary;
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
179
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
180
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
181 /** This struct defines an email message
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
182 */
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
183 typedef struct pst_item_email {
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
184 FILETIME *arrival_date;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
185 /** 1 = true, 0 = not set, -1 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
186 int autoforward;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
187 pst_string cc_address;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
188 pst_string bcc_address;
167
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
189 pst_binary conversation_index;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
190 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
191 int conversion_prohibited;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
192 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
193 int delete_after_submit;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
194 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
195 int delivery_report;
167
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
196 pst_binary encrypted_body;
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
197 pst_binary encrypted_htmlbody;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
198 pst_string header;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
199 pst_string htmlbody;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
200 /** 0=low, 1=normal, 2=high */
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
201 int32_t importance;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
202 pst_string in_reply_to;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
203 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
204 int message_cc_me;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
205 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
206 int message_recip_me;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
207 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
208 int message_to_me;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
209 pst_string messageid;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
210 /** 0=none, 1=personal, 2=private, 3=company confidential */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
211 int32_t original_sensitivity;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
212 pst_string original_bcc;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
213 pst_string original_cc;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
214 pst_string original_to;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
215 pst_string outlook_recipient;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
216 pst_string outlook_recipient_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
217 pst_string outlook_recipient2;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
218 pst_string outlook_sender;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
219 pst_string outlook_sender_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
220 pst_string outlook_sender2;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
221 /** 0=nonurgent, 1=normal, 2=urgent */
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
222 int32_t priority;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
223 pst_string processed_subject;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
224 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
225 int read_receipt;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
226 pst_string recip_access;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
227 pst_string recip_address;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
228 pst_string recip2_access;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
229 pst_string recip2_address;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
230 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
231 int reply_requested;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
232 pst_string reply_to;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
233 pst_string return_path_address;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
234 int32_t rtf_body_char_count;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
235 int32_t rtf_body_crc;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
236 pst_string rtf_body_tag;
167
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
237 pst_binary rtf_compressed;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
238 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
239 int rtf_in_sync;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
240 int32_t rtf_ws_prefix_count;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
241 int32_t rtf_ws_trailing_count;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
242 pst_string sender_access;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
243 pst_string sender_address;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
244 pst_string sender2_access;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
245 pst_string sender2_address;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
246 /** 0=none, 1=personal, 2=private, 3=company confidential */
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
247 int32_t sensitivity;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
248 FILETIME *sent_date;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
249 pst_entryid *sentmail_folder;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
250 pst_string sentto_address;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
251 // delivery report fields
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
252 pst_string report_text;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
253 FILETIME *report_time;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
254 int32_t ndr_reason_code;
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
255 int32_t ndr_diag_code;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
256 pst_string supplementary_info;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
257 int32_t ndr_status_code;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
258 } pst_item_email;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
259
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
260
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
261 typedef struct pst_item_folder {
167
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
262 int32_t item_count;
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
263 int32_t unseen_item_count;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
264 int32_t assoc_count;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
265 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
266 int subfolder;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
267 } pst_item_folder;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
268
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
269
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
270 typedef struct pst_item_message_store {
51
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
271 pst_entryid *top_of_personal_folder; // 0x35e0
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
272 pst_entryid *default_outbox_folder; // 0x35e2
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
273 pst_entryid *deleted_items_folder; // 0x35e3
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
274 pst_entryid *sent_items_folder; // 0x35e4
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
275 pst_entryid *user_views_folder; // 0x35e5
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
276 pst_entryid *common_view_folder; // 0x35e6
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
277 pst_entryid *search_root_folder; // 0x35e7
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
278 pst_entryid *top_of_folder; // 0x7c07
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
279 /** what folders the message store contains
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
280 @li FOLDER_IPM_SUBTREE_VALID 0x1
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
281 @li FOLDER_IPM_INBOX_VALID 0x2
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
282 @li FOLDER_IPM_OUTBOX_VALID 0x4
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
283 @li FOLDER_IPM_WASTEBOX_VALID 0x8
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
284 @li FOLDER_IPM_SENTMAIL_VALID 0x10
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
285 @li FOLDER_VIEWS_VALID 0x20
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
286 @li FOLDER_COMMON_VIEWS_VALID 0x40
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
287 @li FOLDER_FINDER_VALID 0x80
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
288 */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
289 int32_t valid_mask; // 0x35df
51
06c0262ad689 code cleanup
carl
parents: 50
diff changeset
290 int32_t pwd_chksum; // 0x76ff
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
291 } pst_item_message_store;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
292
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
293
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
294 /** This struct defines a contact
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
295 */
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
296 typedef struct pst_item_contact {
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
297 pst_string access_method;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
298 pst_string account_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
299 pst_string address1;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
300 pst_string address1a;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
301 pst_string address1_desc;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
302 pst_string address1_transport;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
303 pst_string address2;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
304 pst_string address2a;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
305 pst_string address2_desc;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
306 pst_string address2_transport;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
307 pst_string address3;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
308 pst_string address3a;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
309 pst_string address3_desc;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
310 pst_string address3_transport;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
311 pst_string assistant_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
312 pst_string assistant_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
313 pst_string billing_information;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
314 FILETIME *birthday;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
315 pst_string business_address; // 0x801b
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
316 pst_string business_city;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
317 pst_string business_country;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
318 pst_string business_fax;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
319 pst_string business_homepage;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
320 pst_string business_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
321 pst_string business_phone2;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
322 pst_string business_po_box;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
323 pst_string business_postal_code;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
324 pst_string business_state;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
325 pst_string business_street;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
326 pst_string callback_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
327 pst_string car_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
328 pst_string company_main_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
329 pst_string company_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
330 pst_string computer_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
331 pst_string customer_id;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
332 pst_string def_postal_address;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
333 pst_string department;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
334 pst_string display_name_prefix;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
335 pst_string first_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
336 pst_string followup;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
337 pst_string free_busy_address;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
338 pst_string ftp_site;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
339 pst_string fullname;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
340 /** 0=unspecified, 1=female, 2=male */
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
341 int16_t gender;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
342 pst_string gov_id;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
343 pst_string hobbies;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
344 pst_string home_address; // 0x801a
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
345 pst_string home_city;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
346 pst_string home_country;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
347 pst_string home_fax;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
348 pst_string home_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
349 pst_string home_phone2;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
350 pst_string home_po_box;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
351 pst_string home_postal_code;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
352 pst_string home_state;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
353 pst_string home_street;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
354 pst_string initials;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
355 pst_string isdn_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
356 pst_string job_title;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
357 pst_string keyword;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
358 pst_string language;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
359 pst_string location;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
360 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
361 int mail_permission;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
362 pst_string manager_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
363 pst_string middle_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
364 pst_string mileage;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
365 pst_string mobile_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
366 pst_string nickname;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
367 pst_string office_loc;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
368 pst_string common_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
369 pst_string org_id;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
370 pst_string other_address; // 0x801c
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
371 pst_string other_city;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
372 pst_string other_country;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
373 pst_string other_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
374 pst_string other_po_box;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
375 pst_string other_postal_code;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
376 pst_string other_state;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
377 pst_string other_street;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
378 pst_string pager_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
379 pst_string personal_homepage;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
380 pst_string pref_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
381 pst_string primary_fax;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
382 pst_string primary_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
383 pst_string profession;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
384 pst_string radio_phone;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
385 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
386 int rich_text;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
387 pst_string spouse_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
388 pst_string suffix;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
389 pst_string surname;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
390 pst_string telex;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
391 pst_string transmittable_display_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
392 pst_string ttytdd_phone;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
393 FILETIME *wedding_anniversary;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
394 pst_string work_address_street; // 0x8045
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
395 pst_string work_address_city; // 0x8046
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
396 pst_string work_address_state; // 0x8047
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
397 pst_string work_address_postalcode; // 0x8048
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
398 pst_string work_address_country; // 0x8049
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
399 pst_string work_address_postofficebox; // 0x804a
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
400 } pst_item_contact;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
401
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
402
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
403 typedef struct pst_item_attach {
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
404 pst_string filename1;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
405 pst_string filename2;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
406 pst_string mimetype;
167
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
407 pst_binary data;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
408 uint64_t id2_val;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
409 /** calculated from id2_val during creation of record */
164
ab384fed78c5 Compensate for iconv conversion to utf-7 that produces strings that are not null terminated.
Carl Byington <carl@five-ten-sg.com>
parents: 154
diff changeset
410 uint64_t i_id;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
411 /** deep copy from child */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
412 pst_id2_ll *id2_head;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
413 /** 0=no attachment, 1=attach by value, 2=attach by reference, 3=attach by reference resolve, 4=attach by reference only, 5=embedded message, 6=OLE */
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
414 int32_t method;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
415 int32_t position;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
416 int32_t sequence;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
417 struct pst_item_attach *next;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
418 } pst_item_attach;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
419
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
420
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
421 typedef struct pst_item_extra_field {
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
422 char *field_name;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
423 char *value;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
424 struct pst_item_extra_field *next;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
425 } pst_item_extra_field;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
426
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
427
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
428 /** This struct defines a journal entry
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
429 */
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
430 typedef struct pst_item_journal {
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
431 FILETIME *end;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
432 FILETIME *start;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
433 pst_string type;
152
edebaf0e87d2 more code cleanup
Carl Byington <carl@five-ten-sg.com>
parents: 151
diff changeset
434 pst_string description;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
435 } pst_item_journal;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
436
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
437
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
438 /** This struct defines an appointment
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
439 */
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
440 typedef struct pst_item_appointment {
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
441 FILETIME *end;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
442 pst_string location;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
443 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
444 int alarm;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
445 FILETIME *reminder;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
446 int32_t alarm_minutes;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
447 pst_string alarm_filename;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
448 FILETIME *start;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
449 pst_string timezonestring;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
450 /** 0=free, 1=tentative, 2=busy, 3=out of office*/
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
451 int32_t showas;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
452 /** @li 0=None
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
453 @li 1=Important
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
454 @li 2=Business
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
455 @li 3=Personal
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
456 @li 4=Vacation
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
457 @li 5=Must Attend
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
458 @li 6=Travel Required
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
459 @li 7=Needs Preparation
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
460 @li 8=Birthday
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
461 @li 9=Anniversary
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
462 @li 10=Phone Call
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
463 */
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
464 int32_t label;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
465 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
466 int all_day;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
467 /** recurrence description */
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
468 pst_string recurrence;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
469 /** 0=none, 1=daily, 2=weekly, 3=monthly, 4=yearly */
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
470 int32_t recurrence_type;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
471 FILETIME *recurrence_start;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
472 FILETIME *recurrence_end;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
473 } pst_item_appointment;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
474
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
475
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
476 typedef struct pst_item {
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
477 struct pst_item_email *email; // data referring to email
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
478 struct pst_item_folder *folder; // data referring to folder
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
479 struct pst_item_contact *contact; // data referring to contact
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
480 struct pst_item_attach *attach; // linked list of attachments
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
481 struct pst_item_message_store *message_store; // data referring to the message store
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
482 struct pst_item_extra_field *extra_fields; // linked list of extra headers and such
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
483 struct pst_item_journal *journal; // data referring to a journal entry
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
484 struct pst_item_appointment *appointment; // data referring to a calendar entry
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
485 int type;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
486 char *ascii_type;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
487 /** @li 0x01 - Read
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
488 @li 0x02 - Unmodified
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
489 @li 0x04 - Submit
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
490 @li 0x08 - Unsent
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
491 @li 0x10 - Has Attachments
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
492 @li 0x20 - From Me
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
493 @li 0x40 - Associated
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
494 @li 0x80 - Resend
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
495 @li 0x100 - RN Pending
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
496 @li 0x200 - NRN Pending
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
497 */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
498 int32_t flags;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
499 pst_string file_as;
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
500 pst_string comment;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
501 /** null if not specified */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
502 pst_string body_charset;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
503 /** used by email and journal types */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
504 pst_string body;
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
505 /** used by email and journal types */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
506 pst_string subject;
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
507 int32_t internet_cpid;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
508 int32_t message_codepage;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
509 int32_t message_size;
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
510 pst_string outlook_version;
167
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
511 pst_binary record_key;
40e9de445038 improve consistency checking when fetching items from the pst file.
Carl Byington <carl@five-ten-sg.com>
parents: 164
diff changeset
512 pst_binary predecessor_change; // was formerly stored in record_key
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
513 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
514 int response_requested;
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
515 FILETIME *create_date;
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
516 FILETIME *modify_date;
154
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
517 /** 1 = true, 0 = false */
581fab9f1dc7 avoid emitting bogus empty email messages into contacts and calendar files
Carl Byington <carl@five-ten-sg.com>
parents: 153
diff changeset
518 int private_member;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
519 } pst_item;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
520
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
521
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
522 typedef struct pst_x_attrib_ll {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
523 uint32_t type;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
524 uint32_t mytype;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
525 uint32_t map;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
526 void *data;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
527 struct pst_x_attrib_ll *next;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
528 } pst_x_attrib_ll;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
529
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
530
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
531 typedef struct pst_block_recorder {
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
532 struct pst_block_recorder *next;
125
23a36ac0514d recover dropped pragma pack line, use int64_t rather than off_t to avoid forcing users of the shared library to enable large file support.
Carl Byington <carl@five-ten-sg.com>
parents: 123
diff changeset
533 int64_t offset;
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
534 size_t size;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
535 int readcount;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
536 } pst_block_recorder;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
537
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
538
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
539 typedef struct pst_file {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
540 pst_index_ll *i_head, *i_tail;
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
541 pst_desc_ll *d_head, *d_tail;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
542 pst_x_attrib_ll *x_head;
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
543 pst_block_recorder *block_head;
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
544
170
0e1e048716e4 fix bug where we failed to pickup the last extended attribute.
Carl Byington <carl@five-ten-sg.com>
parents: 167
diff changeset
545 /** 0 is 32-bit pst file, pre Outlook 2003;
0e1e048716e4 fix bug where we failed to pickup the last extended attribute.
Carl Byington <carl@five-ten-sg.com>
parents: 167
diff changeset
546 * 1 is 64-bit pst file, Outlook 2003 and later
0e1e048716e4 fix bug where we failed to pickup the last extended attribute.
Carl Byington <carl@five-ten-sg.com>
parents: 167
diff changeset
547 */
0e1e048716e4 fix bug where we failed to pickup the last extended attribute.
Carl Byington <carl@five-ten-sg.com>
parents: 167
diff changeset
548 int do_read64;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
549 uint64_t index1;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
550 uint64_t index1_back;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
551 uint64_t index2;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
552 uint64_t index2_back;
142
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
553 FILE * fp; // file pointer to opened PST file
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
554 uint64_t size; // pst file size
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
555 unsigned char encryption; // pst encryption setting
2189a6b8134e improve character set handling - don't try to convert utf-8 to single byte for fields that were not originally unicode.
Carl Byington <carl@five-ten-sg.com>
parents: 132
diff changeset
556 unsigned char ind_type; // pst index type
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
557 } pst_file;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
558
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
559
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
560 typedef struct pst_block_offset {
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
561 int16_t from;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
562 int16_t to;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
563 } pst_block_offset;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
564
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
565
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
566 typedef struct pst_block_offset_pointer {
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
567 char *from;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
568 char *to;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
569 int needfree;
35
b2f247463b83 better decoding of 7c blocks
carl
parents: 34
diff changeset
570 } pst_block_offset_pointer;
b2f247463b83 better decoding of 7c blocks
carl
parents: 34
diff changeset
571
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
572
153
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
573 typedef struct pst_mapi_element {
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
574 uint32_t mapi_id;
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
575 char *data;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
576 uint32_t type;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
577 size_t size;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
578 char *extra;
153
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
579 } pst_mapi_element;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
580
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
581
153
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
582 typedef struct pst_mapi_object {
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
583 int32_t count_elements; // count of active elements
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
584 int32_t orig_count; // originally allocated elements
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
585 int32_t count_objects; // number of mapi objects in the list
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
586 struct pst_mapi_element **elements;
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
587 struct pst_mapi_object *next;
0b1766da9be8 use AM_ICONV for better portability of the library location.
Carl Byington <carl@five-ten-sg.com>
parents: 152
diff changeset
588 } pst_mapi_object;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
589
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
590
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
591 typedef struct pst_holder {
94
997cf1373f9e fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents: 90
diff changeset
592 char **buf;
997cf1373f9e fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents: 90
diff changeset
593 FILE *fp;
997cf1373f9e fix base64 encoding that could create long lines
Carl Byington <carl@five-ten-sg.com>
parents: 90
diff changeset
594 int base64;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
595 } pst_holder;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
596
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
597
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
598 typedef struct pst_subblock {
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
599 char *buf;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
600 size_t read_size;
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
601 size_t i_offset;
49
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
602 } pst_subblock;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
603
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
604
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
605 typedef struct pst_subblocks {
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
606 size_t subblock_count;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
607 pst_subblock *subs;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
608 } pst_subblocks;
17654fbdf76b more fixes for 64 bit format
carl
parents: 48
diff changeset
609
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
610
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
611 // prototypes
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
612 int pst_open(pst_file *pf, char *name);
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
613 int pst_close(pst_file *pf);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
614 pst_desc_ll * pst_getTopOfFolders(pst_file *pf, pst_item *root);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
615 size_t pst_attach_to_file(pst_file *pf, pst_item_attach *attach, FILE* fp);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
616 size_t pst_attach_to_file_base64(pst_file *pf, pst_item_attach *attach, FILE* fp);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
617 int pst_load_index (pst_file *pf);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
618 pst_desc_ll* pst_getNextDptr(pst_desc_ll* d);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
619 int pst_load_extended_attributes(pst_file *pf);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
620 pst_item* pst_getItem(pst_file *pf, pst_desc_ll *d_ptr);
150
06aa84023b48 rename some structure fields to reflect our better understanding of the pst format
Carl Byington <carl@five-ten-sg.com>
parents: 143
diff changeset
621 pst_item* pst_parse_item (pst_file *pf, pst_desc_ll *d_ptr, pst_id2_ll *m_head);
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
622 void pst_freeItem(pst_item *item);
164
ab384fed78c5 Compensate for iconv conversion to utf-7 that produces strings that are not null terminated.
Carl Byington <carl@five-ten-sg.com>
parents: 154
diff changeset
623 pst_index_ll* pst_getID(pst_file* pf, uint64_t i_id);
79
56fa05fd5271 Patch from Robert Simpson for encryption type 2.
Carl Byington <carl@five-ten-sg.com>
parents: 75
diff changeset
624 int pst_decrypt(uint64_t id, char *buf, size_t size, unsigned char type);
52
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
625 size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t id, char **b);
034641c26ab9 code cleanup
carl
parents: 51
diff changeset
626 size_t pst_ff_getIDblock(pst_file *pf, uint64_t id, char** b);
46
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
627 size_t pst_fwrite(const void*ptr, size_t size, size_t nmemb, FILE*stream);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
628 char * pst_rfc2426_escape(char *str);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
629 char * pst_rfc2425_datetime_format(FILETIME *ft);
b2a7f2e0926a more fixes for 64 bit format
carl
parents: 44
diff changeset
630 char * pst_rfc2445_datetime_format(FILETIME *ft);
43
f6db1f060a95 start on outlook 2003 64 bit format
carl
parents: 41
diff changeset
631
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
632
151
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
633 const char* pst_codepage(int cp);
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
634 const char* pst_default_charset(pst_item *item);
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
635 void pst_convert_utf8_null(pst_item *item, pst_string *str);
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
636 void pst_convert_utf8(pst_item *item, pst_string *str);
cda7c812ec01 track character set individually for each mapi element
Carl Byington <carl@five-ten-sg.com>
parents: 150
diff changeset
637
130
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
638
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
639 // switch from maximal packing back to default packing
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
640 // undo the packing from the beginning of this file
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
641 #ifdef _MSC_VER
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
642 #pragma pack(pop)
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
643 #endif
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
644 #if defined(__GNUC__) || defined (__SUNPRO_C) || defined(__SUNPRO_CC)
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
645 #pragma pack()
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
646 #endif
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
647
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
648
e35fd42bac05 more cleanup of include files
Carl Byington <carl@five-ten-sg.com>
parents: 128
diff changeset
649
182
b65e8d0a088a more cleanup on external names in the shared object file
Carl Byington <carl@five-ten-sg.com>
parents: 176
diff changeset
650 #endif