Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
vcardstructured.h
1/*======================================================================
2 FILE: vcardstructured.h
3 CREATOR: Ken Murchison 24 Aug 2022
4
5 SPDX-FileCopyrightText: 2022, Fastmail Pty. Ltd. (https://fastmail.com)
6 SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
7 ======================================================================*/
8
9#ifndef VCARDSTRUCTURED_H
10#define VCARDSTRUCTURED_H
11
12#include "libical_vcard_export.h"
13#include "vcardstrarray.h"
14
15#include <stdbool.h>
16
37typedef struct vcardstructuredtype_impl vcardstructuredtype;
38
48LIBICAL_VCARD_EXPORT vcardstructuredtype *vcardstructured_new(size_t num_fields);
49
59LIBICAL_VCARD_EXPORT vcardstructuredtype *vcardstructured_new_from_string(const char *s);
60
74LIBICAL_VCARD_EXPORT vcardstructuredtype *vcardstructured_clone(const vcardstructuredtype *st);
75
84LIBICAL_VCARD_EXPORT size_t vcardstructured_num_fields(const vcardstructuredtype *st);
85
97LIBICAL_VCARD_EXPORT void vcardstructured_set_num_fields(vcardstructuredtype *st, size_t num_fields);
98
109LIBICAL_VCARD_EXPORT vcardstrarray *vcardstructured_field_at(const vcardstructuredtype *st, size_t position);
110
124LIBICAL_VCARD_EXPORT void vcardstructured_set_field_at(vcardstructuredtype *st, size_t position, vcardstrarray *field);
125
135LIBICAL_VCARD_EXPORT char *vcardstructured_as_vcard_string_r(const vcardstructuredtype *st, bool is_param);
136
151LIBICAL_VCARD_EXPORT void vcardstructured_ref(vcardstructuredtype *st);
152
169LIBICAL_VCARD_EXPORT void vcardstructured_unref(vcardstructuredtype *st);
170
171#endif /* VCARDSTRUCTURED_H */
Definition vcardstructuredimpl.h:14