comparison src/libpst.h @ 51:06c0262ad689 stable-0-6-5

code cleanup
author carl
date Tue, 22 Jan 2008 14:39:02 -0800
parents fb3818370dd6
children 034641c26ab9
comparison
equal deleted inserted replaced
50:fb3818370dd6 51:06c0262ad689
281 int subfolder; // 1 = true, 0 = false 281 int subfolder; // 1 = true, 0 = false
282 } pst_item_folder; 282 } pst_item_folder;
283 283
284 284
285 typedef struct pst_item_message_store { 285 typedef struct pst_item_message_store {
286 pst_entryid *deleted_items_folder; 286 pst_entryid *top_of_personal_folder; // 0x35e0
287 pst_entryid *search_root_folder; 287 pst_entryid *default_outbox_folder; // 0x35e2
288 pst_entryid *top_of_personal_folder; 288 pst_entryid *deleted_items_folder; // 0x35e3
289 pst_entryid *top_of_folder; 289 pst_entryid *sent_items_folder; // 0x35e4
290 int32_t valid_mask; // what folders the message store contains 290 pst_entryid *user_views_folder; // 0x35e5
291 int32_t pwd_chksum; 291 pst_entryid *common_view_folder; // 0x35e6
292 pst_entryid *search_root_folder; // 0x35e7
293 pst_entryid *top_of_folder; // 0x7c07
294 int32_t valid_mask; // 0x35df // what folders the message store contains
295 int32_t pwd_chksum; // 0x76ff
292 } pst_item_message_store; 296 } pst_item_message_store;
293 297
294 298
295 typedef struct pst_item_contact { 299 typedef struct pst_item_contact {
296 char *access_method; 300 char *access_method;
309 char *address3_transport; 313 char *address3_transport;
310 char *assistant_name; 314 char *assistant_name;
311 char *assistant_phone; 315 char *assistant_phone;
312 char *billing_information; 316 char *billing_information;
313 FILETIME *birthday; 317 FILETIME *birthday;
314 char *business_address; 318 char *business_address; // 0x801b
315 char *business_city; 319 char *business_city;
316 char *business_country; 320 char *business_country;
317 char *business_fax; 321 char *business_fax;
318 char *business_homepage; 322 char *business_homepage;
319 char *business_phone; 323 char *business_phone;
334 char *first_name; 338 char *first_name;
335 char *followup; 339 char *followup;
336 char *free_busy_address; 340 char *free_busy_address;
337 char *ftp_site; 341 char *ftp_site;
338 char *fullname; 342 char *fullname;
339 int32_t gender; 343 int16_t gender;
340 char *gov_id; 344 char *gov_id;
341 char *hobbies; 345 char *hobbies;
342 char *home_address; 346 char *home_address; // 0x801a
343 char *home_city; 347 char *home_city;
344 char *home_country; 348 char *home_country;
345 char *home_fax; 349 char *home_fax;
346 char *home_phone; 350 char *home_phone;
347 char *home_phone2; 351 char *home_phone2;
353 char *isdn_phone; 357 char *isdn_phone;
354 char *job_title; 358 char *job_title;
355 char *keyword; 359 char *keyword;
356 char *language; 360 char *language;
357 char *location; 361 char *location;
358 int mail_permission; // 1 = true, 0 = false 362 int mail_permission; // 1 = true, 0 = false
359 char *manager_name; 363 char *manager_name;
360 char *middle_name; 364 char *middle_name;
361 char *mileage; 365 char *mileage;
362 char *mobile_phone; 366 char *mobile_phone;
363 char *nickname; 367 char *nickname;
364 char *office_loc; 368 char *office_loc;
365 char *org_id; 369 char *org_id;
366 char *other_address; 370 char *other_address; // 0x801c
367 char *other_city; 371 char *other_city;
368 char *other_country; 372 char *other_country;
369 char *other_phone; 373 char *other_phone;
370 char *other_po_box; 374 char *other_po_box;
371 char *other_postal_code; 375 char *other_postal_code;
376 char *pref_name; 380 char *pref_name;
377 char *primary_fax; 381 char *primary_fax;
378 char *primary_phone; 382 char *primary_phone;
379 char *profession; 383 char *profession;
380 char *radio_phone; 384 char *radio_phone;
381 int rich_text; // 1 = true, 0 = false 385 int rich_text; // 1 = true, 0 = false
382 char *spouse_name; 386 char *spouse_name;
383 char *suffix; 387 char *suffix;
384 char *surname; 388 char *surname;
385 char *telex; 389 char *telex;
386 char *transmittable_display_name; 390 char *transmittable_display_name;
387 char *ttytdd_phone; 391 char *ttytdd_phone;
388 FILETIME *wedding_anniversary; 392 FILETIME *wedding_anniversary;
393 char *work_address_street; // 0x8045
394 char *work_address_city; // 0x8046
395 char *work_address_state; // 0x8047
396 char *work_address_postalcode; // 0x8048
397 char *work_address_country; // 0x8049
398 char *work_address_postofficebox; // 0x804a
389 } pst_item_contact; 399 } pst_item_contact;
390 400
391 401
392 typedef struct pst_item_attach { 402 typedef struct pst_item_attach {
393 char *filename1; 403 char *filename1;
571 int pst_getBlockOffset(unsigned char *buf, size_t read_size, uint32_t i_offset, uint32_t offset, pst_block_offset *p); 581 int pst_getBlockOffset(unsigned char *buf, size_t read_size, uint32_t i_offset, uint32_t offset, pst_block_offset *p);
572 pst_index2_ll* pst_build_id2(pst_file *pf, pst_index_ll* list, pst_index2_ll* head_ptr); 582 pst_index2_ll* pst_build_id2(pst_file *pf, pst_index_ll* list, pst_index2_ll* head_ptr);
573 pst_index_ll* pst_getID(pst_file* pf, uint64_t id); 583 pst_index_ll* pst_getID(pst_file* pf, uint64_t id);
574 pst_index_ll* pst_getID2(pst_index2_ll * ptr, uint64_t id); 584 pst_index_ll* pst_getID2(pst_index2_ll * ptr, uint64_t id);
575 pst_desc_ll* pst_getDptr(pst_file *pf, uint64_t id); 585 pst_desc_ll* pst_getDptr(pst_file *pf, uint64_t id);
576 size_t pst_read_block_size(pst_file *pf, off_t offset, size_t size, char **buf, int32_t do_enc, unsigned char is_index); 586 size_t pst_read_block_size(pst_file *pf, off_t offset, size_t size, char **buf);
577 int pst_decrypt(unsigned char *buf, size_t size, unsigned char type); 587 int pst_decrypt(unsigned char *buf, size_t size, unsigned char type);
578 uint64_t pst_getIntAt(pst_file *pf, char *buf); 588 uint64_t pst_getIntAt(pst_file *pf, char *buf);
579 uint64_t pst_getIntAtPos(pst_file *pf, off_t pos); 589 uint64_t pst_getIntAtPos(pst_file *pf, off_t pos);
580 int pst_getAtPos(FILE *fp, off_t pos, void* buf, size_t size); 590 int pst_getAtPos(FILE *fp, off_t pos, void* buf, size_t size);
581 int pst_get (FILE *fp, void *buf, size_t size);
582 size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t id, unsigned char **b); 591 size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t id, unsigned char **b);
583 size_t pst_ff_getIDblock(pst_file *pf, uint64_t id, unsigned char** b); 592 size_t pst_ff_getIDblock(pst_file *pf, uint64_t id, unsigned char** b);
584 size_t pst_ff_getID2block(pst_file *pf, uint64_t id2, pst_index2_ll *id2_head, unsigned char** buf); 593 size_t pst_ff_getID2block(pst_file *pf, uint64_t id2, pst_index2_ll *id2_head, unsigned char** buf);
585 size_t pst_ff_getID2data(pst_file *pf, pst_index_ll *ptr, pst_holder *h); 594 size_t pst_ff_getID2data(pst_file *pf, pst_index_ll *ptr, pst_holder *h);
586 size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, pst_holder *h, size_t size); 595 size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, pst_holder *h, size_t size);
593 char * pst_rfc2426_escape(char *str); 602 char * pst_rfc2426_escape(char *str);
594 int pst_chr_count(char *str, char x); 603 int pst_chr_count(char *str, char x);
595 char * pst_rfc2425_datetime_format(FILETIME *ft); 604 char * pst_rfc2425_datetime_format(FILETIME *ft);
596 char * pst_rfc2445_datetime_format(FILETIME *ft); 605 char * pst_rfc2445_datetime_format(FILETIME *ft);
597 606
598 int32_t pst_printDptr(pst_file *pf); 607 void pst_printDptr(pst_file *pf, pst_desc_ll *ptr);
599 int32_t pst_printIDptr(pst_file* pf); 608 void pst_printIDptr(pst_file* pf);
600 int32_t pst_printID2ptr(pst_index2_ll *ptr); 609 void pst_printID2ptr(pst_index2_ll *ptr);
601 610
602 #endif // defined LIBPST_H 611 #endif // defined LIBPST_H