xrdpapi: add cplusplus for header

master
Jay Sorg 13 years ago
parent 97ec29f9ff
commit 2aa53cbdd1

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

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

Loading…
Cancel
Save