feat: rework on plugin support
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good

- New plugin interface that supports multiple instances
- Fix and improve memory bugs
- Refactory and cleanup lib
- Improve scheduler
This commit is contained in:
DanyLE
2024-03-13 18:07:07 +01:00
parent 3bedc3ffb5
commit 58a7738afe
19 changed files with 389 additions and 315 deletions

View File

@ -533,7 +533,7 @@ void antd_scheduler_destroy(antd_scheduler_t *scheduler)
*/
antd_task_t *antd_create_task(void *(*handle)(void *), void *data, void *(*callback)(void *), time_t atime)
{
antd_task_t *task = (antd_task_t *)malloc(sizeof *task);
antd_task_t *task = (antd_task_t *)malloc(sizeof(antd_task_t));
task->stamp = (unsigned long)time(NULL);
task->data = data;
task->handle = handle;