altos: Provide for a pre-filter on commands
[fw/altos] / src / ao.h
index 64f33f0b2c18a938320204709cd7e1e9173373fa..77f3259ee5ca5e22186c2662773314ce14cd2122 100644 (file)
--- 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
  */
@@ -1169,6 +1177,9 @@ struct ao_stdio {
        void    (*flush)(void);
 };
 
+extern __data int8_t ao_cur_stdio;
+extern __data int8_t ao_num_stdios;
+
 void
 flush(void);