Debian Codegraph @

src/ws/cockpiterror.h

raw
1 /*
2 * Copyright (C) 2013 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef __COCKPIT_ERROR_H__
7 #define __COCKPIT_ERROR_H__
8
9 #include <glib.h>
10
11 G_BEGIN_DECLS
12
13 /**
14 * COCKPIT_ERROR:
15 *
16 * Error domain for Cockpit. Errors in this domain will be form the
17 * #CockpitError enumeration. See #GError for more information on error
18 * domains.
19 */
20 #define COCKPIT_ERROR (cockpit_error_quark ())
21
22 /**
23 * CockpitError:
24 * @COCKPIT_ERROR_FAILED: The operation failed.
25 *
26 * Error codes for the #COCKPIT_ERROR error domain and the corresponding
27 * D-Bus error names.
28 */
29 typedef enum {
30 COCKPIT_ERROR_AUTHENTICATION_FAILED,
31 COCKPIT_ERROR_PERMISSION_DENIED,
32 COCKPIT_ERROR_FAILED,
33 } CockpitError;
34
35 GQuark cockpit_error_quark (void);
36
37 G_END_DECLS
38
39 #endif /* __COCKPIT_ERROR_H__ */