summaryrefslogtreecommitdiffstats
path: root/src/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h
index c1ce388..4b35f82 100644
--- a/src/core.h
+++ b/src/core.h
@@ -55,6 +55,11 @@ static inline int tip_client_socket(const struct tip_client *cli)
return cli->io.fd;
}
+static inline bool tip_client_large_file(const struct tip_client *cli)
+{
+ return cli->size > FILE_SIZE_THRESHOLD;
+}
+
void tip_client_pending(struct tip_client *cli);
bool tip_client_redirect(struct tip_client *cli);