1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-07-31 22:56:22 +00:00
seafile-server/server/zip-download-mgr.h
feiniks 98315cce73
Add option to build http server (#648)
* Add option to build httpserver

* Add option to build libevhtp

* Delete unused option

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-13 19:38:44 +08:00

41 lines
985 B
C

#ifndef ZIP_DOWNLOAD_MGR_H
#define ZIP_DOWNLOAD_MGR_H
#ifdef HAVE_EVHTP
#include "seafile-object.h"
struct ZipDownloadMgrPriv;
typedef struct ZipDownloadMgr {
struct ZipDownloadMgrPriv *priv;
} ZipDownloadMgr;
ZipDownloadMgr *
zip_download_mgr_new ();
int
zip_download_mgr_start_zip_task (ZipDownloadMgr *mgr,
const char *token,
SeafileWebAccess *info,
GError **error);
char *
zip_download_mgr_query_zip_progress (ZipDownloadMgr *mgr,
const char *token, GError **error);
char *
zip_download_mgr_get_zip_file_path (ZipDownloadMgr *mgr,
const char *token);
void
zip_download_mgr_del_zip_progress (ZipDownloadMgr *mgr,
const char *token);
int
zip_download_mgr_cancel_zip_task (ZipDownloadMgr *mgr,
const char *token);
#endif
#endif