diff --git a/0001-Export-libfvalue_value_get_entry.patch b/0001-Export-libfvalue_value_get_entry.patch new file mode 100644 index 0000000..f63a06b --- /dev/null +++ b/0001-Export-libfvalue_value_get_entry.patch @@ -0,0 +1,77 @@ +From 9829f2df776a28ac373a3235030123bcd902a06f Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sat, 2 Nov 2024 16:36:19 +0100 +Subject: [PATCH] Export libfvalue_value_get_entry + +`libfvalue_value_get_entry`` is used externally, by libesedb. Hence, +it needs to be exported for DLLs to work correctly. This patch +corrects that problem. +--- + include/libfvalue.h.in | 33 +++++++++++++++++++++++++++++++++ + 1 file changed, 33 insertions(+) + +Index: libfvalue-20240415/include/libfvalue.h.in +=================================================================== +--- libfvalue-20240415.orig/include/libfvalue.h.in ++++ libfvalue-20240415/include/libfvalue.h.in +@@ -210,6 +210,14 @@ int libfvalue_data_handle_set_value_entr + int encoding, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_data_handle_append_value_entry( ++ libfvalue_data_handle_t *data_handle, ++ int *value_entry_index, ++ size_t value_entry_offset, ++ size_t value_entry_size, ++ libcerror_error_t **error ); ++ + /* Appends a value entry + * Returns if successful or -1 on error + */ +@@ -943,6 +951,14 @@ int libfvalue_value_get_number_of_value_ + int *number_of_value_entries, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_value_get_entry( ++ libfvalue_value_t *value, ++ int value_entry_index, ++ size_t *entry_data_offset, ++ size_t *entry_data_size, ++ libcerror_error_t **error ); ++ + /* Retrieves the entry data + * Returns 1 if successful, 0 if the value has no data or -1 on error + */ +@@ -967,6 +983,14 @@ int libfvalue_value_set_entry_data( + int encoding, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_value_append_entry( ++ libfvalue_value_t *value, ++ int *value_entry_index, ++ size_t entry_data_offset, ++ size_t entry_data_size, ++ libcerror_error_t **error ); ++ + /* Appends the entry data + * Returns 1 if successful or -1 on error + */ +@@ -979,6 +1003,15 @@ int libfvalue_value_append_entry_data( + int encoding, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_value_copy_entry_data( ++ libfvalue_value_t *value, ++ int value_entry_index, ++ uint8_t *entry_data, ++ size_t entry_data_size, ++ int *encoding, ++ libcerror_error_t **error ); ++ + /* Copies the value data from a boolean value + * Returns 1 if successful, 0 if value could not be set or -1 on error + */ diff --git a/libfvalue.changes b/libfvalue.changes index 4a12007..be0a6ba 100644 --- a/libfvalue.changes +++ b/libfvalue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 2 16:03:42 UTC 2024 - Jan Engelhardt + +- Add 0001-Export-libfvalue_value_get_entry.patch + ------------------------------------------------------------------- Mon Apr 15 20:06:32 UTC 2024 - Jan Engelhardt diff --git a/libfvalue.spec b/libfvalue.spec index 9948319..d297f0a 100644 --- a/libfvalue.spec +++ b/libfvalue.spec @@ -27,6 +27,7 @@ URL: https://github.com/libyal/libfvalue Source: https://github.com/libyal/libfvalue/releases/download/%version/libfvalue-experimental-%version.tar.gz Source2: https://github.com/libyal/libfvalue/releases/download/%version/libfvalue-experimental-%version.tar.gz.asc Source9: %name.keyring +Patch1: 0001-Export-libfvalue_value_get_entry.patch BuildRequires: c_compiler BuildRequires: pkg-config BuildRequires: pkgconfig(libcdata) >= 20240414