mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-17 14:27:32 +00:00
* Add upload link and download link API * Use go 1.22 for ci * Go add upload link API * Add norm UTF8 path * Go add upload link API * Add seahub_settings.py * Add projectDir * Add download link API * Set and check etag * Add comment and set no-cache --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com>
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
#ifndef ZIP_DOWNLOAD_MGR_H
|
|
#define ZIP_DOWNLOAD_MGR_H
|
|
|
|
#ifdef HAVE_EVHTP
|
|
|
|
#include "seafile-object.h"
|
|
|
|
#define MULTI_DOWNLOAD_FILE_PREFIX "documents-export-"
|
|
|
|
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_start_zip_task_v2 (ZipDownloadMgr *mgr,
|
|
const char *repo_id,
|
|
const char *operation,
|
|
const char *user,
|
|
GList *dirent_list);
|
|
|
|
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);
|
|
|
|
char *
|
|
zip_download_mgr_get_zip_file_name (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
|