Libical API Documentation 3.0
Loading...
Searching...
No Matches
vcc.h
1/***************************************************************************
2(C) Copyright 1996 Apple Computer, Inc., AT&T Corp., International
3Business Machines Corporation and Siemens Rolm Communications Inc.
4
5For purposes of this license notice, the term Licensors shall mean,
6collectively, Apple Computer, Inc., AT&T Corp., International
7Business Machines Corporation and Siemens Rolm Communications Inc.
8The term Licensor shall mean any of the Licensors.
9
10Subject to acceptance of the following conditions, permission is hereby
11granted by Licensors without the need for written agreement and without
12license or royalty fees, to use, copy, modify and distribute this
13software for any purpose.
14
15The above copyright notice and the following four paragraphs must be
16reproduced in all copies of this software and any software including
17this software.
18
19THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS AND NO LICENSOR SHALL HAVE
20ANY OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS OR
21MODIFICATIONS.
22
23IN NO EVENT SHALL ANY LICENSOR BE LIABLE TO ANY PARTY FOR DIRECT,
24INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
25OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26DAMAGE.
27
28EACH LICENSOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED,
29INCLUDING BUT NOT LIMITED TO ANY WARRANTY OF NONINFRINGEMENT OR THE
30IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31PURPOSE.
32
33The software is provided with RESTRICTED RIGHTS. Use, duplication, or
34disclosure by the government are subject to restrictions set forth in
35DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable.
36
37***************************************************************************/
38
39#ifndef VCC_H
40#define VCC_H
41
42#include "libical_vcal_export.h"
43#include "vobject.h"
44
45#if defined(__CPLUSPLUS__) || defined(__cplusplus)
46extern "C"
47{
48#endif
49
50 typedef void (*MimeErrorHandler) (char *);
51
52 LIBICAL_VCAL_EXPORT void registerMimeErrorHandler(MimeErrorHandler);
53
54 LIBICAL_VCAL_EXPORT VObject *Parse_MIME(const char *input, unsigned long len);
55
56 LIBICAL_VCAL_EXPORT VObject *Parse_MIME_FromFileName(const char *fname);
57
58/* NOTE regarding Parse_MIME_FromFile
59The function above, Parse_MIME_FromFile, comes in two flavors,
60neither of which is exported from the DLL. Each version takes
61a CFile or FILE* as a parameter, neither of which can be
62passed across a DLL interface (at least that is my experience).
63If you are linking this code into your build directly then
64you may find them a more convenient API that the other flavors
65that take a file name. If you use them with the DLL LIB you
66will get a link error.
67*/
68
69#ifdef INCLUDEMFC
70 LIBICAL_VCAL_EXPORT VObject *Parse_MIME_FromFile(CFile * file);
71#else
72 LIBICAL_VCAL_EXPORT VObject *Parse_MIME_FromFile(FILE * file);
73#endif
74
75#if defined(__CPLUSPLUS__) || defined(__cplusplus)
76}
77
78#endif
79
80#endif /* VCC_H */
Definition vobject.c:69