From 1d656aff518359db9a9ce90261cdea5ade402036 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Tue, 25 Feb 2025 18:14:45 +0800 Subject: [PATCH] Remove RZ_NULLABLE from RzSearchFindBytesCallback function pointer type (#4929) * Remove RZ_NULLABLE from RzSearchFindBytesCallback function pointer type * Add doxygen for fopt param of RzSearchFindBytesCallback --- librz/search/search_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librz/search/search_internal.h b/librz/search/search_internal.h index f9770ed1336..e4bc7312f92 100644 --- a/librz/search/search_internal.h +++ b/librz/search/search_internal.h @@ -62,6 +62,7 @@ typedef bool (*RzSearchIsEmptyCallback)(void *user); /** * \brief A callback checking a chunk of bytes if it matches the search criteria. * + * \param fopt The find() search options. * \param user The private user data. * \param address The address associated with the given bytes. * \param buffer The bytes buffer. @@ -70,7 +71,7 @@ typedef bool (*RzSearchIsEmptyCallback)(void *user); * \return True, if a match was found. * \return False otherwise. */ -typedef bool (*RzSearchFindBytesCallback)(RZ_NULLABLE RzSearchFindOpt *fopt, void *user, ut64 address, const RzBuffer *buffer, RZ_OUT RzThreadQueue *hits); +typedef bool (*RzSearchFindBytesCallback)(RzSearchFindOpt *fopt, void *user, ut64 address, const RzBuffer *buffer, RZ_OUT RzThreadQueue *hits); /** * \brief A callback to search a graph for a pattern.