~brianaker/libmemcached/embedded

« back to all changes in this revision

Viewing changes to clients/utilities.h

  • Committer: brian@gir-2.local
  • Date: 2008-03-10 15:04:41 UTC
  • mto: (317.6.1)
  • mto: This revision was merged to the branch mainline in revision 321.
  • Revision ID: brian@gir-2.local-20080310150441-jyhbjx6bwo46f6tg
Huge refactoring of directory structure.

Show diffs side-by-side

added added

removed removed

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