Debian Codegraph @

src/plugins/nvme/nvme-private.h

raw
1 #include <glib.h>
2 #include <glib-object.h>
3 #include <blockdev/utils.h>
4
5 #ifndef BD_NVME_PRIVATE
6 #define BD_NVME_PRIVATE
7
8 /* TODO: move to a common libblockdev header */
9 #ifdef __clang__
10 #define ZERO_INIT {}
11 #else
12 #define ZERO_INIT {0}
13 #endif
14
15 /* "C" locale to get the locale-agnostic error messages */
16 #define _C_LOCALE (locale_t) 0
17
18 /* nvme-error.c */
19 G_GNUC_INTERNAL
20 void _nvme_status_to_error (gint status, gboolean fabrics, GError **error);
21 G_GNUC_INTERNAL
22 void _nvme_fabrics_errno_to_gerror (int result, int _errno, GError **error);
23
24 /* nvme-info.c */
25 G_GNUC_INTERNAL
26 gint _open_dev (const gchar *device, GError **error);
27 G_GNUC_INTERNAL
28 void *_nvme_alloc (size_t len, GError **error);
29
30 #endif /* BD_NVME_PRIVATE */