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.
 
 
 
 
 
 

80 lines
1.9 KiB

  1. /*
  2. * Column defintion 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_COLUMN_DEFINITION_H )
  22. #define _LIBPFF_COLUMN_DEFINITION_H
  23. #include <common.h>
  24. #include <types.h>
  25. #include "libpff_libcerror.h"
  26. #include "libpff_name_to_id_map.h"
  27. #include "libpff_table.h"
  28. #include "libpff_types.h"
  29. #if defined( __cplusplus )
  30. extern "C" {
  31. #endif
  32. typedef struct libpff_column_definition libpff_column_definition_t;
  33. struct libpff_column_definition
  34. {
  35. /* The entry type
  36. */
  37. uint16_t entry_type;
  38. /* The value type
  39. */
  40. uint16_t value_type;
  41. /* The values array entry offset
  42. */
  43. uint16_t values_array_offset;
  44. /* The value array entry size
  45. */
  46. uint16_t values_array_size;
  47. /* The record entry values table
  48. */
  49. libpff_table_t *record_entry_values_table;
  50. /* The name to id map entry
  51. */
  52. libpff_internal_name_to_id_map_entry_t *name_to_id_map_entry;
  53. };
  54. int libpff_column_definition_initialize(
  55. libpff_column_definition_t **column_definition,
  56. libcerror_error_t **error );
  57. int libpff_column_definition_free(
  58. libpff_column_definition_t **column_definition,
  59. libcerror_error_t **error );
  60. #if defined( __cplusplus )
  61. }
  62. #endif
  63. #endif /* !defined( _LIBPFF_COLUMN_DEFINITION_H ) */