summaryrefslogtreecommitdiff
path: root/n/es-2006/src/ack.h
diff options
context:
space:
mode:
Diffstat (limited to 'n/es-2006/src/ack.h')
-rw-r--r--n/es-2006/src/ack.h27
1 files changed, 8 insertions, 19 deletions
diff --git a/n/es-2006/src/ack.h b/n/es-2006/src/ack.h
index 98b0dfa..c4bcd12 100644
--- a/n/es-2006/src/ack.h
+++ b/n/es-2006/src/ack.h
@@ -24,42 +24,31 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// }}}
+#include "common.h"
/** Module for telling upper class something important has occured ! */
-/* Do not use, it's only for the main */
-extern uint8_t ack_value;
-
/** List here what you want to tell to the world and put a description.
* You must use a different number for each code and it must be lower than 255
* of course ! */
#define ACK_NOTHING 0 /* Nothing to ack */
#define ACK_CONTACT_FRONT 1 /* Something in the front */
+#define ACK_BARILLET_BALL_FRONT 2 /* A ball has been get from the front
+ */
+#define ACK_BARILLET_BALL_REAR 3 /* Ball in the rear */
// FIXME, inline ? static ?
/** Reset ack status */
-void ack_reset (void)
-{
- ack_value = ACK_NOTHING;
-}
+void ack_reset (void);
/** Init to nothing. */
-void init_ack (void)
-{
- ack_reset ();
-}
+void ack_init (void);
/* Set an ack */
-void ack_set (uint8_t ack_code)
-{
- ack_value = ack_code;
-}
+void ack_set (uint8_t ack_code);
/* Get current ack */
-uint8_t ack_get (void)
-{
- return ack_value;
-}
+uint8_t ack_get (void);
#endif // ack_h