comparison src/libpst.c @ 215:fef2214083a4 stable-0-6-38

ready for new release
author Carl Byington <carl@five-ten-sg.com>
date Sun, 21 Jun 2009 15:06:37 -0700
parents 94bde95d7e18
children 42b38d65f7e4
comparison
equal deleted inserted replaced
214:7fcff97ca5a9 215:fef2214083a4
273 static pst_desc_tree* pst_getDptr(pst_file *pf, uint64_t d_id); 273 static pst_desc_tree* pst_getDptr(pst_file *pf, uint64_t d_id);
274 static uint64_t pst_getIntAt(pst_file *pf, char *buf); 274 static uint64_t pst_getIntAt(pst_file *pf, char *buf);
275 static uint64_t pst_getIntAtPos(pst_file *pf, int64_t pos); 275 static uint64_t pst_getIntAtPos(pst_file *pf, int64_t pos);
276 static pst_mapi_object* pst_parse_block(pst_file *pf, uint64_t block_id, pst_id2_tree *i2_head); 276 static pst_mapi_object* pst_parse_block(pst_file *pf, uint64_t block_id, pst_id2_tree *i2_head);
277 static void pst_printDptr(pst_file *pf, pst_desc_tree *ptr); 277 static void pst_printDptr(pst_file *pf, pst_desc_tree *ptr);
278 static void pst_printIDptr(pst_file* pf);
279 static void pst_printID2ptr(pst_id2_tree *ptr); 278 static void pst_printID2ptr(pst_id2_tree *ptr);
280 static int pst_process(pst_mapi_object *list, pst_item *item, pst_item_attach *attach); 279 static int pst_process(pst_mapi_object *list, pst_item *item, pst_item_attach *attach);
281 static size_t pst_read_block_size(pst_file *pf, int64_t offset, size_t size, char **buf); 280 static size_t pst_read_block_size(pst_file *pf, int64_t offset, size_t size, char **buf);
282 static int pst_decrypt(uint64_t i_id, char *buf, size_t size, unsigned char type); 281 static int pst_decrypt(uint64_t i_id, char *buf, size_t size, unsigned char type);
283 static int pst_stricmp(char *a, char *b); 282 static int pst_stricmp(char *a, char *b);
3678 } 3677 }
3679 DEBUG_RET(); 3678 DEBUG_RET();
3680 } 3679 }
3681 3680
3682 3681
3683 static void pst_printIDptr(pst_file* pf) {
3684 pst_index_ll *ptr = pf->i_head;
3685 DEBUG_ENT("pst_printIDptr");
3686 while (ptr) {
3687 DEBUG_INFO(("%#"PRIx64" offset=%#"PRIx64" size=%#"PRIx64"\n", ptr->i_id, ptr->offset, ptr->size));
3688 ptr = ptr->next;
3689 }
3690 DEBUG_RET();
3691 }
3692
3693
3694 static void pst_printID2ptr(pst_id2_tree *ptr) { 3682 static void pst_printID2ptr(pst_id2_tree *ptr) {
3695 DEBUG_ENT("pst_printID2ptr"); 3683 DEBUG_ENT("pst_printID2ptr");
3696 while (ptr) { 3684 while (ptr) {
3697 DEBUG_INFO(("%#"PRIx64" id=%#"PRIx64"\n", ptr->id2, (ptr->id ? ptr->id->i_id : (uint64_t)0))); 3685 DEBUG_INFO(("%#"PRIx64" id=%#"PRIx64"\n", ptr->id2, (ptr->id ? ptr->id->i_id : (uint64_t)0)));
3698 if (ptr->child) pst_printID2ptr(ptr->child); 3686 if (ptr->child) pst_printID2ptr(ptr->child);