forked from pool/libfvalue
Add 0001-Export-libfvalue_value_get_entry.patch
This commit is contained in:
parent
9f14648fd1
commit
6bfe93a57c
51
0001-Export-libfvalue_value_get_entry.patch
Normal file
51
0001-Export-libfvalue_value_get_entry.patch
Normal file
@ -0,0 +1,51 @@
|
||||
From 9829f2df776a28ac373a3235030123bcd902a06f Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
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 | 8 ++++++++
|
||||
libfvalue/libfvalue_value.h | 8 --------
|
||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
Index: libfvalue-20240415/include/libfvalue.h.in
|
||||
===================================================================
|
||||
--- libfvalue-20240415.orig/include/libfvalue.h.in
|
||||
+++ libfvalue-20240415/include/libfvalue.h.in
|
||||
@@ -943,6 +943,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
|
||||
*/
|
||||
Index: libfvalue-20240415/libfvalue/libfvalue_value.h
|
||||
===================================================================
|
||||
--- libfvalue-20240415.orig/libfvalue/libfvalue_value.h
|
||||
+++ libfvalue-20240415/libfvalue/libfvalue_value.h
|
||||
@@ -462,14 +462,6 @@ int libfvalue_value_get_number_of_value_
|
||||
libcerror_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 );
|
||||
-
|
||||
-LIBFVALUE_EXTERN \
|
||||
int libfvalue_value_set_entry(
|
||||
libfvalue_value_t *value,
|
||||
int value_entry_index,
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 2 16:03:42 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Add 0001-Export-libfvalue_value_get_entry.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 15 20:06:32 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user