Mercurial > libpst
comparison src/libpst.h @ 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.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 03 Feb 2009 15:01:47 -0800 |
parents | ab2a11e72250 |
children | 7f747c8c9d02 |
comparison
equal
deleted
inserted
replaced
124:cbf63dd3f109 | 125:23a36ac0514d |
---|---|
458 } pst_x_attrib_ll; | 458 } pst_x_attrib_ll; |
459 | 459 |
460 | 460 |
461 typedef struct pst_block_recorder { | 461 typedef struct pst_block_recorder { |
462 struct pst_block_recorder *next; | 462 struct pst_block_recorder *next; |
463 uint64_t offset; | 463 int64_t offset; |
464 size_t size; | 464 size_t size; |
465 int readcount; | 465 int readcount; |
466 } pst_block_recorder; | 466 } pst_block_recorder; |
467 | 467 |
468 | 468 |
547 size_t pst_attach_to_file_base64(pst_file *pf, pst_item_attach *attach, FILE* fp); | 547 size_t pst_attach_to_file_base64(pst_file *pf, pst_item_attach *attach, FILE* fp); |
548 int pst_load_index (pst_file *pf); | 548 int pst_load_index (pst_file *pf); |
549 pst_desc_ll* pst_getNextDptr(pst_desc_ll* d); | 549 pst_desc_ll* pst_getNextDptr(pst_desc_ll* d); |
550 int pst_load_extended_attributes(pst_file *pf); | 550 int pst_load_extended_attributes(pst_file *pf); |
551 | 551 |
552 int pst_build_id_ptr(pst_file *pf, uint64_t offset, int32_t depth, uint64_t linku1, uint64_t start_val, uint64_t end_val); | 552 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); |
553 int pst_build_desc_ptr(pst_file *pf, uint64_t offset, int32_t depth, uint64_t linku1, uint64_t start_val, uint64_t end_val); | 553 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); |
554 pst_item* pst_getItem(pst_file *pf, pst_desc_ll *d_ptr); | 554 pst_item* pst_getItem(pst_file *pf, pst_desc_ll *d_ptr); |
555 pst_item* pst_parse_item (pst_file *pf, pst_desc_ll *d_ptr); | 555 pst_item* pst_parse_item (pst_file *pf, pst_desc_ll *d_ptr); |
556 pst_num_array* pst_parse_block(pst_file *pf, uint64_t block_id, pst_index2_ll *i2_head, pst_num_array *na_head); | 556 pst_num_array* pst_parse_block(pst_file *pf, uint64_t block_id, pst_index2_ll *i2_head, pst_num_array *na_head); |
557 int pst_process(pst_num_array *list, pst_item *item, pst_item_attach *attach); | 557 int pst_process(pst_num_array *list, pst_item *item, pst_item_attach *attach); |
558 void pst_free_list(pst_num_array *list); | 558 void pst_free_list(pst_num_array *list); |
565 int pst_getBlockOffset(char *buf, size_t read_size, uint32_t i_offset, uint32_t offset, pst_block_offset *p); | 565 int pst_getBlockOffset(char *buf, size_t read_size, uint32_t i_offset, uint32_t offset, pst_block_offset *p); |
566 pst_index2_ll* pst_build_id2(pst_file *pf, pst_index_ll* list, pst_index2_ll* head_ptr); | 566 pst_index2_ll* pst_build_id2(pst_file *pf, pst_index_ll* list, pst_index2_ll* head_ptr); |
567 pst_index_ll* pst_getID(pst_file* pf, uint64_t id); | 567 pst_index_ll* pst_getID(pst_file* pf, uint64_t id); |
568 pst_index_ll* pst_getID2(pst_index2_ll * ptr, uint64_t id); | 568 pst_index_ll* pst_getID2(pst_index2_ll * ptr, uint64_t id); |
569 pst_desc_ll* pst_getDptr(pst_file *pf, uint64_t id); | 569 pst_desc_ll* pst_getDptr(pst_file *pf, uint64_t id); |
570 size_t pst_read_block_size(pst_file *pf, uint64_t offset, size_t size, char **buf); | 570 size_t pst_read_block_size(pst_file *pf, int64_t offset, size_t size, char **buf); |
571 int pst_decrypt(uint64_t id, char *buf, size_t size, unsigned char type); | 571 int pst_decrypt(uint64_t id, char *buf, size_t size, unsigned char type); |
572 uint64_t pst_getIntAt(pst_file *pf, char *buf); | 572 uint64_t pst_getIntAt(pst_file *pf, char *buf); |
573 uint64_t pst_getIntAtPos(pst_file *pf, uint64_t pos); | 573 uint64_t pst_getIntAtPos(pst_file *pf, int64_t pos); |
574 size_t pst_getAtPos(pst_file *pf, uint64_t pos, void* buf, size_t size); | 574 size_t pst_getAtPos(pst_file *pf, int64_t pos, void* buf, size_t size); |
575 size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t id, char **b); | 575 size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t id, char **b); |
576 size_t pst_ff_getIDblock(pst_file *pf, uint64_t id, char** b); | 576 size_t pst_ff_getIDblock(pst_file *pf, uint64_t id, char** b); |
577 size_t pst_ff_getID2block(pst_file *pf, uint64_t id2, pst_index2_ll *id2_head, char** buf); | 577 size_t pst_ff_getID2block(pst_file *pf, uint64_t id2, pst_index2_ll *id2_head, char** buf); |
578 size_t pst_ff_getID2data(pst_file *pf, pst_index_ll *ptr, pst_holder *h); | 578 size_t pst_ff_getID2data(pst_file *pf, pst_index_ll *ptr, pst_holder *h); |
579 size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, pst_holder *h, size_t size); | 579 size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, pst_holder *h, size_t size); |