Adapt libecal to the new ESource API.
[platform/upstream/evolution-data-server.git] / tests / libecal / test-recur.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 gint
7 main (gint argc,
8       gchar **argv)
9 {
10         ECal *ecal;
11
12         g_type_init ();
13
14         if (argc < 2) {
15                 printf ("usage: test-recur <uid>\n");
16                 exit (0);
17         }
18
19         /* FIXME We don't build ECals from URIs anymore. */
20         /* ecal = e_cal_new_from_uri (argv[1], E_CAL_SOURCE_TYPE_EVENT); */
21         ecal = NULL;
22
23         if (!e_cal_open (ecal, TRUE, NULL)) {
24                 printf ("failed to open calendar\n");
25                 exit (0);
26         }
27
28         g_object_unref (ecal);
29
30         return 0;
31 }