| 57 | extern "C" { |
| 58 | |
| 59 | void *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 | |
| 86 | int RRTransConnect(void *handle, char *receiverName, int port) |
nothing calls this directly
no test coverage detected