include: add missing extern C decls.

This commit is contained in:
Vic Lee
2013-01-22 22:42:01 +08:00
parent 7bd1c1a2b6
commit 104ff8169d
6 changed files with 48 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ typedef struct _FREERDP_ADDIN FREERDP_ADDIN;
typedef void* (*FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN)(LPCSTR pszName, LPSTR pszSubsystem, LPSTR pszType, DWORD dwFlags);
#ifdef __cplusplus
extern "C" {
#endif
FREERDP_API LPSTR freerdp_get_library_install_path();
FREERDP_API LPSTR freerdp_get_dynamic_addin_install_path();
@@ -57,5 +61,9 @@ FREERDP_API void* freerdp_load_dynamic_addin(LPCSTR pszFileName, LPCSTR pszPath,
FREERDP_API void* freerdp_load_dynamic_channel_addin_entry(LPCSTR pszName, LPSTR pszSubsystem, LPSTR pszType, DWORD dwFlags);
FREERDP_API void* freerdp_load_channel_addin_entry(LPCSTR pszName, LPSTR pszSubsystem, LPSTR pszType, DWORD dwFlags);
#ifdef __cplusplus
}
#endif
#endif /* FREERDP_COMMON_ADDIN_H */

View File

@@ -29,6 +29,10 @@ typedef struct rdp_glyph rdpGlyph;
#include <freerdp/types.h>
#include <freerdp/freerdp.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Bitmap Class */
typedef void (*pBitmap_New)(rdpContext* context, rdpBitmap* bitmap);
@@ -166,4 +170,8 @@ FREERDP_API void graphics_register_glyph(rdpGraphics* graphics, rdpGlyph* glyph)
FREERDP_API rdpGraphics* graphics_new(rdpContext* context);
FREERDP_API void graphics_free(rdpGraphics* graphics);
#ifdef __cplusplus
}
#endif
#endif /* FREERDP_GRAPHICS_H */

View File

@@ -74,6 +74,10 @@ struct rdp_input
UINT32 paddingB[32 - 21]; /* 21 */
};
#ifdef __cplusplus
extern "C" {
#endif
FREERDP_API void freerdp_input_send_synchronize_event(rdpInput* input, UINT32 flags);
FREERDP_API void freerdp_input_send_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code);
FREERDP_API void freerdp_input_send_keyboard_event_ex(rdpInput* input, BOOL down, UINT32 rdp_scancode);
@@ -81,4 +85,8 @@ FREERDP_API void freerdp_input_send_unicode_keyboard_event(rdpInput* input, UINT
FREERDP_API void freerdp_input_send_mouse_event(rdpInput* input, UINT16 flags, UINT16 x, UINT16 y);
FREERDP_API void freerdp_input_send_extended_mouse_event(rdpInput* input, UINT16 flags, UINT16 x, UINT16 y);
#ifdef __cplusplus
}
#endif
#endif /* FREERDP_INPUT_H */

View File

@@ -81,10 +81,18 @@ struct rdp_freerdp_peer
SEC_WINNT_AUTH_IDENTITY identity;
};
#ifdef __cplusplus
extern "C" {
#endif
FREERDP_API void freerdp_peer_context_new(freerdp_peer* client);
FREERDP_API void freerdp_peer_context_free(freerdp_peer* client);
FREERDP_API freerdp_peer* freerdp_peer_new(int sockfd);
FREERDP_API void freerdp_peer_free(freerdp_peer* client);
#ifdef __cplusplus
}
#endif
#endif /* FREERDP_PEER_H */

View File

@@ -193,6 +193,10 @@ typedef struct
void *hints;
} primitives_t;
#ifdef __cplusplus
extern "C" {
#endif
/* Prototypes for the externally-visible entrypoints. */
FREERDP_API void primitives_init(void);
FREERDP_API primitives_t *primitives_get(void);
@@ -204,4 +208,8 @@ FREERDP_API void primitives_flags_str(
size_t len);
FREERDP_API void primitives_deinit(void);
#ifdef __cplusplus
}
#endif
#endif /* !__PRIMITIVES_H_INCLUDED__ */

View File

@@ -970,6 +970,10 @@ struct rdp_settings
};
typedef struct rdp_settings rdpSettings;
#ifdef __cplusplus
extern "C" {
#endif
FREERDP_API rdpSettings* freerdp_settings_new(void* instance);
FREERDP_API void freerdp_settings_free(rdpSettings* settings);
@@ -989,4 +993,8 @@ FREERDP_API void freerdp_dynamic_channel_collection_add(rdpSettings* settings, A
FREERDP_API ADDIN_ARGV* freerdp_dynamic_channel_collection_find(rdpSettings* settings, const char* name);
FREERDP_API void freerdp_dynamic_channel_collection_free(rdpSettings* settings);
#ifdef __cplusplus
}
#endif
#endif /* FREERDP_SETTINGS_H */