Commit 26b291bf authored by dscho's avatar dscho

rfbclient.h: use 'extern "C"' to make it convenient to include from C++

parent 1060f747
...@@ -29,8 +29,8 @@ Oliver Mihatsch, Greg Sternberg, Werner Hofer, Giampiero Giancipoli, ...@@ -29,8 +29,8 @@ Oliver Mihatsch, Greg Sternberg, Werner Hofer, Giampiero Giancipoli,
Glenn Mabutt, Paul Kreiner, Erik Kunze, Mike Frysinger, Martin Waitz, Glenn Mabutt, Paul Kreiner, Erik Kunze, Mike Frysinger, Martin Waitz,
Mark McLoughlin, Paul Fox, Juan Jose Costello, Andre Leiadella, Mark McLoughlin, Paul Fox, Juan Jose Costello, Andre Leiadella,
Alberto Lusiani, Malvina Mazin, Dave Stuart, Rohit Kumar, Donald Dugger, Alberto Lusiani, Malvina Mazin, Dave Stuart, Rohit Kumar, Donald Dugger,
Steven Carr, Uwe Völker, Charles Coffing, Guillaume Rousse, and Steven Carr, Uwe Völker, Charles Coffing, Guillaume Rousse,
Alessandro Praduroux. Alessandro Praduroux, and Brad Hards.
Probably I forgot quite a few people sending a patch here and there, which Probably I forgot quite a few people sending a patch here and there, which
really made a difference. Without those, some obscure bugs still would really made a difference. Without those, some obscure bugs still would
......
2007-04-06 Brad Hards <bradh@users.sourceforge.net>
* rfb/rfbclient.h: use 'extern "C"' to make it convenient to
include from C++.
2007-04-05 Alessandro Praduroux <pradu@pradu.it> 2007-04-05 Alessandro Praduroux <pradu@pradu.it>
* rfb/rfb.h: do not misplace guards, which makes it possible to * rfb/rfb.h: do not misplace guards, which makes it possible to
double include rfb.h from C++. double include rfb.h from C++.
......
...@@ -54,6 +54,11 @@ ...@@ -54,6 +54,11 @@
#define DEFAULT_VIA_CMD \ #define DEFAULT_VIA_CMD \
(DEFAULT_SSH_CMD " -f -L %L:%H:%R %G sleep 20") (DEFAULT_SSH_CMD " -f -L %L:%H:%R %G sleep 20")
#if(defined __cplusplus)
extern "C"
{
#endif
/* vncrec */ /* vncrec */
typedef struct { typedef struct {
...@@ -322,5 +327,9 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv); ...@@ -322,5 +327,9 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv);
/* rfbClientCleanup() does not touch client->frameBuffer */ /* rfbClientCleanup() does not touch client->frameBuffer */
void rfbClientCleanup(rfbClient* client); void rfbClientCleanup(rfbClient* client);
#if(defined __cplusplus)
}
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment