1.1 --- a/ucx/ucx.h Mon Mar 06 16:22:42 2017 +0100 1.2 +++ b/ucx/ucx.h Sat Jul 15 19:20:06 2017 +0200 1.3 @@ -40,9 +40,10 @@ 1.4 #define UCX_VERSION_MAJOR 0 1.5 1.6 /** Minor UCX version as integer constant. */ 1.7 -#define UCX_VERSION_MINOR 11 1.8 +#define UCX_VERSION_MINOR 12 1.9 1.10 #include <stdlib.h> 1.11 +#include <stdint.h> 1.12 1.13 #ifdef _WIN32 1.14 #if !(defined __ssize_t_defined || defined _SSIZE_T_) 1.15 @@ -89,6 +90,15 @@ 1.16 typedef int(*cmp_func)(void*,void*,void*); 1.17 1.18 /** 1.19 + * Function pointer to a distance function. 1.20 + * 1.21 + * The distance function shall take three arguments: the two values for which 1.22 + * the distance shall be computed and optional additional data. 1.23 + * The function shall then return the signed distance as integer value. 1.24 + */ 1.25 +typedef intmax_t(*distance_func)(void*,void*,void*); 1.26 + 1.27 +/** 1.28 * Function pointer to a copy function. 1.29 * 1.30 * The copy function shall create a copy of the first argument and may use