#include "lx.h" #include "proto.h" #include "internal.h" extern void lx_AllowEvents(LX_CONN *xc, LX_ALLOWMODE mode, LX_TIME time) { unsigned char req[8]; int proto_mode; if (xc->flags & XCF_FAIL) { lx__bad_call(xc,"lx_AllowEvents"); return; } proto_mode = lx__allowmode_to_proto(mode); if (proto_mode < 0) { lx__bad_call(xc,"lx_AllowEvents"); return; } req[0] = XP_REQ_AllowEvents; req[1] = proto_mode; w_card16(&req[2],2); w_card32(&req[4],time); lx__send_req(xc,&req[0],-1); }