| 200 | |
| 201 | |
| 202 | int RRTransSendFrame(void *handle, RRFrame *frame, int sync) |
| 203 | { |
| 204 | _vgl_disableFaker(); |
| 205 | |
| 206 | int ret = 0; |
| 207 | try |
| 208 | { |
| 209 | VGLTrans *vglconn = (VGLTrans *)handle; |
| 210 | if(!vglconn) THROW("Invalid handle"); |
| 211 | Frame *f; |
| 212 | if(!frame || (f = (Frame *)frame->opaque) == NULL) |
| 213 | THROW("Invalid frame handle"); |
| 214 | f->hdr.qual = fconfig->qual; |
| 215 | f->hdr.subsamp = fconfig->subsamp; |
| 216 | f->hdr.winid = win; |
| 217 | vglconn->sendFrame(f); |
| 218 | delete frame; |
| 219 | } |
| 220 | catch(std::exception &e) |
| 221 | { |
| 222 | snprintf(errStr, MAXSTR + 14, "Error in %s -- %s", GET_METHOD(e), |
| 223 | e.what()); |
| 224 | ret = -1; |
| 225 | } |
| 226 | |
| 227 | _vgl_enableFaker(); |
| 228 | |
| 229 | return ret; |
| 230 | } |
| 231 | |
| 232 | |
| 233 | int RRTransDestroy(void *handle) |
nothing calls this directly
no test coverage detected