~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/exchange/lib/e2k-types.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
 
/* Copyright (C) 2001-2004 Novell, Inc. */
3
 
 
4
 
#ifndef __E2K_TYPES_H__
5
 
#define __E2K_TYPES_H__
6
 
 
7
 
#include <glib.h>
8
 
#include <glib/gi18n.h>
9
 
 
10
 
typedef struct _E2kAction                     E2kAction;
11
 
typedef struct _E2kAddrEntry                  E2kAddrEntry;
12
 
typedef struct _E2kAddrList                   E2kAddrList;
13
 
 
14
 
typedef struct _E2kContext                    E2kContext;
15
 
typedef struct _E2kContextPrivate             E2kContextPrivate;
16
 
typedef struct _E2kContextClass               E2kContextClass;
17
 
 
18
 
typedef struct _E2kGlobalCatalog              E2kGlobalCatalog;
19
 
typedef struct _E2kGlobalCatalogPrivate       E2kGlobalCatalogPrivate;
20
 
typedef struct _E2kGlobalCatalogClass         E2kGlobalCatalogClass;
21
 
 
22
 
typedef struct _E2kOperation                  E2kOperation;
23
 
 
24
 
typedef struct _E2kRestriction                E2kRestriction;
25
 
 
26
 
typedef struct _E2kSecurityDescriptor         E2kSecurityDescriptor;
27
 
typedef struct _E2kSecurityDescriptorPrivate  E2kSecurityDescriptorPrivate;
28
 
typedef struct _E2kSecurityDescriptorClass    E2kSecurityDescriptorClass;
29
 
 
30
 
typedef struct _E2kSid                        E2kSid;
31
 
typedef struct _E2kSidPrivate                 E2kSidPrivate;
32
 
typedef struct _E2kSidClass                   E2kSidClass;
33
 
 
34
 
#define E2K_MAKE_TYPE(type_name,TypeName,class_init,init,parent) \
35
 
GType type_name##_get_type(void)                        \
36
 
{                                                       \
37
 
        static GType type = 0;                          \
38
 
        if (!type){                                     \
39
 
                static GTypeInfo const object_info = {  \
40
 
                        sizeof (TypeName##Class),       \
41
 
                                                        \
42
 
                        (GBaseInitFunc) NULL,           \
43
 
                        (GBaseFinalizeFunc) NULL,       \
44
 
                                                        \
45
 
                        (GClassInitFunc) class_init,    \
46
 
                        (GClassFinalizeFunc) NULL,      \
47
 
                        NULL,   /* class_data */        \
48
 
                                                        \
49
 
                        sizeof (TypeName),              \
50
 
                        0,      /* n_preallocs */       \
51
 
                        (GInstanceInitFunc) init,       \
52
 
                };                                      \
53
 
                type = g_type_register_static (parent, #TypeName, &object_info, 0); \
54
 
        }                                               \
55
 
        return type;                                    \
56
 
}
57
 
 
58
 
#define E2K_MAKE_TYPE_WITH_IFACE(type_name,TypeName,class_init,init,parent,iface_init,iparent) \
59
 
GType type_name##_get_type(void)                        \
60
 
{                                                       \
61
 
        static GType type = 0;                          \
62
 
        if (!type){                                     \
63
 
                static GTypeInfo const object_info = {  \
64
 
                        sizeof (TypeName##Class),       \
65
 
                                                        \
66
 
                        (GBaseInitFunc) NULL,           \
67
 
                        (GBaseFinalizeFunc) NULL,       \
68
 
                                                        \
69
 
                        (GClassInitFunc) class_init,    \
70
 
                        (GClassFinalizeFunc) NULL,      \
71
 
                        NULL,   /* class_data */        \
72
 
                                                        \
73
 
                        sizeof (TypeName),              \
74
 
                        0,      /* n_preallocs */       \
75
 
                        (GInstanceInitFunc) init,       \
76
 
                };                                      \
77
 
                static GInterfaceInfo const iface_info = {      \
78
 
                        (GInterfaceInitFunc) iface_init,        \
79
 
                        NULL,                                   \
80
 
                        NULL                                    \
81
 
                };                                              \
82
 
                type = g_type_register_static (parent, #TypeName, &object_info, 0);     \
83
 
                g_type_add_interface_static (type, iparent, &iface_info);               \
84
 
        }                                               \
85
 
        return type;                                    \
86
 
}
87
 
 
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.
90
 
 */
91
 
#define E2K_KEEP_PRECEDING_COMMENT_OUT_OF_PO_FILES
92
 
 
93
 
#endif