Skip to content

Commit

Permalink
Worked on format support
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Apr 27, 2024
1 parent 7eaa314 commit 669286b
Show file tree
Hide file tree
Showing 18 changed files with 1,198 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ stamp-h[1-9]
/setup.cfg
/tests/*.exe
/tests/fwevt_test_channel
/tests/fwevt_test_date_time
/tests/fwevt_test_error
/tests/fwevt_test_event
/tests/fwevt_test_keyword
Expand Down
4 changes: 3 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
TODO
* add pyfwevt_xml_value
* add pyfwevt_xml_document, pyfwevt_xml_tag and pyfwevt_xml_value

* remove deprecated API functions

* Replace libfvalue by native functions
** Check use of libfwevt_xml_tag_get_value
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[libfwevt],
[20240426],
[20240427],
[joachim.metz@gmail.com])

AC_CONFIG_SRCDIR(
Expand Down
53 changes: 46 additions & 7 deletions include/libfwevt.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1078,34 +1078,73 @@ int libfwevt_xml_value_copy_data(
libfwevt_error_t **error );

/* Copies the value data to an 8-bit value
* Returns 1 if successful, 0 if size value not be retrieved or -1 on error
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_DEPRECATED \
LIBFWEVT_EXTERN \
int libfwevt_xml_value_copy_to_8bit(
libfwevt_xml_value_t *xml_value,
uint8_t *value_8bit,
libfwevt_error_t **error );

/* Copies the value data to an 32-bit value
* Returns 1 if successful, 0 if size value not be retrieved or -1 on error
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_DEPRECATED \
LIBFWEVT_EXTERN \
int libfwevt_xml_value_copy_to_32bit(
libfwevt_xml_value_t *xml_value,
uint32_t *value_32bit,
libfwevt_error_t **error );

/* Copies the value data to an 64-bit value
* Returns 1 if successful, 0 if size value not be retrieved or -1 on error
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_DEPRECATED \
LIBFWEVT_EXTERN \
int libfwevt_xml_value_copy_to_64bit(
libfwevt_xml_value_t *xml_value,
uint64_t *value_64bit,
libfwevt_error_t **error );

/* Retrieves the value data as a 8-bit integer value
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_value_get_data_as_8bit_integer(
libfwevt_xml_value_t *xml_value,
uint8_t *value_8bit,
libfwevt_error_t **error );

/* Retrieves the value data as a 32-bit integer value
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_value_get_data_as_32bit_integer(
libfwevt_xml_value_t *xml_value,
uint32_t *value_32bit,
libfwevt_error_t **error );

/* Retrieves the value data as a 64-bit integer value
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_value_get_data_as_64bit_integer(
libfwevt_xml_value_t *xml_value,
uint64_t *value_64bit,
libfwevt_error_t **error );

/* Retrieves the value data as a 64-bit FILETIME value
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_value_get_data_as_filetime(
libfwevt_xml_value_t *xml_value,
uint64_t *filetime,
libfwevt_error_t **error );

/* Retrieves the size of an UTF-8 encoded string of the value data
* Returns 1 if successful, 0 if size value not be retrieved or -1 on error
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_xml_value_get_utf8_string_size(
Expand All @@ -1114,7 +1153,7 @@ int libfwevt_xml_value_get_utf8_string_size(
libfwevt_error_t **error );

/* Copies the value data to an UTF-8 encoded string
* Returns 1 if successful, 0 if size value not be retrieved or -1 on error
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_xml_value_copy_to_utf8_string(
Expand All @@ -1124,7 +1163,7 @@ int libfwevt_xml_value_copy_to_utf8_string(
libfwevt_error_t **error );

/* Retrieves the size of an UTF-16 encoded string of the value data
* Returns 1 if successful, 0 if size value not be retrieved or -1 on error
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_xml_value_get_utf16_string_size(
Expand All @@ -1133,7 +1172,7 @@ int libfwevt_xml_value_get_utf16_string_size(
libfwevt_error_t **error );

/* Copies the value data to an UTF-16 encoded string
* Returns 1 if successful, 0 if size value not be retrieved or -1 on error
* Returns 1 if successful, 0 if value not be retrieved or -1 on error
*/
LIBFWEVT_EXTERN \
int libfwevt_xml_value_copy_to_utf16_string(
Expand Down
1 change: 1 addition & 0 deletions libfwevt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ libfwevt_la_SOURCES = \
fwevt_template.h \
libfwevt.c \
libfwevt_channel.c libfwevt_channel.h \
libfwevt_date_time.c libfwevt_date_time.h \
libfwevt_debug.c libfwevt_debug.h \
libfwevt_definitions.h \
libfwevt_extern.h \
Expand Down
Loading

0 comments on commit 669286b

Please sign in to comment.