|
Packit |
228f82 |
/* $Id$
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* Lasso - A free implementation of the Liberty Alliance specifications.
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* Copyright (C) 2004-2007 Entr'ouvert
|
|
Packit |
228f82 |
* http://lasso.entrouvert.org
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* Authors: See AUTHORS file in top-level directory.
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
228f82 |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
228f82 |
* the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
228f82 |
* (at your option) any later version.
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
228f82 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
228f82 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
228f82 |
* GNU General Public License for more details.
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
228f82 |
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
228f82 |
*/
|
|
Packit |
228f82 |
|
|
Packit |
228f82 |
#include <glib.h>
|
|
Packit |
228f82 |
#include "errors.h"
|
|
Packit |
228f82 |
#include "xml/xml.h"
|
|
Packit |
228f82 |
|
|
Packit |
228f82 |
/* WARNING!!!: This is a generated file do not modify it, add new error message
|
|
Packit |
228f82 |
* a comments inside errors.h */
|
|
Packit |
228f82 |
|
|
Packit |
228f82 |
/**
|
|
Packit |
228f82 |
* lasso_strerror:
|
|
Packit |
228f82 |
* @error_code: a gint error code returned by a lasso function
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* Convert an error code from a lasso fuction to a human readable string.
|
|
Packit |
228f82 |
*
|
|
Packit |
228f82 |
* Returns: a static string.
|
|
Packit |
228f82 |
*/
|
|
Packit |
228f82 |
const char*
|
|
Packit |
228f82 |
lasso_strerror(int error_code)
|
|
Packit |
228f82 |
{
|
|
Packit |
228f82 |
switch (error_code) {
|
|
Packit |
228f82 |
@ERROR_CASES@
|
|
Packit |
228f82 |
default:
|
|
Packit |
228f82 |
return "Unknown LASSO_ERROR, you should regenerate errors.c";
|
|
Packit |
228f82 |
}
|
|
Packit |
228f82 |
}
|