~ubuntu-branches/ubuntu/wily/evolution-data-server/wily

« back to all changes in this revision

Viewing changes to libedataserver/e-data-server-util.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2015-07-20 13:34:59 UTC
  • mfrom: (1.1.126) (1.2.48 sid)
  • Revision ID: package-import@ubuntu.com-20150720133459-g6y46hnu5ewtoz08
Tags: 3.16.4-0ubuntu2
debian/patches/0001-Bug-752373-Monthly-events-do-not-recur-correctly.patch:
Cherry-pick patch from upstream to fix events not recurring correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4
4
 * Copyright (C) 2012 Intel Corporation
5
5
 *
6
 
 * This library is free software; you can redistribute it and/or modify it
 
6
 * This library is free software: you can redistribute it and/or modify it
7
7
 * under the terms of the GNU Lesser General Public License as published by
8
8
 * the Free Software Foundation.
9
9
 *
10
10
 * This library is distributed in the hope that it will be useful, but
11
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
12
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13
13
 * for more details.
14
14
 *
15
15
 * You should have received a copy of the GNU Lesser General Public License
16
 
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
 
16
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
17
17
 *
18
 
 * Authors:
19
 
 *    Rodrigo Moya <rodrigo@ximian.com>
20
 
 *    Tristan Van Berkom <tristanvb@openismus.com>
 
18
 * Authors: Rodrigo Moya <rodrigo@ximian.com>
 
19
 *          Tristan Van Berkom <tristanvb@openismus.com>
21
20
 */
22
21
 
23
22
#if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
30
29
#include <sys/types.h>
31
30
#include <gio/gio.h>
32
31
 
 
32
#include <libedataserver/e-source-enums.h>
 
33
 
33
34
G_BEGIN_DECLS
34
35
 
35
36
struct tm;
78
79
GSList *        e_util_strv_to_slist            (const gchar * const *strv);
79
80
void            e_util_free_nullable_object_slist
80
81
                                                (GSList *objects);
 
82
void            e_util_safe_free_string         (gchar *str);
 
83
 
81
84
void            e_queue_transfer                (GQueue *src_queue,
82
85
                                                 GQueue *dst_queue);
83
86
GWeakRef *      e_weak_ref_new                  (gpointer object);
95
98
                                                 GAsyncResult *result,
96
99
                                                 GError **error);
97
100
 
 
101
GBinding *      e_binding_bind_property         (gpointer source,
 
102
                                                 const gchar *source_property,
 
103
                                                 gpointer target,
 
104
                                                 const gchar *target_property,
 
105
                                                 GBindingFlags flags);
 
106
GBinding *      e_binding_bind_property_full    (gpointer source,
 
107
                                                 const gchar *source_property,
 
108
                                                 gpointer target,
 
109
                                                 const gchar *target_property,
 
110
                                                 GBindingFlags flags,
 
111
                                                 GBindingTransformFunc transform_to,
 
112
                                                 GBindingTransformFunc transform_from,
 
113
                                                 gpointer user_data,
 
114
                                                 GDestroyNotify notify);
 
115
GBinding *      e_binding_bind_property_with_closures
 
116
                                                (gpointer source,
 
117
                                                 const gchar *source_property,
 
118
                                                 gpointer target,
 
119
                                                 const gchar *target_property,
 
120
                                                 GBindingFlags flags,
 
121
                                                 GClosure *transform_to,
 
122
                                                 GClosure *transform_from);
98
123
/* Useful GBinding transform functions */
99
124
gboolean        e_binding_transform_enum_value_to_nick
100
125
                                                (GBinding *binding,
129
154
gchar *         e_util_replace_prefix           (const gchar *configure_time_prefix,
130
155
                                                 const gchar *runtime_prefix,
131
156
                                                 const gchar *configure_time_path);
 
157
void            e_util_win32_initialize         (void);
132
158
#endif
133
159
 
134
160
/* utility functions for easier processing of named parameters */
141
167
struct _ENamedParameters;
142
168
typedef struct _ENamedParameters ENamedParameters;
143
169
 
 
170
#define E_TYPE_NAMED_PARAMETERS (e_named_parameters_get_type ())
 
171
 
144
172
GType           e_named_parameters_get_type     (void) G_GNUC_CONST;
145
173
ENamedParameters *
146
174
                e_named_parameters_new          (void);
147
175
ENamedParameters *
148
176
                e_named_parameters_new_strv     (const gchar * const *strv);
 
177
ENamedParameters *
 
178
                e_named_parameters_new_clone    (const ENamedParameters *parameters);
149
179
void            e_named_parameters_free         (ENamedParameters *parameters);
150
180
void            e_named_parameters_clear        (ENamedParameters *parameters);
151
181
void            e_named_parameters_assign       (ENamedParameters *parameters,
160
190
                                                 const gchar *name,
161
191
                                                 const gchar *value,
162
192
                                                 gboolean case_sensitively);
 
193
gboolean        e_named_parameters_exists       (const ENamedParameters *parameters,
 
194
                                                 const gchar *name);
 
195
guint           e_named_parameters_count        (const ENamedParameters *parameters);
 
196
gchar *         e_named_parameters_get_name     (const ENamedParameters *parameters,
 
197
                                                 gint index);
163
198
 
164
199
#define e_named_timeout_add(interval, function, data) \
165
200
        (e_timeout_add_with_name ( \
216
251
void            e_source_registry_debug_print   (const gchar *format,
217
252
                                                 ...) G_GNUC_PRINTF (1, 2);
218
253
 
 
254
/**
 
255
 * ETypeFunc:
 
256
 * @type: a #GType
 
257
 * @user_data: user data passed to e_type_traverse()
 
258
 *
 
259
 * Specifies the type of functions passed to e_type_traverse().
 
260
 *
 
261
 * Since: 3.4
 
262
 **/
 
263
typedef void    (*ETypeFunc)                    (GType type,
 
264
                                                 gpointer user_data);
 
265
void            e_type_traverse                 (GType parent_type,
 
266
                                                 ETypeFunc func,
 
267
                                                 gpointer user_data);
 
268
 
219
269
G_END_DECLS
220
270
 
221
271
#endif /* E_DATA_SERVER_UTIL_H */