void tvh_hardware_delete ( tvh_hardware_t *th ) { // TODO LIST_REMOVE(th, th_link); idnode_unlink(&th->th_id); notify_reload("hardware"); }
void reload(void) { notify_reload(); restart(); conf_read(conf_file, do_vifs); /* Acknowledge client SIGHUP/reload */ notify_ready(NULL, uid, gid); }
int Comm_Timer_Handler::handle_timeout(const ZCE_Time_Value &now_time, const void *act /*= 0*/) { ZCE_UNUSED_ARG(act); // 定时更新时间 update_time(now_time); // reload配置 notify_reload(); // 处理监控 check_monitor(now_time); return SOAR_RET::SOAR_RET_SUCC; }
/* * Create entry */ void * tvh_hardware_create0 ( void *o, const idclass_t *idc, const char *uuid, htsmsg_t *conf ) { tvh_hardware_t *th = o; /* Create node */ if (idnode_insert(&th->th_id, uuid, idc, 0)) { free(o); return NULL; } /* Update list */ LIST_INSERT_HEAD(&tvh_hardware, th, th_link); /* Load config */ if (conf) idnode_load(&th->th_id, conf); notify_reload("hardware"); return o; }