1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4 #include <libebook/libebook.h>
10 #if 0 /* ACCOUNT_MGMT */
18 printf ("getting the self contact\n");
20 if (!e_book_get_self (&contact, &book, &error)) {
21 printf ("error %d getting self: %s\n", error->code, error->message);
22 g_clear_error (&error);
26 vcard = e_vcard_to_string (E_VCARD (contact), EVC_FORMAT_VCARD_30);
27 printf ("self contact = \n%s\n", vcard);
30 g_object_unref (contact);
31 g_object_unref (book);
32 #endif /* ACCOUNT_MGMT */