summaryrefslogtreecommitdiff
path: root/src/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-01 14:07:23 -0700
committerKeith Packard <keithp@keithp.com>2011-04-01 14:07:23 -0700
commit01952da35a57ae4da062facb26b3c6d7de29190f (patch)
tree55fe738ea7be35faaadbec93a80bcd41e5513d43 /src/ao.h
parent359ba0d9fc2c5947e6adc98bebcd061069c61e79 (diff)
altos: Provide for a pre-filter on commands
This allows for external code to see each command line before it is processed and potentially skip it. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r--src/ao.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ao.h b/src/ao.h
index 2d2bbf82..77f3259e 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -403,6 +403,14 @@ ao_cmd_register(__code struct ao_cmds *cmds);
void
ao_cmd_init(void);
+#if HAS_CMD_FILTER
+/*
+ * Provided by an external module to filter raw command lines
+ */
+uint8_t
+ao_cmd_filter(void);
+#endif
+
/*
* ao_dma.c
*/