aboutsummaryrefslogtreecommitdiffstats
path: root/utils/ir-ctl/bpf_encoder.h
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2019-09-06 13:45:41 +0100
committerSean Young <sean@mess.org>2019-09-06 23:07:21 +0100
commit995ad54ce8bc1bde36f44d035dba805b1b2ea011 (patch)
tree37e54cb19e39bfca32cf6cca05dc5fb26846220d /utils/ir-ctl/bpf_encoder.h
parentdd79397d3abf1be875224aad3b62efab53457a73 (diff)
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 <sean@mess.org>
Diffstat (limited to 'utils/ir-ctl/bpf_encoder.h')
-rw-r--r--utils/ir-ctl/bpf_encoder.h7
1 files changed, 7 insertions, 0 deletions
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

Privacy Policy