From 2ff624eae24742faf17889f858dbdaa6d4a064ea Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Oct 2022 21:34:22 -0400 Subject: Split up common header --- include/zix/common.h | 57 ---------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 include/zix/common.h (limited to 'include/zix/common.h') diff --git a/include/zix/common.h b/include/zix/common.h deleted file mode 100644 index 788fdaa..0000000 --- a/include/zix/common.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2016-2022 David Robillard -// SPDX-License-Identifier: ISC - -#ifndef ZIX_COMMON_H -#define ZIX_COMMON_H - -#include "zix/attributes.h" - -#include - -/** - @defgroup zix Zix C API - @{ -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -/// A status code returned by functions -typedef enum { - ZIX_STATUS_SUCCESS, ///< Success - ZIX_STATUS_ERROR, ///< Unknown error - ZIX_STATUS_NO_MEM, ///< Out of memory - ZIX_STATUS_NOT_FOUND, ///< Not found - ZIX_STATUS_EXISTS, ///< Exists - ZIX_STATUS_BAD_ARG, ///< Bad argument - ZIX_STATUS_BAD_PERMS, ///< Bad permissions - ZIX_STATUS_REACHED_END, ///< Reached end - ZIX_STATUS_TIMEOUT, ///< Timeout - ZIX_STATUS_OVERFLOW, ///< Overflow - ZIX_STATUS_NOT_SUPPORTED, ///< Not supported - ZIX_STATUS_UNAVAILABLE, ///< Resource unavailable -} ZixStatus; - -/// Return a string describing a status code -ZIX_CONST_API -const char* -zix_strerror(ZixStatus status); - -/// Function for comparing two elements -typedef int (*ZixComparator)(const void* a, - const void* b, - const void* user_data); - -/// Function to destroy an element -typedef void (*ZixDestroyFunc)(void* ptr, const void* user_data); - -/** - @} -*/ - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* ZIX_COMMON_H */ -- cgit v1.2.1