~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/option.h

  • Committer: Brian Aker
  • Date: 2011-03-27 07:03:49 UTC
  • mfrom: (2252.2.3 drizzle-ga)
  • Revision ID: brian@tangent.org-20110327070349-ihqsw1cl19lu8j65
MergeĀ inĀ staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#pragma once
17
17
 
18
 
namespace drizzled
19
 
{
 
18
#include <drizzled/common_fwd.h>
 
19
 
 
20
namespace drizzled {
20
21
 
21
22
#define GET_NO_ARG     1
22
23
#define GET_BOOL       2
47
48
 
48
49
enum get_opt_arg_type { NO_ARG, OPT_ARG, REQUIRED_ARG };
49
50
 
50
 
struct st_typelib;
51
 
 
52
51
struct option
53
52
{
54
53
  const char *name;                     /* Name of the option */
56
55
  const char *comment;                  /* option comment, for autom. --help */
57
56
  char      **value;                   /* The variable value */
58
57
  char      **u_max_value;             /* The user def. max variable value */
59
 
  struct st_typelib *typelib;           /* Pointer to possible values */
 
58
  TYPELIB *typelib;           /* Pointer to possible values */
60
59
  uint32_t     var_type;
61
60
  enum get_opt_arg_type arg_type;
62
61
  int64_t   def_value;                 /* Default value */