| 55 | extern "C" { |
| 56 | |
| 57 | void *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 | |
| 85 | int RRTransConnect(void *handle, char *receiver_name, int port) |
nothing calls this directly
no test coverage detected