comparison src/libpst.h @ 31:b88ceb81dba2

mege changes from Joe Nahmias
author carl
date Tue, 10 Jul 2007 17:17:28 -0700
parents 51d826f31329
children 07177825c91b
comparison
equal deleted inserted replaced
30:45eccad4b606 31:b88ceb81dba2
376 FILETIME *reminder; 376 FILETIME *reminder;
377 FILETIME *start; 377 FILETIME *start;
378 char *timezonestring; 378 char *timezonestring;
379 int32_t showas; 379 int32_t showas;
380 int32_t label; 380 int32_t label;
381 int32_t all_day;
381 } pst_item_appointment; 382 } pst_item_appointment;
382 383
383 typedef struct _pst_item { 384 typedef struct _pst_item {
384 struct _pst_item_email *email; // data reffering to email 385 struct _pst_item_email *email; // data reffering to email
385 struct _pst_item_folder *folder; // data reffering to folder 386 struct _pst_item_folder *folder; // data reffering to folder
418 pst_x_attrib_ll *x_head; 419 pst_x_attrib_ll *x_head;
419 int32_t index1; 420 int32_t index1;
420 int32_t index1_count; 421 int32_t index1_count;
421 int32_t index2; 422 int32_t index2;
422 int32_t index2_count; 423 int32_t index2_count;
423 FILE * fp; 424 FILE * fp; // file pointer to opened PST file
424 size_t size; 425 size_t size; // pst file size
425 unsigned char encryption; 426 unsigned char encryption; // pst encryption setting
426 unsigned char ind_type; 427 unsigned char ind_type; // pst index type
427 } pst_file; 428 } pst_file;
428 429
429 typedef struct _pst_block_offset { 430 typedef struct _pst_block_offset {
430 int16_t from; 431 int16_t from;
431 int16_t to; 432 int16_t to;
475 void _pst_freeItem(pst_item *item); 476 void _pst_freeItem(pst_item *item);
476 int32_t _pst_free_id2(pst_index2_ll * head); 477 int32_t _pst_free_id2(pst_index2_ll * head);
477 int32_t _pst_free_id (pst_index_ll *head); 478 int32_t _pst_free_id (pst_index_ll *head);
478 int32_t _pst_free_desc (pst_desc_ll *head); 479 int32_t _pst_free_desc (pst_desc_ll *head);
479 int32_t _pst_free_xattrib(pst_x_attrib_ll *x); 480 int32_t _pst_free_xattrib(pst_x_attrib_ll *x);
480 int32_t _pst_getBlockOffset(char *buf, int32_t read_size, int32_t i_offset, int32_t offset, pst_block_offset *p); 481 int32_t _pst_getBlockOffset(unsigned char *buf, int32_t read_size, int32_t i_offset, int32_t offset, pst_block_offset *p);
481 pst_index2_ll * _pst_build_id2(pst_file *pf, pst_index_ll* list, pst_index2_ll* head_ptr); 482 pst_index2_ll * _pst_build_id2(pst_file *pf, pst_index_ll* list, pst_index2_ll* head_ptr);
482 pst_index_ll * _pst_getID(pst_file* pf, u_int32_t id); 483 pst_index_ll * _pst_getID(pst_file* pf, u_int32_t id);
483 pst_index_ll * _pst_getID2(pst_index2_ll * ptr, u_int32_t id); 484 pst_index_ll * _pst_getID2(pst_index2_ll * ptr, u_int32_t id);
484 pst_desc_ll * _pst_getDptr(pst_file *pf, u_int32_t id); 485 pst_desc_ll * _pst_getDptr(pst_file *pf, u_int32_t id);
485 size_t _pst_read_block_size(pst_file *pf, int32_t offset, size_t size, char ** buf, int32_t do_enc, 486 size_t _pst_read_block_size(pst_file *pf, int32_t offset, size_t size, char ** buf, int32_t do_enc,