include/freerdp/cache: fix missing extern C decls.
authorVic Lee <llyzs@163.com>
Mon, 21 Jan 2013 05:05:58 +0000 (13:05 +0800)
committerVic Lee <llyzs@163.com>
Mon, 21 Jan 2013 05:05:58 +0000 (13:05 +0800)
include/freerdp/cache/bitmap.h
include/freerdp/cache/brush.h
include/freerdp/cache/cache.h
include/freerdp/cache/glyph.h
include/freerdp/cache/nine_grid.h
include/freerdp/cache/offscreen.h
include/freerdp/cache/palette.h
include/freerdp/cache/pointer.h

index 4cdbc33..6a68b80 100644 (file)
@@ -59,6 +59,10 @@ struct rdp_bitmap_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API rdpBitmap* bitmap_cache_get(rdpBitmapCache* bitmap_cache, UINT32 id, UINT32 index);
 FREERDP_API void bitmap_cache_put(rdpBitmapCache* bitmap_cache, UINT32 id, UINT32 index, rdpBitmap* bitmap);
 
@@ -67,4 +71,8 @@ FREERDP_API void bitmap_cache_register_callbacks(rdpUpdate* update);
 FREERDP_API rdpBitmapCache* bitmap_cache_new(rdpSettings* settings);
 FREERDP_API void bitmap_cache_free(rdpBitmapCache* bitmap_cache);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_BITMAP_V2_CACHE_H */
index 68ab5b8..93d1fd6 100644 (file)
@@ -56,6 +56,10 @@ struct rdp_brush_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API void* brush_cache_get(rdpBrushCache* brush, UINT32 index, UINT32* bpp);
 FREERDP_API void brush_cache_put(rdpBrushCache* brush, UINT32 index, void* entry, UINT32 bpp);
 
@@ -64,4 +68,8 @@ FREERDP_API void brush_cache_register_callbacks(rdpUpdate* update);
 FREERDP_API rdpBrushCache* brush_cache_new(rdpSettings* settings);
 FREERDP_API void brush_cache_free(rdpBrushCache* brush);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_BRUSH_CACHE_H */
index ead8cd7..7b0dbe4 100644 (file)
@@ -48,7 +48,15 @@ struct rdp_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API rdpCache* cache_new(rdpSettings* settings);
 FREERDP_API void cache_free(rdpCache* cache);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_CACHE_H */
index a295695..4e19398 100644 (file)
@@ -59,6 +59,10 @@ struct rdp_glyph_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API rdpGlyph* glyph_cache_get(rdpGlyphCache* glyph_cache, UINT32 id, UINT32 index);
 FREERDP_API void glyph_cache_put(rdpGlyphCache* glyph_cache, UINT32 id, UINT32 index, rdpGlyph* entry);
 
@@ -70,4 +74,8 @@ FREERDP_API void glyph_cache_register_callbacks(rdpUpdate* update);
 FREERDP_API rdpGlyphCache* glyph_cache_new(rdpSettings* settings);
 FREERDP_API void glyph_cache_free(rdpGlyphCache* glyph);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_GLYPH_CACHE_H */
index 0b0c18d..77e0f46 100644 (file)
@@ -52,6 +52,10 @@ struct rdp_nine_grid_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API void* nine_grid_cache_get(rdpNineGridCache* nine_grid, UINT32 index);
 FREERDP_API void nine_grid_cache_put(rdpNineGridCache* nine_grid, UINT32 index, void* entry);
 
@@ -60,4 +64,8 @@ FREERDP_API void nine_grid_cache_register_callbacks(rdpUpdate* update);
 FREERDP_API rdpNineGridCache* nine_grid_cache_new(rdpSettings* settings);
 FREERDP_API void nine_grid_cache_free(rdpNineGridCache* nine_grid);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_NINE_GRID_CACHE_H */
index c690426..4da367b 100644 (file)
@@ -43,6 +43,10 @@ struct rdp_offscreen_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API rdpBitmap* offscreen_cache_get(rdpOffscreenCache* offscreen_cache, UINT32 index);
 FREERDP_API void offscreen_cache_put(rdpOffscreenCache* offscreen_cache, UINT32 index, rdpBitmap* bitmap);
 FREERDP_API void offscreen_cache_delete(rdpOffscreenCache* offscreen, UINT32 index);
@@ -52,4 +56,8 @@ FREERDP_API void offscreen_cache_register_callbacks(rdpUpdate* update);
 FREERDP_API rdpOffscreenCache* offscreen_cache_new(rdpSettings* settings);
 FREERDP_API void offscreen_cache_free(rdpOffscreenCache* offscreen);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_OFFSCREEN_CACHE_H */
index 88f10ea..6e7d890 100644 (file)
@@ -46,6 +46,10 @@ struct rdp_palette_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API void* palette_cache_get(rdpPaletteCache* palette, UINT32 index);
 FREERDP_API void palette_cache_put(rdpPaletteCache* palette, UINT32 index, void* entry);
 
@@ -54,4 +58,8 @@ FREERDP_API void palette_cache_register_callbacks(rdpUpdate* update);
 FREERDP_API rdpPaletteCache* palette_cache_new(rdpSettings* settings);
 FREERDP_API void palette_cache_free(rdpPaletteCache* palette_cache);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_PALETTE_CACHE_H */
index f3a09fc..ccfeae0 100644 (file)
@@ -42,6 +42,10 @@ struct rdp_pointer_cache
        rdpSettings* settings;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 FREERDP_API rdpPointer* pointer_cache_get(rdpPointerCache* pointer_cache, UINT32 index);
 FREERDP_API void pointer_cache_put(rdpPointerCache* pointer_cache, UINT32 index, rdpPointer* pointer);
 
@@ -50,4 +54,8 @@ FREERDP_API void pointer_cache_register_callbacks(rdpUpdate* update);
 FREERDP_API rdpPointerCache* pointer_cache_new(rdpSettings* settings);
 FREERDP_API void pointer_cache_free(rdpPointerCache* pointer_cache);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FREERDP_POINTER_CACHE_H */