src/streamfer-client: *.last: Use ".new" + rename
[nethome.git] / src / streamfer.h
1 #ifndef STREAMFER_H
2 #define STREAMFER_H 1
3
4 #include <cstdarg>
5 #include <cstdio>
6 #include <cassert>
7 #include <cstdlib>
8 #include <cstdint>
9 using namespace std;
10
11 #define PRINTF(f,a) __attribute__((format(printf,f,a)))
12 #define UNUSED __attribute__((unused))
13
14 void warning(const char *msg,...);
15 void fatal(const char *msg,...);
16
17 uint64_t transfer(int from_fd,const char *from_fn,int to_fd,const char *to_fn);
18
19 #endif // STREAMFER_H