Adapt libecal to the new ESource API.
[platform/upstream/evolution-data-server.git] / tests / libecal / test-ecal-get-cal-address.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
6 #include "ecal-test-utils.h"
7
8 gint
9 main (gint argc,
10       gchar **argv)
11 {
12         ECal *cal;
13         gchar *uri = NULL;
14         gchar *address;
15
16         g_type_init ();
17
18         cal = ecal_test_utils_cal_new_temp (&uri, E_CAL_SOURCE_TYPE_EVENT);
19         ecal_test_utils_cal_open (cal, FALSE);
20
21         address = ecal_test_utils_cal_get_cal_address (cal);
22         test_print ("calendar address: '%s'\n", address);
23
24         g_free (address);
25
26         return 0;
27 }