Fixed missing extern C
authorArmin Novak <armin.novak@thincast.com>
Mon, 1 Dec 2014 12:12:51 +0000 (13:12 +0100)
committerArmin Novak <armin.novak@thincast.com>
Mon, 1 Dec 2014 12:12:51 +0000 (13:12 +0100)
33 files changed:
include/freerdp/codec/audio.h
include/freerdp/codec/interleaved.h
include/freerdp/codec/jpeg.h
include/freerdp/codec/planar.h
include/freerdp/codecs.h
include/freerdp/crypto/ber.h
include/freerdp/crypto/certificate.h
include/freerdp/crypto/crypto.h
include/freerdp/crypto/der.h
include/freerdp/crypto/er.h
include/freerdp/crypto/per.h
include/freerdp/crypto/tls.h
include/freerdp/gdi/16bpp.h
include/freerdp/gdi/32bpp.h
include/freerdp/gdi/8bpp.h
include/freerdp/gdi/bitmap.h
include/freerdp/gdi/brush.h
include/freerdp/gdi/clipping.h
include/freerdp/gdi/dc.h
include/freerdp/gdi/drawing.h
include/freerdp/gdi/line.h
include/freerdp/gdi/palette.h
include/freerdp/gdi/pen.h
include/freerdp/gdi/region.h
include/freerdp/gdi/shape.h
include/freerdp/locale/locale.h
include/freerdp/locale/timezone.h
include/freerdp/metrics.h
include/freerdp/server/cliprdr.h
include/freerdp/server/drdynvc.h
include/freerdp/server/encomsp.h
include/freerdp/server/rdpdr.h
include/freerdp/server/remdesk.h

index 384ce1f..d797f84 100644 (file)
@@ -186,6 +186,10 @@ typedef struct AUDIO_FORMAT AUDIO_FORMAT;
  * Audio Format Functions
  */
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API UINT32 rdpsnd_compute_audio_time_length(AUDIO_FORMAT* format, int size);
 
 FREERDP_API char* rdpsnd_get_audio_tag_string(UINT16 wFormatTag);
@@ -195,4 +199,8 @@ FREERDP_API void rdpsnd_print_audio_formats(AUDIO_FORMAT* formats, UINT16 count)
 
 FREERDP_API void rdpsnd_free_audio_formats(AUDIO_FORMAT* formats, UINT16 count);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CODEC_AUDIO_H */
index d96cfbd..205bc44 100644 (file)
@@ -38,6 +38,10 @@ struct _BITMAP_INTERLEAVED_CONTEXT
        wStream* bts;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int interleaved_decompress(BITMAP_INTERLEAVED_CONTEXT* interleaved, BYTE* pSrcData, UINT32 SrcSize, int bpp,
                BYTE** ppDstData, DWORD DstFormat, int nDstStep, int nXDst, int nYDst, int nWidth, int nHeight, BYTE* palette);
 
