author | zautrix <zautrix> | 2004-06-29 11:59:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-29 11:59:46 (UTC) |
commit | da43dbdc6c82453228f34766fc74585615cba938 (patch) (unidiff) | |
tree | 16576932cea08bf117b2d0320b0d5f66ee8ad093 /libkcal/versit/vcc.h | |
parent | 627489ea2669d3997676bc3cee0f5d0d0c16c4d4 (diff) | |
download | kdepimpi-da43dbdc6c82453228f34766fc74585615cba938.zip kdepimpi-da43dbdc6c82453228f34766fc74585615cba938.tar.gz kdepimpi-da43dbdc6c82453228f34766fc74585615cba938.tar.bz2 |
New lib ical.Some minor changes as well.
-rw-r--r-- | libkcal/versit/vcc.h | 12 |
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 | |||
@@ -35,42 +35,46 @@ disclosure by the government are subject to restrictions set forth in | |||
35 | DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. | 35 | DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. |
36 | 36 | ||
37 | ***************************************************************************/ | 37 | ***************************************************************************/ |
38 | 38 | ||
39 | #ifndef __VCC_H__ | 39 | #ifndef __VCC_H__ |
40 | #define __VCC_H__ 1 | 40 | #define __VCC_H__ 1 |
41 | 41 | ||
42 | #include "vobject.h" | 42 | #include "vobject.h" |
43 | 43 | ||
44 | 44 | ||
45 | #if defined(__CPLUSPLUS__) || defined(__cplusplus) | 45 | #if defined(__CPLUSPLUS__) || defined(__cplusplus) |
46 | extern "C" { | 46 | extern "C" { |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | typedef void (*MimeErrorHandler)(char *); | 49 | typedef void (*MimeErrorHandler)(char *); |
50 | 50 | ||
51 | extern void registerMimeErrorHandler(MimeErrorHandler); | 51 | extern DLLEXPORT(void) registerMimeErrorHandler(MimeErrorHandler); |
52 | 52 | ||
53 | extern VObject* Parse_MIME(const char *input, unsigned long len); | 53 | extern DLLEXPORT(VObject*) Parse_MIME(const char *input, unsigned long len); |
54 | extern VObject* Parse_MIME_FromFileName(const char* fname); | 54 | extern DLLEXPORT(VObject*) Parse_MIME_FromFileName(char* fname); |
55 | 55 | ||
56 | 56 | ||
57 | /* NOTE regarding Parse_MIME_FromFile | 57 | /* NOTE regarding Parse_MIME_FromFile |
58 | The function below, Parse_MIME_FromFile, come in two flavors, | 58 | The function above, Parse_MIME_FromFile, comes in two flavors, |
59 | neither of which is exported from the DLL. Each version takes | 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 | 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). | 61 | passed across a DLL interface (at least that is my experience). |
62 | If you are linking this code into your build directly then | 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 | 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 | 64 | that take a file name. If you use them with the DLL LIB you |
65 | will get a link error. | 65 | will get a link error. |
66 | */ | 66 | */ |
67 | 67 | ||
68 | 68 | ||
69 | #if INCLUDEMFC | ||
70 | extern VObject* Parse_MIME_FromFile(CFile *file); | ||
71 | #else | ||
69 | extern VObject* Parse_MIME_FromFile(FILE *file); | 72 | extern VObject* Parse_MIME_FromFile(FILE *file); |
73 | #endif | ||
70 | 74 | ||
71 | #if defined(__CPLUSPLUS__) || defined(__cplusplus) | 75 | #if defined(__CPLUSPLUS__) || defined(__cplusplus) |
72 | } | 76 | } |
73 | #endif | 77 | #endif |
74 | 78 | ||
75 | #endif /* __VCC_H__ */ | 79 | #endif /* __VCC_H__ */ |
76 | 80 | ||