summaryrefslogtreecommitdiff
path: root/libnm-core/nm-errors.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-10-15 13:20:03 -0400
committerDan Winship <danw@gnome.org>2014-10-22 08:29:08 -0400
commitb1bcfa8fedc65a6d7e9eacbf1dbf736767126820 (patch)
treeb266e711a8a1fa35f0632433cc2961bf0da08b5c /libnm-core/nm-errors.c
parent663a06b6d9e7a45132ffadd1c41c98d86e43a5b9 (diff)
downloadNetworkManager-b1bcfa8fedc65a6d7e9eacbf1dbf736767126820.tar.gz
libnm-core: add nm-errors.[ch]
Add nm-errors.[ch], and move libnm-core's two error domains (NMConnectionError and NMCryptoError) there. NMCryptoError wasn't previously visible, but it can be returned from some public API, so it should be.
Diffstat (limited to 'libnm-core/nm-errors.c')
-rw-r--r--libnm-core/nm-errors.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/libnm-core/nm-errors.c b/libnm-core/nm-errors.c
new file mode 100644
index 0000000000..99040419d7
--- /dev/null
+++ b/libnm-core/nm-errors.c
@@ -0,0 +1,27 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2004 - 2014 Red Hat, Inc.
+ */
+
+#include <glib.h>
+
+#include "nm-errors.h"
+#include "nm-glib-compat.h"
+
+G_DEFINE_QUARK (nm-connection-error-quark, nm_connection_error)
+G_DEFINE_QUARK (nm-crypto-error-quark, nm_crypto_error)