test: guess_raw_type: unsigned delivery info
[libisds.git] / client / common.h
blobcdd76c20ef0d8d8cf9a79ab461c188ba55cd385d
1 #ifndef __COMMON_H__
2 #define __COMMON_H__
4 #include <isds.h>
6 #define url isds_testing_locator
7 extern char username[];
8 extern char password[];
10 void print_bool(const _Bool *boolean);
11 void print_longint(const long int *number);
12 void print_DbState(const long int state);
13 void print_date(const struct tm *date);
14 void print_DbOwnerInfo(const struct isds_DbOwnerInfo *info);
15 void print_DbUserInfo(const struct isds_DbUserInfo *info);
16 void print_timeval(const struct timeval *time);
17 void print_hash(const struct isds_hash *hash);
18 void print_envelope(const struct isds_envelope *envelope);
19 void print_message(const struct isds_message *message);
20 void print_copies(const struct isds_list *copies);
22 void compare_hashes(const struct isds_hash *hash1,
23 const struct isds_hash *hash2);
24 int progressbar(double upload_total, double upload_current,
25 double download_total, double download_current,
26 void *data);
28 int mmap_file(const char *file, int *fd, void **buffer, size_t *length);
29 int munmap_file(int fd, void *buffer, size_t length);
30 int save_data(const char *message, const void *data, const size_t length);
32 #endif