mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-01 23:33:42 +00:00
* Add option to build httpserver * Add option to build libevhtp * Delete unused option --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com>
30 lines
622 B
C
30 lines
622 B
C
#ifndef PACK_DIR_H
|
|
#define PACK_DIR_H
|
|
#ifdef HAVE_EVHTP
|
|
|
|
/* Pack a seafile directory to a zipped archive, saved in a temporary file.
|
|
Return the path of this temporary file.
|
|
*/
|
|
|
|
typedef struct Progress {
|
|
int zipped;
|
|
int total;
|
|
char *zip_file_path;
|
|
gint64 expire_ts;
|
|
gboolean canceled;
|
|
gboolean size_too_large;
|
|
gboolean internal_error;
|
|
} Progress;
|
|
|
|
int
|
|
pack_files (const char *store_id,
|
|
int repo_version,
|
|
const char *dirname,
|
|
void *internal,
|
|
SeafileCrypt *crypt,
|
|
gboolean is_windows,
|
|
Progress *progress);
|
|
#endif
|
|
|
|
#endif
|