Another question, since maapi_user/sys/prio_message() could output message into CLI both inside and outside an action, why there are still APIs of maapi_printf/write() functions? What’s the difference between them?
An actionpoint callback receive the confd_user_info *uinfo parameter that can be used with the maapi_cli_print/write functions to print to the CLI user that requested the action.