ObjFW  Diff

Differences From Artifact [d688a725dd]:

To Artifact [cdb36b51da]:


23
24
25
26
27
28
29
30

31
32

33
34

35
36

37
38
39
40
41
42
43
23
24
25
26
27
28
29

30
31

32
33

34
35

36
37
38
39
40
41
42
43







-
+

-
+

-
+

-
+








/*!
 * @struct of_map_table_functions_t OFMapTable.h ObjFW/OFMapTable.h
 *
 * @brief A struct describing the functions to be used by the map table.
 */
typedef struct {
	/// The function to retain keys / objects
	/*! The function to retain keys / objects */
	void *_Nonnull (*_Nullable retain)(void *object);
	/// The function to release keys / objects
	/*! The function to release keys / objects */
	void (*_Nullable release)(void *object);
	/// The function to hash keys
	/*! The function to hash keys */
	uint32_t (*_Nullable hash)(void *object);
	/// The function to compare keys / objects
	/*! The function to compare keys / objects */
	bool (*_Nullable equal)(void *object1, void *object2);
} of_map_table_functions_t;

#ifdef OF_HAVE_BLOCKS
/*!
 * @brief A block for enumerating an OFMapTable.
 *