Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 70 lines (60 sloc) 1.813 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* lt-error.h
* Copyright (C) 2011-2012 Akira TAGOH
*
* Authors:
* Akira TAGOH <akira@tagoh.org>
*
* 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 3 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __LT_ERROR_H__
#define __LT_ERROR_H__

#include <glib.h>

G_BEGIN_DECLS

/**
* LT_ERROR:
*
* A #GQuark value being used in this library.
*/
#define LT_ERROR (lt_error_get_quark())

/**
* lt_error_t:
* @LT_ERR_UNKNOWN: unknown error happened.
* @LT_ERR_SUCCESS: an operation is succeeded.
* @LT_ERR_OOM: Out of memory occurred.
* @LT_ERR_FAIL_ON_XML: an error happened in libxml2.
* @LT_ERR_EOT: No tokens to scan.
* @LT_ERR_FAIL_ON_SCANNER: an error happened in the scanner.
* @LT_ERR_NO_TAG: No tags to process.
* @LT_ERR_INVALID: Invalid operation.
* @LT_ERR_END: No real error, but just a terminator.
*
* Error code used in this library.
*/
enum _lt_error_t {
LT_ERR_UNKNOWN = -1,
LT_ERR_SUCCESS = 0,
LT_ERR_OOM,
LT_ERR_FAIL_ON_XML,
LT_ERR_EOT,
LT_ERR_FAIL_ON_SCANNER,
LT_ERR_NO_TAG,
LT_ERR_INVALID,
LT_ERR_END
};

typedef enum _lt_error_t lt_error_t;


GQuark lt_error_get_quark(void);

G_END_DECLS

#endif /* __LT_ERROR_H__ */
Something went wrong with that request. Please try again.