]>
Commit | Line | Data |
---|---|---|
aa039bee MR |
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_PARSER_H__ | |
23 | #define __VCARD_PARSER_H__ | |
24 | ||
25 | #include <glib.h> | |
26 | ||
27 | G_BEGIN_DECLS | |
28 | ||
29 | #include <stdio.h> | |
30 | #include <vcard-parser.h> | |
31 | ||
32 | typedef enum { | |
33 | DETECT, | |
34 | VERSION_2_1, | |
35 | VERSION_3_0, | |
36 | VERSION_4_0, | |
37 | } VCardVersion; | |
38 | ||
39 | typedef struct _VCard VCard; | |
40 | ||
41 | VCard* VCard_new(VCardVersion version); | |
42 | VCard* VCard_new_from_text(const gchar* text, VCardVersion version); | |
43 | VCard* VCard_new_from_file(FILE* file, VCardVersion version); | |
44 | void VCard_print(VCard* object); | |
45 | void VCard_print_fd(VCard* object, int fd); | |
46 | ||
47 | G_END_DECLS | |
48 | ||
49 | #endif |