libkcal

vcc.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 (C) Copyright 1996 Apple Computer, Inc., AT&T Corp., International             
00003 Business Machines Corporation and Siemens Rolm Communications Inc.             
00004                                                                                
00005 For purposes of this license notice, the term Licensors shall mean,            
00006 collectively, Apple Computer, Inc., AT&T Corp., International                  
00007 Business Machines Corporation and Siemens Rolm Communications Inc.             
00008 The term Licensor shall mean any of the Licensors.                             
00009                                                                                
00010 Subject to acceptance of the following conditions, permission is hereby        
00011 granted by Licensors without the need for written agreement and without        
00012 license or royalty fees, to use, copy, modify and distribute this              
00013 software for any purpose.                                                      
00014                                                                                
00015 The above copyright notice and the following four paragraphs must be           
00016 reproduced in all copies of this software and any software including           
00017 this software.                                                                 
00018                                                                                
00019 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS AND NO LICENSOR SHALL HAVE       
00020 ANY OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS OR       
00021 MODIFICATIONS.                                                                 
00022                                                                                
00023 IN NO EVENT SHALL ANY LICENSOR BE LIABLE TO ANY PARTY FOR DIRECT,              
00024 INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT         
00025 OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH         
00026 DAMAGE.                                                                        
00027                                                                                
00028 EACH LICENSOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED,       
00029 INCLUDING BUT NOT LIMITED TO ANY WARRANTY OF NONINFRINGEMENT OR THE            
00030 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR             
00031 PURPOSE.                                                                       
00032 
00033 The software is provided with RESTRICTED RIGHTS.  Use, duplication, or         
00034 disclosure by the government are subject to restrictions set forth in          
00035 DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable.                         
00036 
00037 ***************************************************************************/
00038 
00039 #ifndef __VCC_H__
00040 #define __VCC_H__ 1
00041 
00042 #include "vobject.h"
00043 
00044 
00045 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00046 extern "C" {
00047 #endif
00048 
00049 typedef void (*MimeErrorHandler)(char *);
00050 
00051 extern void registerMimeErrorHandler(MimeErrorHandler);
00052 
00053 extern VObject* Parse_MIME(const char *input, unsigned long len);
00054 extern VObject* Parse_MIME_FromFileName(const char* fname);
00055 
00056 
00057 /* NOTE regarding Parse_MIME_FromFile
00058 The function below, Parse_MIME_FromFile, come in two flavors,
00059 neither of which is exported from the DLL. Each version takes
00060 a CFile or FILE* as a parameter, neither of which can be
00061 passed across a DLL interface (at least that is my experience).
00062 If you are linking this code into your build directly then
00063 you may find them a more convenient API that the other flavors
00064 that take a file name. If you use them with the DLL LIB you
00065 will get a link error.
00066 */
00067 
00068 
00069 extern VObject* Parse_MIME_FromFile(FILE *file);
00070 
00071 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00072 }
00073 #endif
00074 
00075 #endif /* __VCC_H__ */
00076