You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
2.1 KiB

  1. /*
  2. * Attachment functions
  3. *
  4. * Copyright (C) 2008-2019, Joachim Metz <joachim.metz@gmail.com>
  5. *
  6. * Refer to AUTHORS for acknowledgements.
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. */
  21. #if !defined( _LIBPFF_ATTACHMENT_H )
  22. #define _LIBPFF_ATTACHMENT_H
  23. #include <common.h>
  24. #include <types.h>
  25. #include "libpff_extern.h"
  26. #include "libpff_item.h"
  27. #include "libpff_libbfio.h"
  28. #include "libpff_libcerror.h"
  29. #include "libpff_types.h"
  30. #if defined( __cplusplus )
  31. extern "C" {
  32. #endif
  33. LIBPFF_EXTERN \
  34. int libpff_attachment_get_type(
  35. libpff_item_t *attachment,
  36. int *attachment_type,
  37. libcerror_error_t **error );
  38. LIBPFF_EXTERN \
  39. int libpff_attachment_get_data_size(
  40. libpff_item_t *attachment,
  41. size64_t *size,
  42. libcerror_error_t **error );
  43. LIBPFF_EXTERN \
  44. ssize_t libpff_attachment_data_read_buffer(
  45. libpff_item_t *attachment,
  46. uint8_t *buffer,
  47. size_t buffer_size,
  48. libcerror_error_t **error );
  49. LIBPFF_EXTERN \
  50. off64_t libpff_attachment_data_seek_offset(
  51. libpff_item_t *attachment,
  52. off64_t offset,
  53. int whence,
  54. libcerror_error_t **error );
  55. LIBPFF_EXTERN \
  56. int libpff_attachment_get_data_file_io_handle(
  57. libpff_item_t *attachment,
  58. libbfio_handle_t **file_io_handle,
  59. libcerror_error_t **error );
  60. LIBPFF_EXTERN \
  61. int libpff_attachment_get_item(
  62. libpff_item_t *attachment,
  63. libpff_item_t **attached_item,
  64. libcerror_error_t **error );
  65. #if defined( __cplusplus )
  66. }
  67. #endif
  68. #endif /* !defined( _LIBPFF_ATTACHMENT_H ) */