vcc.h 2.8 KB

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