$darkmode
Libical API Documentation 4.0 STABLE VERSION Visit the v3.0 documentation
vcardparser.h
Go to the documentation of this file.
1 /*======================================================================
2  FILE: vcardparser.h
3  CREATOR: Ken Murchison 24 Aug 2022
4  CONTRIBUTOR: Bron Gondwana
5 
6  SPDX-FileCopyrightText: 2022, Fastmail Pty. Ltd. (https://fastmail.com)
7  SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
8  ======================================================================*/
9 
15 #ifndef VCARDPARSER_H
16 #define VCARDPARSER_H
17 
18 #include "libical_vcard_export.h"
19 #include "vcardcomponent.h"
20 #include "vcardderivedvalue.h"
21 
22 LIBICAL_VCARD_EXPORT vcardcomponent *vcardparser_parse_string(const char *str);
23 LIBICAL_VCARD_EXPORT const char *vcardparser_errstr(int err);
24 
39 typedef vcardvalue_kind (*vcard_xprop_value_kind_func)(const char *name, void *data);
40 
61 LIBICAL_VCARD_EXPORT void vcardparser_set_xprop_value_kind(vcard_xprop_value_kind_func func, void *data);
62 
63 #endif /* VCARDPARSER_H */
void vcardparser_set_xprop_value_kind(vcard_xprop_value_kind_func func, void *data)
Registers a parser callback to override the default value type of an x-property.
Definition: vcardparser.c:1035
Defines the data structure representing vCard components.
vcardvalue_kind(* vcard_xprop_value_kind_func)(const char *name, void *data)
Callback function pointer to define x-property default value types.
Definition: vcardparser.h:39