diff options
| author | Michael Biebl <biebl@debian.org> | 2012-08-07 22:16:03 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2012-08-07 22:16:03 +0200 |
| commit | 8c98b34228abb4dfde822ad89106b4d8b2287639 (patch) | |
| tree | 9305205f351759c51888cd9f7d75a2eb5b0e1431 /cli/src/nmcli.c | |
| parent | 7f1d08cf21e97f5e60d4636bb1e6c287c34ee2df (diff) | |
Imported Upstream version 0.9.6.0 upstream/0.9.6.0
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) { |