2 Copyright 2012 David Robillard <http://drobilla.net>
4 Permission to use, copy, modify, and/or distribute this software for any
5 purpose with or without fee is hereby granted, provided that the above
6 copyright notice and this permission notice appear in all copies.
8 THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28 # define ZIX_LIB_IMPORT __declspec(dllimport)
29 # define ZIX_LIB_EXPORT __declspec(dllexport)
31 # define ZIX_LIB_IMPORT __attribute__((visibility("default")))
32 # define ZIX_LIB_EXPORT __attribute__((visibility("default")))
35 # define ZIX_API ZIX_LIB_EXPORT
37 # define ZIX_API ZIX_LIB_IMPORT
39 # define ZIX_PRIVATE static
40 #elif defined(ZIX_INLINE)
41 # define ZIX_API static inline
42 # define ZIX_PRIVATE static inline
45 # define ZIX_PRIVATE static
66 Function for comparing two elements.
68 typedef int (*ZixComparator
)(const void* a
, const void* b
, void* user_data
);
71 Function for testing equality of two elements.
73 typedef bool (*ZixEqualFunc
)(const void* a
, const void* b
);
76 Function to destroy an element.
78 typedef void (*ZixDestroyFunc
)(void* ptr
);
88 #endif /* ZIX_COMMON_H */