summaryrefslogtreecommitdiffstats
path: root/lasso/xml/errors.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-22 16:13:56 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-22 16:13:56 +0000
commit0387eb47aae29b00a87b4abf9d0e7aacac7ace11 (patch)
treeb4dfcf322f7a3540c707950c54f1f0b4e3f10841 /lasso/xml/errors.c
parenta35443361850e6ce94b87668b327ab051fe77f5f (diff)
downloadlasso-0387eb47aae29b00a87b4abf9d0e7aacac7ace11.tar.gz
lasso-0387eb47aae29b00a87b4abf9d0e7aacac7ace11.tar.xz
lasso-0387eb47aae29b00a87b4abf9d0e7aacac7ace11.zip
Initial commit
Diffstat (limited to 'lasso/xml/errors.c')
-rw-r--r--lasso/xml/errors.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/lasso/xml/errors.c b/lasso/xml/errors.c
new file mode 100644
index 00000000..79402e3d
--- /dev/null
+++ b/lasso/xml/errors.c
@@ -0,0 +1,37 @@
+/* $Id$
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: Valery Febvre <vfebvre@easter-eggs.com>
+ * Nicolas Clapies <nclapies@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "errors.h"
+
+const char*
+lasso_strerror(int error_code)
+{
+ switch (error_code) {
+ case LASSO_ERROR_METADATA_VALUE_NOTFOUND:
+ return "Unable to get metadata value %s\n";
+ default:
+ return "Undefined error code !\n";
+ }
+}