Libical API Documentation 4.0
Loading...
Searching...
No Matches
vcc.h
1/***************************************************************************
2SPDX-FileCopyrightText: 1996 Apple Computer, Inc., AT&T Corp., International
3Business Machines Corporation and Siemens Rolm Communications Inc.
4
5SPDX-License-Identifier: LicenseRef-APPLEMIT
6
7The software is provided with RESTRICTED RIGHTS. Use, duplication, or
8disclosure by the government are subject to restrictions set forth in
9DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable.
10
11***************************************************************************/
12
13#ifndef VCC_H
14#define VCC_H
15
16#include "libical_vcal_export.h"
17#include "vobject.h"
18
19#if defined(__CPLUSPLUS__) || defined(__cplusplus)
20extern "C"
21{
22#endif
23
24 typedef void (*MimeErrorHandler) (const char *);
25
26 LIBICAL_VCAL_EXPORT void registerMimeErrorHandler(MimeErrorHandler);
27
28 LIBICAL_VCAL_EXPORT VObject *Parse_MIME(const char *input, unsigned long len);
29
30 LIBICAL_VCAL_EXPORT VObject *Parse_MIME_FromFileName(const char *fname);
31
32/* NOTE regarding Parse_MIME_FromFile
33The function above, Parse_MIME_FromFile, comes in two flavors,
34neither of which is exported from the DLL. Each version takes
35a CFile or FILE* as a parameter, neither of which can be
36passed across a DLL interface (at least that is my experience).
37If you are linking this code into your build directly then
38you may find them a more convenient API that the other flavors
39that take a file name. If you use them with the DLL LIB you
40will get a link error.
41*/
42
43#ifdef INCLUDEMFC
44 LIBICAL_VCAL_EXPORT VObject *Parse_MIME_FromFile(CFile * file);
45#else
46 LIBICAL_VCAL_EXPORT VObject *Parse_MIME_FromFile(FILE * file);
47#endif
48
49#if defined(__CPLUSPLUS__) || defined(__cplusplus)
50}
51
52#endif
53
54#endif /* VCC_H */
Definition vobject.c:43