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

Function RRTransInit

server/testplugin2.cpp:57–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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