1 /* |
1 /* |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 * |
3 * |
4 * Copyright 2013 Olaf Wintermann. All rights reserved. |
4 * Copyright 2015 Olaf Wintermann. All rights reserved. |
5 * |
5 * |
6 * Redistribution and use in source and binary forms, with or without |
6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are met: |
7 * modification, are permitted provided that the following conditions are met: |
8 * |
8 * |
9 * 1. Redistributions of source code must retain the above copyright |
9 * 1. Redistributions of source code must retain the above copyright |
35 |
35 |
36 #ifndef UCX_H |
36 #ifndef UCX_H |
37 #define UCX_H |
37 #define UCX_H |
38 |
38 |
39 /** Major UCX version as integer constant. */ |
39 /** Major UCX version as integer constant. */ |
40 #define UCX_VERSION_MAJOR 1 |
40 #define UCX_VERSION_MAJOR 0 |
41 |
41 |
42 /** Minor UCX version as integer constant. */ |
42 /** Minor UCX version as integer constant. */ |
43 #define UCX_VERSION_MINOR 0 |
43 #define UCX_VERSION_MINOR 9 |
44 |
44 |
45 /** The UCX version in format [major].[minor] */ |
45 /** The UCX version in format [major].[minor] */ |
46 #define UCX_VERSION UCX_VERSION_MAJOR.UCX_VERSION_MINOR |
46 #define UCX_VERSION UCX_VERSION_MAJOR.UCX_VERSION_MINOR |
47 |
47 |
48 #include <stdlib.h> |
48 #include <stdlib.h> |
68 extern "C" { |
68 extern "C" { |
69 #else |
69 #else |
70 /** Pointless in C. */ |
70 /** Pointless in C. */ |
71 #define UCX_EXTERN |
71 #define UCX_EXTERN |
72 #endif |
72 #endif |
|
73 |
|
74 |
|
75 /** |
|
76 * A function pointer to a destructor function. |
|
77 * @see ucx_mempool_setdestr() |
|
78 * @see ucx_mempool_regdestr() |
|
79 */ |
|
80 typedef void(*ucx_destructor)(void*); |
73 |
81 |
74 /** |
82 /** |
75 * Function pointer to a compare function. |
83 * Function pointer to a compare function. |
76 * |
84 * |
77 * The compare function shall take three arguments: the two values that shall be |
85 * The compare function shall take three arguments: the two values that shall be |