29 lines
1.6 KiB
C
29 lines
1.6 KiB
C
#ifndef FILE_SEND_H
|
|
#define FILE_SEND_H
|
|
|
|
#include "file_types.h"
|
|
#include <stdbool.h>
|
|
|
|
/* Client-side file send path. */
|
|
|
|
bool file_send_special(const File* file, int file_descriptor, bool use_metadata);
|
|
bool file_send_single_calls(File* file, int file_descriptor, bool use_metadata,
|
|
int compression_level, bool send_path);
|
|
bool file_send_single_calls_with_skip(File* file, int file_descriptor, bool use_metadata,
|
|
int compression_level, bool send_path,
|
|
char* const* skip_suffixes, int skip_count,
|
|
int compression_threads, bool send_xattrs);
|
|
/* Stream-compress an unloaded whole source file into a temp file and send it as
|
|
* the usual data frame (see file_send.c). */
|
|
bool file_send_compressed_stream_with_skip(File* file, int file_descriptor, bool use_metadata,
|
|
int compression_level, bool send_path,
|
|
char* const* skip_suffixes, int skip_count,
|
|
int compression_threads, bool send_xattrs);
|
|
bool file_send_sendfile(File* file, int file_descriptor, bool use_metadata, int compression_level,
|
|
bool send_path);
|
|
bool file_send_sendfile_with_skip(File* file, int file_descriptor, bool use_metadata,
|
|
int compression_level, bool send_path, char* const* skip_suffixes,
|
|
int skip_count, int compression_threads, bool send_xattrs);
|
|
|
|
#endif
|