#pragma once #ifdef __cplusplus extern "C" { #endif #include "stellar/module_manager.h" struct stellar_polling_manager; struct stellar_polling_manager *stellar_module_get_polling_manager(struct stellar_module_manager *mod_mgr); typedef void module_on_polling_func(struct stellar_polling_manager* mod_mgr, void *polling_arg); //return 0 if success, otherwise return -1. int stellar_polling_subscribe(struct stellar_polling_manager* mod_mgr, module_on_polling_func on_polling, void *polling_arg); void stellar_polling_active(struct stellar_polling_manager *mod_mgr); #ifdef __cplusplus } #endif