]> git.datanom.net - vcard-parser.git/blame - src/vcard.h
initialize
[vcard-parser.git] / src / vcard.h
CommitLineData
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
27G_BEGIN_DECLS
28
29#include <stdio.h>
30#include <vcard-parser.h>
31
32typedef enum {
33 DETECT,
34 VERSION_2_1,
35 VERSION_3_0,
36 VERSION_4_0,
37} VCardVersion;
38
39typedef struct _VCard VCard;
40
41VCard* VCard_new(VCardVersion version);
42VCard* VCard_new_from_text(const gchar* text, VCardVersion version);
43VCard* VCard_new_from_file(FILE* file, VCardVersion version);
44void VCard_print(VCard* object);
45void VCard_print_fd(VCard* object, int fd);
46
47G_END_DECLS
48
49#endif
This page took 0.049562 seconds and 5 git commands to generate.