Fix from Trond for deprecation
[m6w6/libmemcached] / clients / utilities.h
1 #include <getopt.h>
2 #include <libmemcached/memcached.h>
3 #include "client_options.h"
4
5 #if TIME_WITH_SYS_TIME
6 # include <sys/time.h>
7 # include <time.h>
8 #else
9 # if HAVE_SYS_TIME_H
10 # include <sys/time.h>
11 # else
12 # include <time.h>
13 # endif
14 #endif
15
16 typedef struct memcached_programs_help_st memcached_programs_help_st;
17
18 struct memcached_programs_help_st
19 {
20 char *not_used_yet;
21 };
22
23 char *strdup_cleanup(const char *str);
24 void cleanup(void);
25 long int timedif(struct timeval a, struct timeval b);
26 void version_command(char *command_name);
27 void help_command(char *command_name, char *description,
28 const struct option *long_options,
29 memcached_programs_help_st *options);
30 void process_hash_option(memcached_st *memc, char *opt_hash);