1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
/* Copyright (C) 2001-2004 Novell, Inc. */
4
#ifndef __E2K_TYPES_H__
5
#define __E2K_TYPES_H__
8
#include <glib/gi18n.h>
10
typedef struct _E2kAction E2kAction;
11
typedef struct _E2kAddrEntry E2kAddrEntry;
12
typedef struct _E2kAddrList E2kAddrList;
14
typedef struct _E2kContext E2kContext;
15
typedef struct _E2kContextPrivate E2kContextPrivate;
16
typedef struct _E2kContextClass E2kContextClass;
18
typedef struct _E2kGlobalCatalog E2kGlobalCatalog;
19
typedef struct _E2kGlobalCatalogPrivate E2kGlobalCatalogPrivate;
20
typedef struct _E2kGlobalCatalogClass E2kGlobalCatalogClass;
22
typedef struct _E2kOperation E2kOperation;
24
typedef struct _E2kRestriction E2kRestriction;
26
typedef struct _E2kSecurityDescriptor E2kSecurityDescriptor;
27
typedef struct _E2kSecurityDescriptorPrivate E2kSecurityDescriptorPrivate;
28
typedef struct _E2kSecurityDescriptorClass E2kSecurityDescriptorClass;
30
typedef struct _E2kSid E2kSid;
31
typedef struct _E2kSidPrivate E2kSidPrivate;
32
typedef struct _E2kSidClass E2kSidClass;
34
#define E2K_MAKE_TYPE(type_name,TypeName,class_init,init,parent) \
35
GType type_name##_get_type(void) \
37
static GType type = 0; \
39
static GTypeInfo const object_info = { \
40
sizeof (TypeName##Class), \
42
(GBaseInitFunc) NULL, \
43
(GBaseFinalizeFunc) NULL, \
45
(GClassInitFunc) class_init, \
46
(GClassFinalizeFunc) NULL, \
47
NULL, /* class_data */ \
50
0, /* n_preallocs */ \
51
(GInstanceInitFunc) init, \
53
type = g_type_register_static (parent, #TypeName, &object_info, 0); \
58
#define E2K_MAKE_TYPE_WITH_IFACE(type_name,TypeName,class_init,init,parent,iface_init,iparent) \
59
GType type_name##_get_type(void) \
61
static GType type = 0; \
63
static GTypeInfo const object_info = { \
64
sizeof (TypeName##Class), \
66
(GBaseInitFunc) NULL, \
67
(GBaseFinalizeFunc) NULL, \
69
(GClassInitFunc) class_init, \
70
(GClassFinalizeFunc) NULL, \
71
NULL, /* class_data */ \
74
0, /* n_preallocs */ \
75
(GInstanceInitFunc) init, \
77
static GInterfaceInfo const iface_info = { \
78
(GInterfaceInitFunc) iface_init, \
82
type = g_type_register_static (parent, #TypeName, &object_info, 0); \
83
g_type_add_interface_static (type, iparent, &iface_info); \
88
/* Put "E2K_KEEP_PRECEDING_COMMENT_OUT_OF_PO_FILES;" on a line to
89
* separate a _() from a comment that doesn't go with it.
91
#define E2K_KEEP_PRECEDING_COMMENT_OUT_OF_PO_FILES