id = l->data;
- contact = load_contact(bf, txn, id, NULL);
+ contact = load_contact (bf, txn, id, NULL);
if (contact)
removed_contacts = g_slist_prepend (removed_contacts, contact);
GError *error = NULL;
/* Delete URI associated to those contacts */
- for (l = removed_contacts; l; l=l->next) {
- maybe_delete_unused_uris (bf, E_CONTACT(l->data), NULL);
+ for (l = removed_contacts; l; l = l->next) {
+ maybe_delete_unused_uris (bf, E_CONTACT (l->data), NULL);
}
/* Remove from summary as well */
lold = old_contacts;
l = modified_contacts;
while (lold && l) {
- maybe_delete_unused_uris (bf, E_CONTACT(lold->data), E_CONTACT(l->data));
+ maybe_delete_unused_uris (bf, E_CONTACT (lold->data), E_CONTACT (l->data));
lold = lold->next;
l = l->next;
}
static const gchar *
map_google_with_evo_group (const gchar *group_name,
- gboolean google_to_evo)
+ gboolean google_to_evo)
{
struct _GroupsMap {
const gchar *google_id;
_gdata_entry_update_from_e_contact (EBookBackend *backend,
GDataEntry *entry,
EContact *contact,
- gboolean ensure_personal_group)
+ gboolean ensure_personal_group)
{
EBookBackendGooglePrivate *priv;
GList *attributes, *iter, *category_names;
}
/* to have contacts shown in My Contacts by default,
- see https://bugzilla.gnome.org/show_bug.cgi?id=663324
- for more details */
+ * see https://bugzilla.gnome.org/show_bug.cgi?id=663324
+ * for more details */
if (ensure_personal_group) {
const gchar *group_entry_id = g_hash_table_lookup (priv->system_groups_by_id, GDATA_CONTACTS_GROUP_CONTACTS);
/* FILE_AS is not really a structured field - we use a getter/setter
* so we can generate its value if necessary in the getter */
/* Translators: This is an EContact field description, in this case it's a
- preferred user's description (or display name) of the contact. Note 'File' is a verb here. */
+ * preferred user's description (or display name) of the contact. Note 'File' is a verb here. */
GETSET_FIELD (E_CONTACT_FILE_AS, EVC_X_FILE_AS, "file_as", N_("File Under"), FALSE, fileas_getter, fileas_setter),
/* URI of the book to which the contact belongs to */
STRING_FIELD (E_CONTACT_BOOK_URI, EVC_X_BOOK_URI, "book_uri", N_("Book URI"), FALSE),
/* Last modified time */
STRING_FIELD (E_CONTACT_REV, EVC_REV, "Rev", N_("Last Revision"), FALSE),
/* Translators: This is an EContact field description, in this case it's a
- virtual field, which returns either name of the contact or the organization
- name, recognized by multiple other fields, where the first filled is used. */
+ * virtual field, which returns either name of the contact or the organization
+ * name, recognized by multiple other fields, where the first filled is used. */
SYNTH_STR_FIELD (E_CONTACT_NAME_OR_ORG, "name_or_org", N_("Name or Org"), TRUE),
/* Address fields */
STRUCT_FIELD (E_CONTACT_LOGO, EVC_LOGO, "logo", N_("Logo"), FALSE, photo_getter, photo_setter, e_contact_photo_get_type),
/* Translators: This is an EContact field description, in this case it's a name
- of the contact, as specified in http://tools.ietf.org/html/rfc6350#section-6.2.2 */
+ * of the contact, as specified in http://tools.ietf.org/html/rfc6350#section-6.2.2 */
STRUCT_FIELD (E_CONTACT_NAME, EVC_N, "name", N_("Name"), FALSE, n_getter, n_setter, e_contact_name_get_type),
MULTI_LIST_FIELD (E_CONTACT_EMAIL, EVC_EMAIL, "email", N_("Email List"), FALSE),
BOOLEAN_FIELD (E_CONTACT_WANTS_HTML, EVC_X_WANTS_HTML, "wants_html", N_("Wants HTML Mail"), FALSE),
/* Translators: This is an EContact field description, in this case it's a
- field describing whether it's a Contact list (list of email addresses) or a
- regular contact for one person/organization/... */
+ * field describing whether it's a Contact list (list of email addresses) or a
+ * regular contact for one person/organization/... */
BOOLEAN_FIELD (E_CONTACT_IS_LIST, EVC_X_LIST, "list", N_("List"), FALSE),
/* Translators: This is an EContact field description, in this case it's a flag
- used to determine whether when sending to Contact lists the addresses should be
- shown or not to other recipients - basically whether to use BCC field or CC
- message header when sending messages to this Contact list. */
+ * used to determine whether when sending to Contact lists the addresses should be
+ * shown or not to other recipients - basically whether to use BCC field or CC
+ * message header when sending messages to this Contact list. */
BOOLEAN_FIELD (E_CONTACT_LIST_SHOW_ADDRESSES, EVC_X_LIST_SHOW_ADDRESSES, "list_show_addresses", N_("List Shows Addresses"), FALSE),
STRUCT_FIELD (E_CONTACT_BIRTH_DATE, EVC_BDAY, "birth_date", N_("Birth Date"), FALSE, date_getter, date_setter, e_contact_date_get_type),
/* set the cached slot to NULL so we'll re-get the new string
* if e_contact_get_const is called again */
- g_free (contact->priv->cached_strings[field_id]);
+ g_free (contact->priv->cached_strings[field_id]);
contact->priv->cached_strings[field_id] = NULL;
g_object_set (contact,
static void
update_slave_cmd (ECalBackendCalDAVPrivate *priv,
- SlaveCommand slave_cmd)
+ SlaveCommand slave_cmd)
{
g_return_if_fail (priv != NULL);
static gchar *
caldav_gen_file_from_uid_cal (ECalBackendCalDAV *cbdav,
- icalcomponent *icalcomp)
+ icalcomponent *icalcomp)
{
icalcomponent_kind my_kind;
const gchar *uid = NULL;
gchar *file;
/* OK, the event was properly created, but cannot be found on the place
- where it was PUT - why didn't server tell us where it saved it? */
+ * where it was PUT - why didn't server tell us where it saved it? */
g_clear_error (&local_error);
/* try whether it's saved as its UID.ics file */
g_clear_error (&local_error);
/* not sure what can happen, but do not need to guess for ever,
- thus report success and update the calendar to get fresh info */
+ * thus report success and update the calendar to get fresh info */
update_slave_cmd (cbdav->priv, SLAVE_SHOULD_WORK);
g_cond_signal (cbdav->priv->cond);
}
icalcomponent *cache_comp;
gboolean online;
gchar *href = NULL, *etag = NULL;
- const gchar *uid = ((ECalComponentId *)ids->data)->uid;
- const gchar *rid = ((ECalComponentId *)ids->data)->rid;
+ const gchar *uid = ((ECalComponentId *) ids->data)->uid;
+ const gchar *rid = ((ECalComponentId *) ids->data)->rid;
if (new_components)
*new_components = NULL;
/* Check that it has a recurrence id if mod is CALOBJ_MOD_THISANDPRIOR
or CALOBJ_MOD_THISANDFUTURE */
if ((mod == CALOBJ_MOD_THISANDPRIOR || mod == CALOBJ_MOD_THISANDFUTURE) &&
- (!id->rid || !*(id->rid))) {
+ (!id->rid || !*(id->rid))) {
g_static_rec_mutex_unlock (&priv->idle_save_rmutex);
g_propagate_error (error, EDC_ERROR (ObjectNotFound));
return;
* Since: 3.6
*/
void
-e_cal_client_view_set_flags (ECalClientView *view,
- ECalClientViewFlags flags,
- GError **error)
+e_cal_client_view_set_flags (ECalClientView *view,
+ ECalClientViewFlags flags,
+ GError **error)
{
ECalClientViewPrivate *priv;
}
}
-
g_free (dtstart.value);
dtstart.value = &itt;
- e_cal_component_set_dtstart(ci->comp, &dtstart);
+ e_cal_component_set_dtstart (ci->comp, &dtstart);
/* set the RECUR-ID for the instance */
range = g_new0 (ECalComponentRange, 1);
g_free (dtend.value);
dtend.value = &itt;
- e_cal_component_set_dtend(ci->comp, &dtend);
+ e_cal_component_set_dtend (ci->comp, &dtend);
g_free ((gchar *) dtend.tzid);
}
g_return_if_fail (E_IS_CAL_CLIENT (client));
g_return_if_fail (comps != NULL);
- comp_strings = icalcomponent_slist_to_string_slist(comps);
+ comp_strings = icalcomponent_slist_to_string_slist (comps);
strv = e_gdbus_cal_encode_modify_objects (comp_strings, mod);
e_client_proxy_call_strv (E_CLIENT (client), (const gchar * const *) strv, cancellable, callback, user_data, e_cal_client_modify_objects,
return FALSE;
}
- comp_strings = icalcomponent_slist_to_string_slist(comps);
+ comp_strings = icalcomponent_slist_to_string_slist (comps);
strv = e_gdbus_cal_encode_modify_objects (comp_strings, mod);
res = e_client_proxy_call_sync_strv__void (E_CLIENT (client), (const gchar * const *) strv, cancellable, error, e_gdbus_cal_call_modify_objects_sync);
g_return_if_fail (uid != NULL);
- id.uid = (gchar *)uid;
- id.rid = (gchar *)rid;
+ id.uid = (gchar *) uid;
+ id.rid = (gchar *) rid;
ids.data = &id;
strv = e_gdbus_cal_encode_remove_objects (&ids, mod);
return FALSE;
}
- id.uid = (gchar *)uid;
- id.rid = (gchar *)rid;
+ id.uid = (gchar *) uid;
+ id.rid = (gchar *) rid;
ids.data = &id;
strv = e_gdbus_cal_encode_remove_objects (&ids, mod);
E_CALENDAR_CHECK_STATUS (E_CALENDAR_STATUS_URI_NOT_LOADED, error);
}
- id.uid = (gchar *)uid;
- id.rid = (gchar *)rid;
+ id.uid = (gchar *) uid;
+ id.rid = (gchar *) rid;
ids.data = &id;
strv = e_gdbus_cal_encode_remove_objects (&ids, mod);
if (!e_gdbus_cal_call_remove_objects_sync (priv->gdbus_cal, (const gchar * const *) strv, NULL, error)) {
*/
void
e_cal_backend_sync_modify_objects (ECalBackendSync *backend,
- EDataCal *cal,
- GCancellable *cancellable,
- const GSList *calobjs,
- CalObjModType mod,
- GSList **old_components,
- GSList **new_components,
- GError **error)
+ EDataCal *cal,
+ GCancellable *cancellable,
+ const GSList *calobjs,
+ CalObjModType mod,
+ GSList **old_components,
+ GSList **new_components,
+ GError **error)
{
e_return_data_cal_error_if_fail (backend && E_IS_CAL_BACKEND_SYNC (backend), InvalidArg);
e_return_data_cal_error_if_fail (E_CAL_BACKEND_SYNC_GET_CLASS (backend)->modify_objects_sync != NULL, UnsupportedMethod);
}
static gboolean
-impl_DataCalView_setFlags (EGdbusCalView *object,
+impl_DataCalView_setFlags (EGdbusCalView *object,
GDBusMethodInvocation *invocation,
- ECalClientViewFlags flags,
- EDataCalView *view)
+ ECalClientViewFlags flags,
+ EDataCalView *view)
{
view->priv->flags = flags;
break;
case OP_REMOVE_OBJECTS:
e_cal_backend_remove_objects (backend, op->cal, op->id, op->cancellable, op->d.ro.ids, op->d.ro.mod);
- g_slist_free_full (op->d.ro.ids, (GDestroyNotify)e_cal_component_free_id);
+ g_slist_free_full (op->d.ro.ids, (GDestroyNotify) e_cal_component_free_id);
break;
case OP_RECEIVE_OBJECTS:
e_cal_backend_receive_objects (backend, op->cal, op->id, op->cancellable, op->d.co.calobj);
/* Translators: This is prefix to a detailed error message */
g_prefix_error (&error, "%s", _("Cannot create calendar object: "));
- e_gdbus_cal_emit_create_objects_done (cal->priv->gdbus_object, opid, error, (const gchar * const *)array);
+ e_gdbus_cal_emit_create_objects_done (cal->priv->gdbus_object, opid, error, (const gchar * const *) array);
g_strfreev (array);
if (error)
E_DECLARE_GDBUS_METHOD_DONE_EMISSION_HOOK_ASYNC_VOID (GDBUS_CAL_INTERFACE_NAME,
get_free_busy)
E_DECLARE_GDBUS_METHOD_DONE_EMISSION_HOOK_ASYNC_STRV (GDBUS_CAL_INTERFACE_NAME,
- create_objects)
+ create_objects)
E_DECLARE_GDBUS_METHOD_DONE_EMISSION_HOOK_ASYNC_VOID (GDBUS_CAL_INTERFACE_NAME,
- modify_objects)
+ modify_objects)
E_DECLARE_GDBUS_METHOD_DONE_EMISSION_HOOK_ASYNC_VOID (GDBUS_CAL_INTERFACE_NAME,
remove_objects)
E_DECLARE_GDBUS_METHOD_DONE_EMISSION_HOOK_ASYNC_VOID (GDBUS_CAL_INTERFACE_NAME,
g_return_val_if_fail (in_calobjs != NULL, NULL);
- strv = g_new0 (gchar *, g_slist_length ((GSList *)in_calobjs) + 2);
+ strv = g_new0 (gchar *, g_slist_length ((GSList *) in_calobjs) + 2);
strv[i++] = g_strdup_printf ("%u", (guint32) in_mod);
for (l = in_calobjs; l; l = l->next) {
g_return_val_if_fail (in_ids != NULL, NULL);
- strv = g_new0 (gchar *, 2 + 2 * g_slist_length ((GSList *)in_ids));
+ strv = g_new0 (gchar *, 2 + 2 * g_slist_length ((GSList *) in_ids));
strv[i++] = g_strdup_printf ("%u", (guint32) in_mod);
for (l = in_ids; l; l = l->next) {
/* free ids g_slist_free_full(ids, g_free) */
gboolean
e_gdbus_cal_decode_remove_objects (const gchar * const *in_strv,
- GSList **out_ids,
+ GSList **out_ids,
guint *out_mod)
{
gint ii;
static gboolean
certdb_str_equal_casecmp (gconstpointer str1,
- gconstpointer str2)
+ gconstpointer str2)
{
if (!str1 || !str2)
return str1 == str2;
guint32
camel_folder_search_count (CamelFolderSearch *search,
const gchar *expr,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelSExpResult *r;
camel_folder_search_search (CamelFolderSearch *search,
const gchar *expr,
GPtrArray *uids,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelSExpResult *r;
match_words_1message (CamelDataWrapper *object,
struct _camel_search_words *words,
guint32 *mask,
- GCancellable *cancellable)
+ GCancellable *cancellable)
{
CamelDataWrapper *containee;
gint truth = FALSE;
GPtrArray *
camel_folder_search_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelFolderClass *class;
guint32
camel_folder_count_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelFolderClass *class;
camel_folder_search_by_uids (CamelFolder *folder,
const gchar *expr,
GPtrArray *uids,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelFolderClass *class;
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef _CAMEL_IMAPX_CONN_MANAGER_H
#define _CAMEL_IMAPX_CONN_MANAGER_H
imapx_search_by_uids (CamelFolder *folder,
const gchar *expression,
GPtrArray *uids,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelIMAPXFolder *ifolder = CAMEL_IMAPX_FOLDER (folder);
static guint32
imapx_count_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelIMAPXFolder *ifolder = CAMEL_IMAPX_FOLDER (folder);
static GPtrArray *
imapx_search_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelIMAPXFolder *ifolder = CAMEL_IMAPX_FOLDER (folder);
static void
imapx_rename (CamelFolder *folder,
- const gchar *new_name)
+ const gchar *new_name)
{
CamelStore *parent_store;
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef CAMEL_IMAPX_JOB_H
#define CAMEL_IMAPX_JOB_H
CamelFolder *folder,
CamelMimeMessage *message,
const CamelMessageInfo *mi,
- gchar **appended_uid,
+ gchar **appended_uid,
GCancellable *cancellable,
GError **error)
{
return jinfo;
}
-void
-camel_imapx_server_set_extended_token_handler (CamelIMAPXServer *is,
- IMAPXExtUntaggedResponseHander handler_func)
+void
+camel_imapx_server_set_extended_token_handler (CamelIMAPXServer *is,
+ IMAPXExtUntaggedResponseHander handler_func)
{
g_return_if_fail (is != NULL);
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef CAMEL_IMAPX_SERVER_H
#define CAMEL_IMAPX_SERVER_H
struct _IMAPXJobQueueInfo;
typedef gboolean (*IMAPXExtUntaggedResponseHander)
- (CamelIMAPXServer *server,
- GCancellable *cancellable,
+ (CamelIMAPXServer *server,
+ GCancellable *cancellable,
GError **error);
struct _CamelIMAPXServer {
camel_imapx_server_get_job_queue_info
(CamelIMAPXServer *is);
-void camel_imapx_server_set_extended_token_handler
+void camel_imapx_server_set_extended_token_handler
(CamelIMAPXServer *is,
IMAPXExtUntaggedResponseHander handler_func);
-
G_END_DECLS
#endif /* CAMEL_IMAPX_SERVER_H */
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef CAMEL_IMAPX_STORE_SUMMARY_H
#define CAMEL_IMAPX_STORE_SUMMARY_H
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef CAMEL_IMAPX_STORE_H
#define CAMEL_IMAPX_STORE_H
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef CAMEL_IMAPX_STREAM_H
#define CAMEL_IMAPX_STREAM_H
#include <unistd.h>
#include <sys/stat.h>
-
#include <camel/camel-db.h>
#include <camel/camel-store.h>
#include <camel/camel-string-utils.h>
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef CAMEL_IMAPX_SUMMARY_H
#define CAMEL_IMAPX_SUMMARY_H
#error "Only <camel/camel.h> can be included directly."
#endif
-
#ifndef CAMEL_IMAPX_UTILS_H
#define CAMEL_IMAPX_UTILS_H
static gchar *
header_encode_string_rfc2047 (const guchar *in,
- gboolean include_lwsp)
+ gboolean include_lwsp)
{
const guchar *inptr = in, *start, *word;
gboolean last_was_encoded = FALSE;
static GPtrArray *
vee_folder_search_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
GList *node;
vee_folder_search_by_uids (CamelFolder *folder,
const gchar *expression,
GPtrArray *uids,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
GList *node;
static guint32
vee_folder_count_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
GList *node;
static GPtrArray *
imap_search_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder);
static guint32
imap_count_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder);
imap_search_by_uids (CamelFolder *folder,
const gchar *expression,
GPtrArray *uids,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder);
/* ... */
};
-
extern CamelServiceAuthType camel_imapx_password_authtype;
void camel_imapx_module_init (void);
static GPtrArray *
local_folder_search_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelLocalFolder *local_folder = CAMEL_LOCAL_FOLDER (folder);
local_folder_search_by_uids (CamelFolder *folder,
const gchar *expression,
GPtrArray *uids,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelLocalFolder *local_folder = CAMEL_LOCAL_FOLDER (folder);
static guint32
local_folder_count_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelLocalFolder *local_folder = CAMEL_LOCAL_FOLDER (folder);
if ((g_ascii_strcasecmp ((*topfi)->full_name, "Inbox") != 0
&& (!g_str_has_prefix (full_name, (*topfi)->full_name) ||
- (full_name[strlen((*topfi)->full_name)] != '\0' &&
- full_name[strlen((*topfi)->full_name)] != '/')))
+ (full_name[strlen ((*topfi)->full_name)] != '\0' &&
+ full_name[strlen ((*topfi)->full_name)] != '/')))
|| (!can_inbox_sibling
&& g_ascii_strcasecmp ((*topfi)->full_name, "Inbox") == 0
&& (!g_str_has_prefix (full_name, (*topfi)->full_name) ||
- (full_name[strlen((*topfi)->full_name)] != '\0' &&
- full_name[strlen((*topfi)->full_name)] != '/')))) {
+ (full_name[strlen ((*topfi)->full_name)] != '\0' &&
+ full_name[strlen ((*topfi)->full_name)] != '/')))) {
g_free (full_name);
continue;
}
static CamelMessageInfo *
maildir_message_info_from_db (CamelFolderSummary *summary,
- CamelMIRecord *record)
+ CamelMIRecord *record)
{
CamelMessageInfo *mi;
static GPtrArray *
nntp_folder_search_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelNNTPFolder *nntp_folder = CAMEL_NNTP_FOLDER (folder);
static guint32
nntp_folder_count_by_expression (CamelFolder *folder,
const gchar *expression,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelNNTPFolder *nntp_folder = CAMEL_NNTP_FOLDER (folder);
nntp_folder_search_by_uids (CamelFolder *folder,
const gchar *expression,
GPtrArray *uids,
- GCancellable *cancellable,
+ GCancellable *cancellable,
GError **error)
{
CamelNNTPFolder *nntp_folder = (CamelNNTPFolder *) folder;
return _("Repository offline");
case E_CLIENT_ERROR_OFFLINE_UNAVAILABLE:
/* Translators: This means that the EClient does not support offline mode, or
- it's not set to by a user, thus it is unavailable while user is not connected. */
+ * it's not set to by a user, thus it is unavailable while user is not connected. */
return _("Offline unavailable");
case E_CLIENT_ERROR_PERMISSION_DENIED:
return _("Permission denied");
g_return_if_fail (op_data->cancellable == cancellable);
/* do this on idle, because this callback should be left
- as soon as possible, with no sync calls being done */
+ * as soon as possible, with no sync calls being done */
op_data->cancel_idle_id = g_idle_add (e_gdbus_op_cancelled_idle_cb, op_data);
}
static gboolean
test_icalcomps (icalcomponent *icalcomp1,
- icalcomponent *icalcomp2)
+ icalcomponent *icalcomp2)
{
struct icaltimetype t1, t2;
static gboolean
check_removed (ECalClient *cal_client,
- const GSList *uids)
+ const GSList *uids)
{
g_return_val_if_fail (cal_client != NULL, FALSE);
g_return_val_if_fail (uids != NULL, FALSE);
GError *error = NULL;
icalcomponent *icalcomp = NULL;
- if (!e_cal_client_get_object_sync(cal_client, uids->data, NULL, &icalcomp, NULL, &error) &&
+ if (!e_cal_client_get_object_sync (cal_client, uids->data, NULL, &icalcomp, NULL, &error) &&
g_error_matches (error, E_CAL_CLIENT_ERROR, E_CAL_CLIENT_ERROR_OBJECT_NOT_FOUND)) {
g_clear_error (&error);
} else {
}
static GSList *
-uid_slist_to_ecalcomponentid_slist(GSList *uids)
+uid_slist_to_ecalcomponentid_slist (GSList *uids)
{
GSList *ids = NULL;
const GSList *l;
static gboolean
check_icalcomps_exist (ECalClient *cal_client,
- GSList *icalcomps)
+ GSList *icalcomps)
{
const GSList *l;
GError *error = NULL;
icalcomponent *icalcomp = l->data;
icalcomponent *icalcomp2 = NULL;
- const char *uid = icalcomponent_get_uid(icalcomp);
+ const gchar *uid = icalcomponent_get_uid (icalcomp);
- if (!e_cal_client_get_object_sync(cal_client, uid, NULL, &icalcomp2, NULL, &error)) {
+ if (!e_cal_client_get_object_sync (cal_client, uid, NULL, &icalcomp2, NULL, &error)) {
report_error ("get object sync", &error);
return FALSE;
}
}
static gboolean
-test_bulk_methods(GSList *icalcomps)
+test_bulk_methods (GSList *icalcomps)
{
ECalClient *cal_client;
GError *error = NULL;
icalcomponent *icalcomp = lcomp->data;
summary = g_strdup_printf ("Edited test summary %d", i);
- icalcomponent_set_summary(icalcomp, summary);
+ icalcomponent_set_summary (icalcomp, summary);
g_free (summary);
++i;
}
/* Save the modified objects in bulk */
- if (!e_cal_client_modify_objects_sync(cal_client, icalcomps, CALOBJ_MOD_ALL, NULL, &error)) {
+ if (!e_cal_client_modify_objects_sync (cal_client, icalcomps, CALOBJ_MOD_ALL, NULL, &error)) {
report_error ("modify objects sync", &error);
g_object_unref (cal_client);
g_slist_free_full (uids, g_free);
/* Remove all the objects in bulk */
ids = uid_slist_to_ecalcomponentid_slist (uids);
- if (!e_cal_client_remove_objects_sync(cal_client, ids, CALOBJ_MOD_ALL, NULL, &error)) {
+ if (!e_cal_client_remove_objects_sync (cal_client, ids, CALOBJ_MOD_ALL, NULL, &error)) {
report_error ("remove objects sync", &error);
g_object_unref (cal_client);
g_slist_free_full (ids, (GDestroyNotify) e_cal_component_free_id);
g_slist_free_full (ids, (GDestroyNotify) e_cal_component_free_id);
/* Check that the objects don't exist anymore */
- if (!check_removed(cal_client, uids)) {
+ if (!check_removed (cal_client, uids)) {
g_object_unref (cal_client);
g_slist_free_full (uids, g_free);
return FALSE;
gint
main (gint argc,
- gchar **argv)
+ gchar **argv)
{
GSList *icalcomps = NULL;
struct icaltimetype now;
/* Test synchronous bulk methods */
res = test_bulk_methods (icalcomps);
- g_slist_free_full (icalcomps, (GDestroyNotify)icalcomponent_free);
+ g_slist_free_full (icalcomps, (GDestroyNotify) icalcomponent_free);
return (res != TRUE);
}