]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * vcard.h | |
3 | * | |
4 | * Copyright 2019 Michael Rasmussen <mir@datanom.net> | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation; either version 2 of the License, or | |
9 | * (at your option) any later version. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | * GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program; if not, write to the Free Software | |
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
19 | * MA 02110-1301, USA. | |
20 | */ | |
21 | ||
22 | #ifndef __VCARD_H__ | |
23 | #define __VCARD_H__ | |
24 | ||
25 | #include <glib.h> | |
26 | ||
27 | G_BEGIN_DECLS | |
28 | ||
29 | #include <stdio.h> | |
30 | #include <globals.h> | |
31 | ||
32 | //VCard* VCard_new(VCardVersion version); | |
33 | GSList* VCard_new_from_text(const gchar* text, VCardVersion version, gboolean skip_broken); | |
34 | GSList* VCard_new_from_file(FILE* file, VCardVersion version, gboolean skip_broken); | |
35 | void VCard_free(VCard* object); | |
36 | void VCard_list_free(GSList* list); | |
37 | ||
38 | void VCard_print_list(GSList* list); | |
39 | void VCard_print_list_fd(GSList* list, int fd); | |
40 | void VCard_print(VCard* object); | |
41 | void VCard_print_fd(VCard* object, int fd); | |
42 | gchar* VCard_get_state(VCard* object); | |
43 | GSList* VCard_get_property(VCard* object, const gchar* property); | |
44 | ||
45 | G_END_DECLS | |
46 | ||
47 | #endif |