@@ -49,5 +53,9 @@ FREERDP_API int bitmap_interleaved_context_reset(BITMAP_INTERLEAVED_CONTEXT* int
 FREERDP_API BITMAP_INTERLEAVED_CONTEXT* bitmap_interleaved_context_new(BOOL Compressor);
 FREERDP_API void bitmap_interleaved_context_free(BITMAP_INTERLEAVED_CONTEXT* interleaved);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CODEC_INTERLEAVED_H */
 
index 637cdc6..197f0b4 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/types.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API BOOL jpeg_decompress(BYTE* input, BYTE* output, int width, int height, int size, int bpp);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CODEC_JPEG_H */
index 4f2861a..64b741d 100644 (file)
@@ -97,6 +97,10 @@ struct _BITMAP_PLANAR_CONTEXT
        BYTE* TempBuffer;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int freerdp_split_color_planes(BYTE* data, UINT32 format, int width, int height, int scanline, BYTE* planes[4]);
 FREERDP_API BYTE* freerdp_bitmap_planar_compress_plane_rle(BYTE* plane, int width, int height, BYTE* outPlane, int* dstSize);
 FREERDP_API BYTE* freerdp_bitmap_planar_delta_encode_plane(BYTE* inPlane, int width, int height, BYTE* outPlane);
@@ -113,5 +117,9 @@ FREERDP_API void freerdp_bitmap_planar_context_free(BITMAP_PLANAR_CONTEXT* conte
 FREERDP_API int planar_decompress(BITMAP_PLANAR_CONTEXT* planar, BYTE* pSrcData, UINT32 SrcSize,
                BYTE** ppDstData, DWORD DstFormat, int nDstStep, int nXDst, int nYDst, int nWidth, int nHeight, BOOL vFlip);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CODEC_PLANAR_H */
 
index 2f1e4d4..0e8b2f4 100644 (file)
@@ -55,11 +55,19 @@ struct rdp_codecs
        BITMAP_INTERLEAVED_CONTEXT* interleaved;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int freerdp_client_codecs_prepare(rdpCodecs* codecs, UINT32 flags);
 FREERDP_API int freerdp_client_codecs_reset(rdpCodecs* codecs, UINT32 flags);
 
 FREERDP_API rdpCodecs* codecs_new(rdpContext* context);
 FREERDP_API void codecs_free(rdpCodecs* codecs);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CODECS_H */
 
index 59e1cce..546b19c 100644 (file)
 
 #define BER_PC(_pc)    (_pc ? BER_CONSTRUCT : BER_PRIMITIVE)
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API BOOL ber_read_length(wStream* s, int* length);
 FREERDP_API int ber_write_length(wStream* s, int length);
 FREERDP_API int _ber_sizeof_length(int length);
@@ -81,4 +85,8 @@ FREERDP_API int ber_write_integer(wStream* s, UINT32 value);
 FREERDP_API BOOL ber_read_integer_length(wStream* s, int* length);
 FREERDP_API int ber_sizeof_integer(UINT32 value);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CRYPTO_BER_H */
index d634c90..5378296 100644 (file)
@@ -47,6 +47,10 @@ struct rdp_certificate_store
        rdpCertificateData* certificate_data;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API rdpCertificateData* certificate_data_new(char* hostname, char* fingerprint);
 FREERDP_API void certificate_data_free(rdpCertificateData* certificate_data);
 FREERDP_API rdpCertificateStore* certificate_store_new(rdpSettings* settings);
@@ -55,4 +59,8 @@ FREERDP_API void certificate_store_free(rdpCertificateStore* certificate_store);
 FREERDP_API int certificate_data_match(rdpCertificateStore* certificate_store, rdpCertificateData* certificate_data);
 FREERDP_API void certificate_data_print(rdpCertificateStore* certificate_store, rdpCertificateData* certificate_data);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CRYPTO_CERTIFICATE_H */
index e642deb..f699630 100644 (file)
@@ -74,6 +74,10 @@ struct crypto_cert_struct
        X509 * px509;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 #define        CRYPTO_SHA1_DIGEST_LENGTH       SHA_DIGEST_LENGTH
 typedef struct crypto_sha1_struct* CryptoSha1;
 
@@ -146,4 +150,8 @@ FREERDP_API void crypto_nonce(BYTE* nonce, int size);
 FREERDP_API char* crypto_base64_encode(const BYTE* data, int length);
 FREERDP_API void crypto_base64_decode(const char* enc_data, int length, BYTE** dec_data, int* res_length);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CRYPTO_H */
index 20ace5f..3e75a4d 100644 (file)
 
 #include <freerdp/crypto/er.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int _der_skip_length(int length);
 FREERDP_API int der_write_length(wStream* s, int length);
 FREERDP_API int der_get_content_length(int length);
@@ -32,4 +36,8 @@ FREERDP_API int der_skip_contextual_tag(int length);
 FREERDP_API int der_write_contextual_tag(wStream* s, BYTE tag, int length, BOOL pc);
 FREERDP_API void der_write_octet_string(wStream* s, BYTE* oct_str, int length);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CRYPTO_DER_H */
index 91110e1..5fab63d 100644 (file)
 
 #define ER_PC(_pc)     (_pc ? ER_CONSTRUCT : ER_PRIMITIVE)
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API void er_read_length(wStream* s, int* length);
 FREERDP_API int er_write_length(wStream* s, int length, BOOL flag);
 FREERDP_API int _er_skip_length(int length);
@@ -87,4 +91,8 @@ FREERDP_API int er_write_integer(wStream* s, INT32 value);
 FREERDP_API BOOL er_read_integer_length(wStream* s, int* length);
 FREERDP_API int er_skip_integer(INT32 value);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CRYPTO_ER_H */
index 60487a8..e53cabb 100644 (file)
 
 #include <winpr/stream.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API BOOL per_read_length(wStream* s, UINT16* length);
 FREERDP_API void per_write_length(wStream* s, int length);
 FREERDP_API BOOL per_read_choice(wStream* s, BYTE* choice);
@@ -47,4 +51,8 @@ FREERDP_API void per_write_octet_string(wStream* s, BYTE* oct_str, int length, i
 FREERDP_API BOOL per_read_numeric_string(wStream* s, int min);
 FREERDP_API void per_write_numeric_string(wStream* s, BYTE* num_str, int length, int min);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CRYPTO_PER_H */
index fcc06d2..0d03279 100644 (file)
@@ -83,6 +83,10 @@ struct rdp_tls
        BOOL isGatewayTransport;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int tls_connect(rdpTls* tls, BIO *underlying);
 FREERDP_API BOOL tls_accept(rdpTls* tls, BIO *underlying, const char* cert_file, const char* privatekey_file);
 FREERDP_API BOOL tls_disconnect(rdpTls* tls);
@@ -101,4 +105,8 @@ FREERDP_API BOOL tls_print_error(char* func, SSL* connection, int value);
 FREERDP_API rdpTls* tls_new(rdpSettings* settings);
 FREERDP_API void tls_free(rdpTls* tls);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CRYPTO_TLS_H */
index 25cb21c..afa10d2 100644 (file)
 
 typedef int (*pLineTo_16bpp)(HGDI_DC hdc, int nXEnd, int nYEnd);
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API UINT16 gdi_get_color_16bpp(HGDI_DC hdc, GDI_COLOR color);
 
 FREERDP_API int FillRect_16bpp(HGDI_DC hdc, HGDI_RECT rect, HGDI_BRUSH hbr);
@@ -33,4 +37,8 @@ FREERDP_API int BitBlt_16bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nWidth
 FREERDP_API int PatBlt_16bpp(HGDI_DC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, int rop);
 FREERDP_API int LineTo_16bpp(HGDI_DC hdc, int nXEnd, int nYEnd);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_16BPP_H */
index f33a428..cb91397 100644 (file)
 
 typedef int (*pLineTo_32bpp)(HGDI_DC hdc, int nXEnd, int nYEnd);
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API UINT32 gdi_get_color_32bpp(HGDI_DC hdc, GDI_COLOR color);
 
 FREERDP_API int FillRect_32bpp(HGDI_DC hdc, HGDI_RECT rect, HGDI_BRUSH hbr);
@@ -33,4 +37,8 @@ FREERDP_API int BitBlt_32bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nWidth
 FREERDP_API int PatBlt_32bpp(HGDI_DC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, int rop);
 FREERDP_API int LineTo_32bpp(HGDI_DC hdc, int nXEnd, int nYEnd);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_32BPP_H */
index 31b64bb..b609eac 100644 (file)
 
 typedef int (*pLineTo_8bpp)(HGDI_DC hdc, int nXEnd, int nYEnd);
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API BYTE gdi_get_color_8bpp(HGDI_DC hdc, GDI_COLOR color);
 
 FREERDP_API int FillRect_8bpp(HGDI_DC hdc, HGDI_RECT rect, HGDI_BRUSH hbr);
@@ -33,4 +37,8 @@ FREERDP_API int BitBlt_8bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nWidth,
 FREERDP_API int PatBlt_8bpp(HGDI_DC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, int rop);
 FREERDP_API int LineTo_8bpp(HGDI_DC hdc, int nXEnd, int nYEnd);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_8BPP_H */
index 976bb0b..c34713c 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API GDI_COLOR gdi_GetPixel(HGDI_DC hdc, int nXPos, int nYPos);
 FREERDP_API GDI_COLOR gdi_SetPixel(HGDI_DC hdc, int X, int Y, GDI_COLOR crColor);
 FREERDP_API BYTE gdi_GetPixel_8bpp(HGDI_BITMAP hBmp, int X, int Y);
@@ -40,4 +44,8 @@ FREERDP_API int gdi_BitBlt(HGDI_DC hdcDest, int nXDest, int nYDest, int nWidth,
 
 typedef int (*p_BitBlt)(HGDI_DC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HGDI_DC hdcSrc, int nXSrc, int nYSrc, int rop);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_BITMAP_H */
index 10b81cb..5313664 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API HGDI_BRUSH gdi_CreateSolidBrush(GDI_COLOR crColor);
 FREERDP_API HGDI_BRUSH gdi_CreatePatternBrush(HGDI_BITMAP hbmp);
 FREERDP_API HGDI_BRUSH gdi_CreateHatchBrush(HGDI_BITMAP hbmp);
 FREERDP_API int gdi_PatBlt(HGDI_DC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, int rop);
 
+#ifdef __cplusplus
+ }
+#endif
+
 typedef int (*p_PatBlt)(HGDI_DC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight, int rop);
 
 #endif /* FREERDP_GDI_BRUSH_H */
index 0b2c476..75470f6 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int gdi_SetClipRgn(HGDI_DC hdc, int nXLeft, int nYLeft, int nWidth, int nHeight);
 FREERDP_API HGDI_RGN gdi_GetClipRgn(HGDI_DC hdc);
 FREERDP_API int gdi_SetNullClipRgn(HGDI_DC hdc);
 FREERDP_API int gdi_ClipCoords(HGDI_DC hdc, int *x, int *y, int *w, int *h, int *srcx, int *srcy);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_CLIPPING_H */
index ed6963e..5c66903 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API HGDI_DC gdi_GetDC(void);
 FREERDP_API HGDI_DC gdi_CreateDC(UINT32 flags, int bpp);
 FREERDP_API HGDI_DC gdi_CreateCompatibleDC(HGDI_DC hdc);
@@ -30,4 +34,8 @@ FREERDP_API HGDIOBJECT gdi_SelectObject(HGDI_DC hdc, HGDIOBJECT hgdiobject);
 FREERDP_API int gdi_DeleteObject(HGDIOBJECT hgdiobject);
 FREERDP_API int gdi_DeleteDC(HGDI_DC hdc);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_DC_H */
index d1b99b8..536ea30 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int gdi_GetROP2(HGDI_DC hdc);
 FREERDP_API int gdi_SetROP2(HGDI_DC hdc, int fnDrawMode);
 FREERDP_API GDI_COLOR gdi_GetBkColor(HGDI_DC hdc);
@@ -31,4 +35,8 @@ FREERDP_API int gdi_GetBkMode(HGDI_DC hdc);
 FREERDP_API int gdi_SetBkMode(HGDI_DC hdc, int iBkMode);
 FREERDP_API GDI_COLOR gdi_SetTextColor(HGDI_DC hdc, GDI_COLOR crColor);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_DRAWING_H */
index bd30cc4..18014cf 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int gdi_LineTo(HGDI_DC hdc, int nXEnd, int nYEnd);
 FREERDP_API int gdi_PolylineTo(HGDI_DC hdc, GDI_POINT *lppt, int cCount);
 FREERDP_API int gdi_Polyline(HGDI_DC hdc, GDI_POINT *lppt, int cPoints);
 FREERDP_API int gdi_PolyPolyline(HGDI_DC hdc, GDI_POINT *lppt, int *lpdwPolyPoints, int cCount);
 FREERDP_API int gdi_MoveToEx(HGDI_DC hdc, int X, int Y, HGDI_POINT lpPoint);
 
+#ifdef __cplusplus
+ }
+#endif
+
 typedef int (*p_LineTo)(HGDI_DC hdc, int nXEnd, int nYEnd);
 
 #endif /* FREERDP_GDI_LINE_H */
index 8ed2ec1..bca2849 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API HGDI_PALETTE gdi_CreatePalette(HGDI_PALETTE palette);
 FREERDP_API HGDI_PALETTE gdi_GetSystemPalette(void);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_PALETTE_H */
index cc49044..c4b5a7e 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API HGDI_PEN gdi_CreatePen(int fnPenStyle, int nWidth, int crColor);
 FREERDP_API BYTE gdi_GetPenColor_8bpp(HGDI_PEN pen);
 FREERDP_API UINT16 gdi_GetPenColor_16bpp(HGDI_PEN pen);
 FREERDP_API UINT32 gdi_GetPenColor_32bpp(HGDI_PEN pen);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_PEN_H */
index 0935451..be32691 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API HGDI_RGN gdi_CreateRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
 FREERDP_API HGDI_RECT gdi_CreateRect(int xLeft, int yTop, int xRight, int yBottom);
 FREERDP_API void gdi_RectToRgn(HGDI_RECT rect, HGDI_RGN rgn);
@@ -42,4 +46,8 @@ FREERDP_API int gdi_CopyRect(HGDI_RECT dst, HGDI_RECT src);
 FREERDP_API int gdi_PtInRect(HGDI_RECT rc, int x, int y);
 FREERDP_API int gdi_InvalidateRegion(HGDI_DC hdc, int x, int y, int w, int h);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_REGION_H */
index 1fdf9ab..9b96324 100644 (file)
 #include <freerdp/api.h>
 #include <freerdp/gdi/gdi.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API int gdi_Ellipse(HGDI_DC hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
 FREERDP_API int gdi_FillRect(HGDI_DC hdc, HGDI_RECT rect, HGDI_BRUSH hbr);
 FREERDP_API int gdi_Polygon(HGDI_DC hdc, GDI_POINT *lpPoints, int nCount);
@@ -31,4 +35,8 @@ FREERDP_API int gdi_Rectangle(HGDI_DC hdc, int nLeftRect, int nTopRect, int nRig
 
 typedef int (*p_FillRect)(HGDI_DC hdc, HGDI_RECT rect, HGDI_BRUSH hbr);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_GDI_SHAPE_H */
index c36c102..d2b767b 100644 (file)
 #define YORUBA                                         0x046A
 #define ZULU                                           0x0435
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API DWORD freerdp_get_system_locale_id(void);
 FREERDP_API const char* freerdp_get_system_locale_name_from_id(DWORD localeId);
 FREERDP_API int freerdp_detect_keyboard_layout_from_system_locale(DWORD* keyboardLayoutId);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_LOCALE_H */
index d4d14a2..1d062c8 100644 (file)
 #include <freerdp/types.h>
 #include <freerdp/settings.h>
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API void freerdp_time_zone_detect(TIME_ZONE_INFO* clientTimeZone);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_LOCALE_TIMEZONE_H */
index 5b453ce..8706aa3 100644 (file)
@@ -31,10 +31,18 @@ struct rdp_metrics
        double TotalCompressionRatio;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API double metrics_write_bytes(rdpMetrics* metrics, UINT32 UncompressedBytes, UINT32 CompressedBytes);
 
 FREERDP_API rdpMetrics* metrics_new(rdpContext* context);
 FREERDP_API void metrics_free(rdpMetrics* metrics);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_METRICS_H */
 
index c7d881c..dd41b93 100644 (file)
@@ -47,7 +47,15 @@ struct _cliprdr_server_context
        CliprdrServerPrivate* priv;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API CliprdrServerContext* cliprdr_server_context_new(HANDLE vcm);
 FREERDP_API void cliprdr_server_context_free(CliprdrServerContext* context);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CHANNEL_SERVER_CLIPRDR_H */
index 9b41126..be1693a 100644 (file)
@@ -44,7 +44,15 @@ struct _drdynvc_client_context
        DrdynvcServerPrivate* priv;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API DrdynvcServerContext* drdynvc_server_context_new(HANDLE vcm);
 FREERDP_API void drdynvc_server_context_free(DrdynvcServerContext* context);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CHANNEL_SERVER_DRDYNVC_H */
index dd1f9eb..a5037e6 100644 (file)
@@ -71,7 +71,15 @@ struct _encomsp_server_context
        EncomspServerPrivate* priv;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API EncomspServerContext* encomsp_server_context_new(HANDLE vcm);
 FREERDP_API void encomsp_server_context_free(EncomspServerContext* context);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CHANNEL_SERVER_ENCOMSP_H */
index 3fe23e8..af9c3c4 100644 (file)
@@ -45,7 +45,15 @@ struct _rdpdr_server_context
        RdpdrServerPrivate* priv;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API RdpdrServerContext* rdpdr_server_context_new(HANDLE vcm);
 FREERDP_API void rdpdr_server_context_free(RdpdrServerContext* context);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CHANNEL_SERVER_RDPDR_H */
index b2c3f11..c817a19 100644 (file)
@@ -47,8 +47,16 @@ struct _remdesk_server_context
        RemdeskServerPrivate* priv;
 };
 
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
 FREERDP_API RemdeskServerContext* remdesk_server_context_new(HANDLE vcm);
 FREERDP_API void remdesk_server_context_free(RemdeskServerContext* context);
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif /* FREERDP_CHANNEL_SERVER_REMDESK_H */