xrdpapi: add cplusplus for header

This commit is contained in:
Jay Sorg 2012-08-02 16:22:01 -07:00
parent 97ec29f9ff
commit 2aa53cbdd1
2 changed files with 9 additions and 0 deletions

View File

@ -151,6 +151,7 @@ send_init(struct wts_obj* wts)
char initmsg[64];
memset(initmsg, 0, 64);
strncpy(initmsg, wts->name, 8);
if (!can_send(wts->fd, 500))
{
return 1;

View File

@ -24,6 +24,10 @@
#if !defined(XRDPAPI_H_)
#define XRDPAPI_H_
#ifdef __cplusplus
extern "C" {
#endif
#define WTS_CURRENT_SERVER_HANDLE 0
#define WTS_CURRENT_SESSION 0xffffffff
@ -59,4 +63,8 @@ WTSVirtualChannelQuery(void* hChannelHandle, WTS_VIRTUAL_CLASS WtsVirtualClass,
void
WTSFreeMemory(void* pMemory);
#ifdef __cplusplus
}
#endif
#endif /* XRDPAPI_H_ */