httpd: Move starting the http server into C.

This commit is contained in:
2025-02-02 12:27:06 -05:00
parent b111d06851
commit bb0ed67827
7 changed files with 213 additions and 183 deletions

View File

@ -132,6 +132,14 @@ const char* tf_task_get_zip_path(tf_task_t* task);
*/
const char* tf_task_get_root_path(tf_task_t* task);
/**
** Get the path to use for reading a given loose file.
** @param task The task.
** @param path The path to the file.
** @return The path or NULL. Free with tf_free().
*/
const char* tf_task_get_path_with_root(tf_task_t* task, const char* path);
/**
** Set arbitrary named arguments that will be made available to the task.
** @param task The task.