Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
vcardrestriction.h
Go to the documentation of this file.
1/*======================================================================
2 FILE: vcardrestriction.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
14
15#ifndef VCARDRESTRICTION_H
16#define VCARDRESTRICTION_H
17
18#include "libical_vcard_export.h"
19#include "vcardcomponent.h"
20#include "vcardproperty.h"
21
56
70LIBICAL_VCARD_EXPORT int vcardrestriction_compare(vcardrestriction_kind restr,
71 int count);
72
91LIBICAL_VCARD_EXPORT bool vcardrestriction_check(vcardcomponent *comp);
92
93#endif /* VCARDRESTRICTION_H */
Defines the data structure representing vCard components.
Defines the data structure representing vCard properties.
bool vcardrestriction_check(vcardcomponent *comp)
Checks if a given VCARD meets all the restrictions imposed by the standard.
vcardrestriction_kind
The kinds of vcardrestrictions there are.
@ VCARD_RESTRICTION_ZEROPLUS
@ VCARD_RESTRICTION_ONE
@ VCARD_RESTRICTION_ONEPLUS
@ VCARD_RESTRICTION_ZEROORONE
@ VCARD_RESTRICTION_UNKNOWN
@ VCARD_RESTRICTION_ONEEXCLUSIVE
@ VCARD_RESTRICTION_NONE
@ VCARD_RESTRICTION_ZERO
@ VCARD_RESTRICTION_ONEMUTUAL
int vcardrestriction_compare(vcardrestriction_kind restr, int count)
Checks if the given count is in accordance with the given restriction, restr.