MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / RRTransInit

Function RRTransInit

server/testplugin.cpp:59–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57extern "C" {
58
59void *RRTransInit(Display *dpy, Window win_, FakerConfig *fconfig_)
60{
61 _vgl_disableFaker();
62
63 void *handle = NULL;
64 try
65 {
66 #ifdef USEHELGRIND
67 ANNOTATE_BENIGN_RACE_SIZED(&fconfig, sizeof(FakerConfig *), );
68 #endif
69 fconfig = fconfig_;
70 win = win_;
71 handle = (void *)(new VGLTrans());
72 }
73 catch(std::exception &e)
74 {
75 snprintf(errStr, MAXSTR + 14, "Error in %s -- %s", GET_METHOD(e),
76 e.what());
77 handle = NULL;
78 }
79
80 _vgl_enableFaker();
81
82 return handle;
83}
84
85
86int RRTransConnect(void *handle, char *receiverName, int port)

Callers

nothing calls this directly

Calls 3

whatMethod · 0.80
_vgl_disableFakerFunction · 0.70
_vgl_enableFakerFunction · 0.70

Tested by

no test coverage detected