libkcal

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