webui: replace nautctl web server with a loadable plugin
Drop the web UI that was compiled into nautctl and serve the torrent-ui front end (../torrent-ui/public) from a native plugin (plugins/webui) loaded via `nautd --plugin`. The plugin talks to the engine only through the host call_rpc ABI and adapts the daemon's RPC surface to the qBittorrent-style contract the UI expects (snapshot/SSE, torrent detail tabs, add/delete, cookie auth). Also folds in the daemon refactor that owns per-torrent worker threads and the swarm engine (naut_swarm) used by the plugin's data source. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
50a357968a
commit
8dde48c05a
27 changed files with 2706 additions and 403 deletions
|
|
@ -67,6 +67,11 @@ typedef void (*naut_file_complete_cb)(void *ctx, uint32_t file_index, const char
|
|||
void naut_download_set_file_cb(naut_download *d, naut_file_complete_cb cb, void *ctx);
|
||||
bool naut_download_file_complete(const naut_download *d, uint32_t file_index);
|
||||
|
||||
/* Optional owner-thread notification after a piece verifies and is persisted. */
|
||||
typedef void (*naut_piece_complete_cb)(void *ctx, uint32_t piece_index);
|
||||
void naut_download_set_piece_cb(naut_download *d, naut_piece_complete_cb cb,
|
||||
void *ctx);
|
||||
|
||||
/* Hand out the next block to request. false => nothing left to hand out right
|
||||
* now (all blocks have been requested). */
|
||||
bool naut_download_next_request(naut_download *d,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue