/* WirePlumber * * Copyright © 2019 Collabora Ltd. * @author George Kiagiadakis * * SPDX-License-Identifier: MIT */ #ifndef __WP_ERROR_H__ #define __WP_ERROR_H__ #include #include "defs.h" G_BEGIN_DECLS /** * WP_DOMAIN_LIBRARY: * * A #GError domain for errors that occurred within the context of the * WirePlumber library. */ #define WP_DOMAIN_LIBRARY (wp_domain_library_quark ()) WP_API GQuark wp_domain_library_quark (void); /** * WpLibraryErrorEnum: * @WP_LIBRARY_ERROR_INVARIANT: an invariant check failed; this most likely * indicates a programming error * @WP_LIBRARY_ERROR_INVALID_ARGUMENT: an unexpected/invalid argument was given * @WP_LIBRARY_ERROR_OPERATION_FAILED: an operation failed * * Error codes that can appear in a #GError when the error domain * is %WP_DOMAIN_LIBRARY */ typedef enum { WP_LIBRARY_ERROR_INVARIANT, WP_LIBRARY_ERROR_INVALID_ARGUMENT, WP_LIBRARY_ERROR_OPERATION_FAILED, } WpLibraryErrorEnum; G_END_DECLS #endif