2016-08-10 06:53:33 +00:00
|
|
|
#ifndef PACK_DIR_H
|
|
|
|
#define PACK_DIR_H
|
|
|
|
|
|
|
|
/* 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;
|
2017-12-27 10:32:04 +00:00
|
|
|
gboolean canceled;
|
2021-07-09 03:21:18 +00:00
|
|
|
gboolean size_too_large;
|
2016-08-10 06:53:33 +00:00
|
|
|
} Progress;
|
|
|
|
|
|
|
|
int
|
|
|
|
pack_files (const char *store_id,
|
|
|
|
int repo_version,
|
|
|
|
const char *dirname,
|
|
|
|
void *internal,
|
|
|
|
SeafileCrypt *crypt,
|
|
|
|
gboolean is_windows,
|
|
|
|
Progress *progress);
|
|
|
|
|
|
|
|
#endif
|