libmemcached-1.0: fix subscripting on empty vector
[awesomized/libmemcached] / clients / client_options.h
index a343133666b9377d7c7868446839f4c0442c8640..16ce4beda0c2bbb28f45e83c12001f0463fe8e9c 100644 (file)
@@ -1,9 +1,19 @@
-#ifndef __CLIENT_OPTIONS_H__
-#define __CLIENT_OPTIONS_H__
+/* LibMemcached
+ * Copyright (C) 2006-2009 Brian Aker
+ * All rights reserved.
+ *
+ * Use and distribution licensed under the BSD license.  See
+ * the COPYING file in the parent directory for full text.
+ *
+ * Summary:
+ *
+ */
+
+#pragma once
 
 typedef struct memcached_help_text_st memcached_help_text_st;
 
-typedef enum {
+enum memcached_options {
   OPT_SERVERS= 's',
   OPT_VERSION= 'V',
   OPT_HELP= 'h',
@@ -24,6 +34,12 @@ typedef enum {
   OPT_FLUSH,
   OPT_HASH,
   OPT_BINARY,
-} memcached_options;
-
-#endif /* CLIENT_OPTIONS */
+  OPT_UDP,
+  OPT_BUFFER,
+  OPT_USERNAME,
+  OPT_PASSWD,
+  OPT_STAT_ARGS,
+  OPT_SERVER_VERSION,
+  OPT_QUIET,
+  OPT_FILE= 'f'
+};