comparison src/libpst.h @ 176:ac6e22c8a9cf

build separate libpst, libpst-libs, libpst-devel rpms. remove many functions from the interface by making them static.
author Carl Byington <carl@five-ten-sg.com>
date Wed, 08 Apr 2009 14:13:06 -0700
parents 0e1e048716e4
children b65e8d0a088a
comparison
equal deleted inserted replaced
175:03dbd449290f 176:ac6e22c8a9cf
610 610
611 // prototypes 611 // prototypes
612 int pst_open(pst_file *pf, char *name); 612 int pst_open(pst_file *pf, char *name);
613 int pst_close(pst_file *pf); 613 int pst_close(pst_file *pf);
614 pst_desc_ll * pst_getTopOfFolders(pst_file *pf, pst_item *root); 614 pst_desc_ll * pst_getTopOfFolders(pst_file *pf, pst_item *root);
615 size_t pst_attach_to_mem(pst_file *pf, pst_item_attach *attach, char **b);
616 size_t pst_attach_to_file(pst_file *pf, pst_item_attach *attach, FILE* fp); 615 size_t pst_attach_to_file(pst_file *pf, pst_item_attach *attach, FILE* fp);
617 size_t pst_attach_to_file_base64(pst_file *pf, pst_item_attach *attach, FILE* fp); 616 size_t pst_attach_to_file_base64(pst_file *pf, pst_item_attach *attach, FILE* fp);
618 int pst_load_index (pst_file *pf); 617 int pst_load_index (pst_file *pf);
619 pst_desc_ll* pst_getNextDptr(pst_desc_ll* d); 618 pst_desc_ll* pst_getNextDptr(pst_desc_ll* d);
620 int pst_load_extended_attributes(pst_file *pf); 619 int pst_load_extended_attributes(pst_file *pf);
621
622 int pst_build_id_ptr(pst_file *pf, int64_t offset, int32_t depth, uint64_t linku1, uint64_t start_val, uint64_t end_val);
623 int pst_build_desc_ptr(pst_file *pf, int64_t offset, int32_t depth, uint64_t linku1, uint64_t start_val, uint64_t end_val);
624 pst_item* pst_getItem(pst_file *pf, pst_desc_ll *d_ptr); 620 pst_item* pst_getItem(pst_file *pf, pst_desc_ll *d_ptr);
625 pst_item* pst_parse_item (pst_file *pf, pst_desc_ll *d_ptr, pst_id2_ll *m_head); 621 pst_item* pst_parse_item (pst_file *pf, pst_desc_ll *d_ptr, pst_id2_ll *m_head);
626 pst_mapi_object* pst_parse_block(pst_file *pf, uint64_t block_id, pst_id2_ll *i2_head);
627 int pst_process(pst_mapi_object *list, pst_item *item, pst_item_attach *attach);
628 void pst_free_list(pst_mapi_object *list);
629 void pst_freeItem(pst_item *item); 622 void pst_freeItem(pst_item *item);
630 void pst_free_id2(pst_id2_ll * head);
631 void pst_free_id (pst_index_ll *head);
632 void pst_free_desc (pst_desc_ll *head);
633 void pst_free_xattrib(pst_x_attrib_ll *x);
634 int pst_getBlockOffsetPointer(pst_file *pf, pst_id2_ll *i2_head, pst_subblocks *subblocks, uint32_t offset, pst_block_offset_pointer *p);
635 int pst_getBlockOffset(char *buf, size_t read_size, uint32_t i_offset, uint32_t offset, pst_block_offset *p);
636 pst_id2_ll* pst_build_id2(pst_file *pf, pst_index_ll* list);
637 pst_index_ll* pst_getID(pst_file* pf, uint64_t i_id); 623 pst_index_ll* pst_getID(pst_file* pf, uint64_t i_id);
638 pst_id2_ll* pst_getID2(pst_id2_ll * ptr, uint64_t id);
639 pst_desc_ll* pst_getDptr(pst_file *pf, uint64_t d_id);
640 size_t pst_read_block_size(pst_file *pf, int64_t offset, size_t size, char **buf);
641 int pst_decrypt(uint64_t id, char *buf, size_t size, unsigned char type); 624 int pst_decrypt(uint64_t id, char *buf, size_t size, unsigned char type);
642 uint64_t pst_getIntAt(pst_file *pf, char *buf);
643 uint64_t pst_getIntAtPos(pst_file *pf, int64_t pos);
644 size_t pst_getAtPos(pst_file *pf, int64_t pos, void* buf, size_t size);
645 size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t id, char **b); 625 size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t id, char **b);
646 size_t pst_ff_getIDblock(pst_file *pf, uint64_t id, char** b); 626 size_t pst_ff_getIDblock(pst_file *pf, uint64_t id, char** b);
647 size_t pst_ff_getID2block(pst_file *pf, uint64_t id2, pst_id2_ll *id2_head, char** buf);
648 size_t pst_ff_getID2data(pst_file *pf, pst_index_ll *ptr, pst_holder *h);
649 size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, pst_holder *h, size_t size);
650
651 int pst_strincmp(char *a, char *b, size_t x);
652 int pst_stricmp(char *a, char *b);
653 size_t pst_fwrite(const void*ptr, size_t size, size_t nmemb, FILE*stream); 627 size_t pst_fwrite(const void*ptr, size_t size, size_t nmemb, FILE*stream);
654 char * pst_wide_to_single(char *wt, size_t size);
655
656 char * pst_rfc2426_escape(char *str); 628 char * pst_rfc2426_escape(char *str);
657 int pst_chr_count(char *str, char x);
658 char * pst_rfc2425_datetime_format(FILETIME *ft); 629 char * pst_rfc2425_datetime_format(FILETIME *ft);
659 char * pst_rfc2445_datetime_format(FILETIME *ft); 630 char * pst_rfc2445_datetime_format(FILETIME *ft);
660 631
661 void pst_printDptr(pst_file *pf, pst_desc_ll *ptr);
662 void pst_printIDptr(pst_file* pf);
663 void pst_printID2ptr(pst_id2_ll *ptr);
664 632
665 const char* pst_codepage(int cp); 633 const char* pst_codepage(int cp);
666 const char* pst_default_charset(pst_item *item); 634 const char* pst_default_charset(pst_item *item);
667 void pst_convert_utf8_null(pst_item *item, pst_string *str); 635 void pst_convert_utf8_null(pst_item *item, pst_string *str);
668 void pst_convert_utf8(pst_item *item, pst_string *str); 636 void pst_convert_utf8(pst_item *item, pst_string *str);