- void call_event(_EVENT_ENUM id_event);
- void call_event(_EVENT_ENUM id_event, void * argument);
+ void call_event(_EVENT_ENUM id_event, void * argument= nullptr);
+
+ bool kernel_has_event(_EVENT_ENUM id_event, Module *module);
+ void unregister_for_event(_EVENT_ENUM id_event, Module *module);
+
+ bool is_using_leds() const { return use_leds; }
+ bool is_halted() const { return halted; }
+ bool is_grbl_mode() const { return grbl_mode; }
+ bool is_ok_per_line() const { return ok_per_line; }
+
+ void set_feed_hold(bool f) { feed_hold= f; }
+ bool get_feed_hold() const { return feed_hold; }
+ bool is_feed_hold_enabled() const { return enable_feed_hold; }
+
+ std::string get_query_string();