infra: hide some brick internals

This commit is contained in:
Thomas Schoebel-Theuer 2013-10-15 08:48:41 +02:00 committed by Thomas Schoebel-Theuer
parent 5034febb19
commit 34e208a60b

View File

@ -509,6 +509,8 @@ extern inline struct BRITYPE##_##OBJTYPE##_aspect *BRITYPE##_##OBJTYPE##_get_asp
// some general helpers
#ifdef _STRATEGY // call this only from the strategy implementation
/* Generic interface to simple brick status changes.
*/
extern void set_button(struct generic_switch *sw, bool val, bool force);
@ -519,6 +521,8 @@ extern void set_led_off(struct generic_switch *sw, bool val);
*/
extern void set_button_wait(struct generic_brick *brick, bool val, bool force, int timeout);
#endif
/////////////////////////////////////////////////////////////////////////
// thread automation (avoid code duplication)