File: fo-error.h

package info (click to toggle)
xmlroff 0.6.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 36,456 kB
  • sloc: ansic: 178,247; xml: 109,155; sh: 8,973; makefile: 1,331; perl: 30
file content (37 lines) | stat: -rw-r--r-- 1,179 bytes parent folder | download | duplicates (5)
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
/* Fo
 * fo-error.h: Error datatype
 *
 * Copyright (C) 2001 Sun Microsystems
 * Copyright (C) 2007-2008 Menteith Consulting Ltd
 *
 * See COPYING for the status of this software.
 */

#ifndef __FO_ERROR_H__
#define __FO_ERROR_H__

#include <libfo/fo-utils.h>
#include <libfo/datatype/fo-datatype.h>

G_BEGIN_DECLS

#define FO_TYPE_ERROR              (fo_error_get_type ())
#define FO_ERROR(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), FO_TYPE_ERROR, FoError))
#define FO_ERROR_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), FO_TYPE_ERROR, FoErrorClass))
#define FO_IS_ERROR(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), FO_TYPE_ERROR))
#define FO_IS_ERROR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), FO_TYPE_ERROR))
#define FO_ERROR_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), FO_TYPE_ERROR, FoErrorClass))


typedef struct _FoError      FoError;
typedef struct _FoErrorClass FoErrorClass;

GType       fo_error_get_type       (void) G_GNUC_CONST;
FoDatatype* fo_error_new            (void);
FoDatatype* fo_error_new_with_value (GError *value);

GError* fo_error_get_value (FoDatatype *error);

G_END_DECLS

#endif /* !__FO_ERROR_H__ */