// Copyright status: this file is in the public domain. #include "lx.h" #include "proto.h" #include "internal.h" void lx_CopyGC(LX_CONN *xc, LX_XID src, LX_XID dst, unsigned int mask) { unsigned char req[16]; if (xc->flags & XCF_FAIL) { lx__bad_call(xc,"lx_CopyGC"); return; } lx__nochain(xc); req[0] = XP_REQ_CopyGC; req[1] = 0; w_card16(&req[2],4); w_card32(&req[4],src); w_card32(&req[8],dst); w_card32(&req[12],mask); lx__send_req(xc,&req[0],-1); }