2 * Copyright (C) 2006-2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
13 #include <libmemcached/memcached.h>
14 #include "libmemcached/watchpoint.h"
15 #include "client_options.h"
17 #if TIME_WITH_SYS_TIME
18 # include <sys/time.h>
22 # include <sys/time.h>
29 /* For some odd reason the option struct on solaris defines the argument
30 * as char* and not const char*
32 #define OPTIONSTRING char*
34 #define OPTIONSTRING const char*
37 typedef struct memcached_programs_help_st memcached_programs_help_st
;
39 struct memcached_programs_help_st
44 char *strdup_cleanup(const char *str
);
46 long int timedif(struct timeval a
, struct timeval b
);
47 void version_command(const char *command_name
);
48 void help_command(const char *command_name
, const char *description
,
49 const struct option
*long_options
,
50 memcached_programs_help_st
*options
);
51 void process_hash_option(memcached_st
*memc
, char *opt_hash
);
52 bool initialize_sasl(memcached_st
*memc
, char *user
, char *password
);
53 void shutdown_sasl(void);