diff options
author | David Robillard <d@drobilla.net> | 2012-08-09 03:51:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-09 03:51:27 +0000 |
commit | 7b21b438b02d8ff14ae079a0734b1a9e51b7c453 (patch) | |
tree | f99c8b6a69cdf078900a62bd1fde4d3308b84ccb /src/zix/common.h | |
parent | f08ab45ec226e01e4e6a77ced66e30176b30e5cd (diff) | |
download | sord-7b21b438b02d8ff14ae079a0734b1a9e51b7c453.tar.gz sord-7b21b438b02d8ff14ae079a0734b1a9e51b7c453.tar.bz2 sord-7b21b438b02d8ff14ae079a0734b1a9e51b7c453.zip |
Hide zix symbols (fix static builds with lilv).
git-svn-id: http://svn.drobilla.net/sord/trunk@248 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/zix/common.h')
-rw-r--r-- | src/zix/common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/zix/common.h b/src/zix/common.h index e7d35e1..f126cd1 100644 --- a/src/zix/common.h +++ b/src/zix/common.h @@ -36,8 +36,13 @@ # else # define ZIX_API ZIX_LIB_IMPORT # endif +# define ZIX_PRIVATE static +#elif defined(ZIX_INLINE) +# define ZIX_API static inline +# define ZIX_PRIVATE static inline #else # define ZIX_API +# define ZIX_PRIVATE static #endif /** @endcond */ @@ -53,6 +58,8 @@ typedef enum { ZIX_STATUS_NO_MEM, ZIX_STATUS_NOT_FOUND, ZIX_STATUS_EXISTS, + ZIX_STATUS_BAD_ARG, + ZIX_STATUS_BAD_PERMS, } ZixStatus; /** @@ -66,6 +73,11 @@ typedef int (*ZixComparator)(const void* a, const void* b, void* user_data); typedef bool (*ZixEqualFunc)(const void* a, const void* b); /** + Function to destroy an element. +*/ +typedef void (*ZixDestroyFunc)(void* ptr); + +/** @} */ |