[discident-glib] lib: Add missing files
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [discident-glib] lib: Add missing files
- Date: Mon, 20 Aug 2012 09:23:10 +0000 (UTC)
commit d32caeb9270e805c00f699c41b47ab085fc77a20
Author: Bastien Nocera <hadess hadess net>
Date: Mon Aug 20 10:22:31 2012 +0100
lib: Add missing files
discident-glib/discident-error.c | 34 ++++++++++++++++++++++++++++++++
discident-glib/discident-error.h | 40 ++++++++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/discident-glib/discident-error.c b/discident-glib/discident-error.c
new file mode 100644
index 0000000..cd2183b
--- /dev/null
+++ b/discident-glib/discident-error.c
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2010 Bastien Nocera
+
+ The Gnome Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome 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
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the Gnome Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301 USA.
+
+ Authors: Bastien Nocera <hadess hadess net>
+
+ */
+
+#include "discident-error.h"
+
+GQuark
+discident_error_quark (void)
+{
+ static GQuark quark;
+ if (!quark)
+ quark = g_quark_from_static_string ("discident_error");
+
+ return quark;
+}
+
diff --git a/discident-glib/discident-error.h b/discident-glib/discident-error.h
new file mode 100644
index 0000000..174dc57
--- /dev/null
+++ b/discident-glib/discident-error.h
@@ -0,0 +1,40 @@
+/*
+ Copyright (C) 2010 Bastien Nocera
+
+ The Gnome Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome 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
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the Gnome Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301 USA.
+
+ Authors: Bastien Nocera <hadess hadess net>
+
+ */
+
+#ifndef DISCIDENT_ERROR_H
+#define DISCIDENT_ERROR_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef enum {
+ DISCIDENT_ERROR_PARSE
+} DiscidentError;
+
+#define DISCIDENT_ERROR (discident_error_quark ())
+
+GQuark discident_error_quark (void);
+
+G_END_DECLS
+
+#endif /* DISCIDENT_ERROR_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]