afk.epic: Expose ep function to call send_cmd()

Signed-off-by: Eileen Yoon <eyn@gmx.com>
This commit is contained in:
Eileen Yoon 2024-01-30 10:46:40 +09:00 committed by Hector Martin
parent 48a92026cd
commit 5c5d3966f3

View file

@ -388,6 +388,9 @@ class EPICEndpoint(AFKRingBufEndpoint):
def send_notify(self, chan, call, **kwargs):
return self.serv_map[chan].send_notify(call.TYPE, call.ARGS.build(call.args), **kwargs)
def send_cmd(self, chan, type, data, retlen=None, **kwargs):
return self.serv_map[chan].send_cmd(type, data, retlen, **kwargs)
def send_epicv4(self, chan, ptype, category, type, seq, data, inline_len=0, **kwargs):
hdr = Container()
hdr.channel = chan