ucx/cx/common.h

branch
newapi
changeset 253
087cc9216f28
parent 174
0358f1d9c506
equal deleted inserted replaced
252:7d176764756d 253:087cc9216f28
31 * 31 *
32 * \brief Common definitions and feature checks. 32 * \brief Common definitions and feature checks.
33 * 33 *
34 * \author Mike Becker 34 * \author Mike Becker
35 * \author Olaf Wintermann 35 * \author Olaf Wintermann
36 * \version 3.0
37 * \copyright 2-Clause BSD License 36 * \copyright 2-Clause BSD License
38 * 37 *
39 * \mainpage UAP Common Extensions 38 * \mainpage UAP Common Extensions
40 * Library with common and useful functions, macros and data structures. 39 * Library with common and useful functions, macros and data structures.
41 * <p> 40 * <p>
82 81
83 /** Major UCX version as integer constant. */ 82 /** Major UCX version as integer constant. */
84 #define UCX_VERSION_MAJOR 3 83 #define UCX_VERSION_MAJOR 3
85 84
86 /** Minor UCX version as integer constant. */ 85 /** Minor UCX version as integer constant. */
87 #define UCX_VERSION_MINOR 0 86 #define UCX_VERSION_MINOR 1
88 87
89 /** Version constant which ensures to increase monotonically. */ 88 /** Version constant which ensures to increase monotonically. */
90 #define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR) 89 #define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR)
91 90
92 // Common Includes 91 // Common Includes
95 #include <stddef.h> 94 #include <stddef.h>
96 #include <stdbool.h> 95 #include <stdbool.h>
97 #include <stdint.h> 96 #include <stdint.h>
98 #include <sys/types.h> 97 #include <sys/types.h>
99 98
99 #ifndef UCX_TEST_H
100 /** 100 /**
101 * Function pointer compatible with fwrite-like functions. 101 * Function pointer compatible with fwrite-like functions.
102 */ 102 */
103 typedef size_t (*cx_write_func)( 103 typedef size_t (*cx_write_func)(
104 void const *, 104 void const *,
105 size_t, 105 size_t,
106 size_t, 106 size_t,
107 void * 107 void *
108 ); 108 );
109 #endif // UCX_TEST_H
109 110
110 /** 111 /**
111 * Function pointer compatible with fread-like functions. 112 * Function pointer compatible with fread-like functions.
112 */ 113 */
113 typedef size_t (*cx_read_func)( 114 typedef size_t (*cx_read_func)(

mercurial