diff options
Diffstat (limited to 'cli/src/nmcli.c')
| -rw-r--r-- | cli/src/nmcli.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/src/nmcli.c b/cli/src/nmcli.c index f51779e6..a7888aaa 100644 --- a/cli/src/nmcli.c +++ b/cli/src/nmcli.c @@ -57,6 +57,18 @@ typedef struct { GMainLoop *loop = NULL; +/* Get an error quark for use with GError */ +GQuark +nmcli_error_quark (void) +{ + static GQuark error_quark = 0; + + if (G_UNLIKELY (error_quark == 0)) + error_quark = g_quark_from_static_string ("nmcli-error-quark"); + + return error_quark; +} + static void usage (const char *prog_name) { |