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