summaryrefslogtreecommitdiffabout
path: root/libkcal/versit/vcc.h
Side-by-side diff
Diffstat (limited to 'libkcal/versit/vcc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/versit/vcc.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libkcal/versit/vcc.h b/libkcal/versit/vcc.h
index 03886d1..0e52034 100644
--- a/libkcal/versit/vcc.h
+++ b/libkcal/versit/vcc.h
@@ -39,38 +39,42 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable.
#ifndef __VCC_H__
#define __VCC_H__ 1
#include "vobject.h"
#if defined(__CPLUSPLUS__) || defined(__cplusplus)
extern "C" {
#endif
typedef void (*MimeErrorHandler)(char *);
-extern void registerMimeErrorHandler(MimeErrorHandler);
+extern DLLEXPORT(void) registerMimeErrorHandler(MimeErrorHandler);
-extern VObject* Parse_MIME(const char *input, unsigned long len);
-extern VObject* Parse_MIME_FromFileName(const char* fname);
+extern DLLEXPORT(VObject*) Parse_MIME(const char *input, unsigned long len);
+extern DLLEXPORT(VObject*) Parse_MIME_FromFileName(char* fname);
/* NOTE regarding Parse_MIME_FromFile
-The function below, Parse_MIME_FromFile, come in two flavors,
+The function above, Parse_MIME_FromFile, comes in two flavors,
neither of which is exported from the DLL. Each version takes
a CFile or FILE* as a parameter, neither of which can be
passed across a DLL interface (at least that is my experience).
If you are linking this code into your build directly then
you may find them a more convenient API that the other flavors
that take a file name. If you use them with the DLL LIB you
will get a link error.
*/
+#if INCLUDEMFC
+extern VObject* Parse_MIME_FromFile(CFile *file);
+#else
extern VObject* Parse_MIME_FromFile(FILE *file);
+#endif
#if defined(__CPLUSPLUS__) || defined(__cplusplus)
}
#endif
#endif /* __VCC_H__ */