From 995ad54ce8bc1bde36f44d035dba805b1b2ea011 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Fri, 6 Sep 2019 13:45:41 +0100 Subject: ir-ctl: support sending protocols decoded by BPF decoders Encode keymaps using xbox-dvd, pulse_distance, pulse_length and manchester protocols, matching what the BPF decoders decode. The kernel has no idea how to encode them so this must be done in userspace. Signed-off-by: Sean Young --- utils/ir-ctl/bpf_encoder.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 utils/ir-ctl/bpf_encoder.h (limited to 'utils/ir-ctl/bpf_encoder.h') diff --git a/utils/ir-ctl/bpf_encoder.h b/utils/ir-ctl/bpf_encoder.h new file mode 100644 index 00000000..5d1d43a9 --- /dev/null +++ b/utils/ir-ctl/bpf_encoder.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __BPF_ENCODER_H +#define __BPF_ENCODER_H + +bool encode_bpf_protocol(struct keymap *map, uint32_t scancode, int *buf, int *length); + +#endif -- cgit v1.2.1