The disable function is called when the mapper should be disabled. The mapper should then clean-up the node tree and stop listening to changes from trackers.
The enable function is called when the mapper should be enabled. The mapper should then create the node tree and start listening to changes from trackers.
The clear_state is called to clear the mapper's state. The mapper should clear all its internal data when this is called, so that enable can be called again. This call can only occur while the mapper is disabled.
SIM_INTERFACE(osa_mapper_control) { void (*disable)(conf_object_t *NOTNULL obj); bool (*enable)(conf_object_t *NOTNULL obj); void (*clear_state)(conf_object_t *NOTNULL obj); }; #define OSA_MAPPER_CONTROL_INTERFACE "osa_mapper_control"