Coding style and whitespace cleanups.
[platform/upstream/evolution-data-server.git] / tests / libecal / test-ecal-send-objects.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 #include <stdlib.h>
4 #include <libecal/e-cal.h>
5 #include <libical/ical.h>
6
7 #include "ecal-test-utils.h"
8
9 gint
10 main (gint argc, gchar **argv)
11 {
12         ECal *cal;
13         gchar *uri = NULL;
14         GList *users = NULL;
15         ECalComponent *e_component = NULL;
16         icalcomponent *component = NULL;
17         icalcomponent *modified_component = NULL;
18         gchar *uid = NULL;
19
20         g_type_init ();
21
22         cal = ecal_test_utils_cal_new_temp (&uri, E_CAL_SOURCE_TYPE_EVENT);
23         ecal_test_utils_cal_open (cal, FALSE);
24
25         ecal_test_utils_create_component (cal, "20040109T090000Z", "UTC",
26                         "20040109T103000", "UTC", "new event", &e_component,
27                         &uid);
28
29         component = e_cal_component_get_icalcomponent (e_component);
30         ecal_test_utils_cal_send_objects (cal, component, &users, &modified_component);
31
32         ecal_test_utils_cal_remove (cal);
33
34         g_list_foreach (users, (GFunc) g_free, NULL);
35         g_list_free (users);
36
37         g_object_unref (e_component);
38         g_free (uid);
39
40         return 0;
41 }