QOF
0.7.5
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
qoferror.h
Go to the documentation of this file.
1
/********************************************************************
2
* qoferror.h
3
*
4
* Sun Sep 10 19:55:48 2006
5
* Copyright 2006 Neil Williams
6
* linux@codehelp.co.uk
7
*******************************************************************/
8
/*
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
*/
23
24
#ifndef _QOFERROR_H
25
#define _QOFERROR_H
26
27
#include "
qofsession.h
"
28
118
typedef
struct
QofError_s
QofError
;
119
121
#define QOF_MOD_ERROR "qof-error-module"
122
124
#define QOF_SUCCESS 0
125
131
#define QOF_FATAL -1
132
157
QofErrorId
158
qof_error_register
(
const
gchar * err_message, gboolean use_file);
159
167
void
168
qof_error_unregister
(
QofErrorId
id
);
169
175
void
176
qof_error_set
(
QofSession
* session,
QofErrorId
error);
177
178
void
179
qof_error_set_be (
QofBackend
* be,
QofErrorId
error);
180
186
void
187
qof_error_clear
(
QofSession
* session);
188
196
QofErrorId
197
qof_error_check_be
(
QofBackend
* be);
198
200
QofErrorId
201
qof_error_check
(
QofSession
* session);
202
213
QofTime
*
214
qof_error_get_time_be
(
QofBackend
* be);
215
217
QofTime
*
218
qof_error_get_time
(
QofSession
* session);
219
230
QofErrorId
231
qof_error_get_id_be
(
QofBackend
* be);
232
234
QofErrorId
235
qof_error_get_id
(
QofSession
* session);
236
247
const
gchar *
248
qof_error_get_message_be
(
QofBackend
* be);
249
251
const
gchar *
252
qof_error_get_message
(
QofSession
* session);
253
255
#endif
/* _QOFERROR_H */
qof
qoferror.h
Generated by
1.8.3.1