~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Brian Aker
  • Date: 2009-01-25 02:52:05 UTC
  • mfrom: (801.1.4 testable)
  • Revision ID: brian@gir.tangent.org-20090125025205-zlahg6u6z0w95v64
Merge from Myself

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
public:
420
420
  sys_var_session(const char *name_arg,
421
421
              sys_after_update_func func= NULL,
422
 
              Binlog_status_enum binlog_status= NOT_IN_BINLOG)
423
 
    :sys_var(name_arg, func, binlog_status)
 
422
              Binlog_status_enum bl_status= NOT_IN_BINLOG)
 
423
    :sys_var(name_arg, func, bl_status)
424
424
  {}
425
425
  bool check_type(enum_var_type)
426
426
  { return 0; }
588
588
  sys_var_session_enum(sys_var_chain *chain, const char *name_arg,
589
589
                   uint32_t SV::*offset_arg, TYPELIB *typelib,
590
590
                   sys_after_update_func func= NULL,
591
 
                   sys_check_func check= NULL)
 
591
                   sys_check_func check_f= NULL)
592
592
    :sys_var_session(name_arg, func), offset(offset_arg),
593
 
    enum_names(typelib), check_func(check)
 
593
    enum_names(typelib), check_func(check_f)
594
594
  { chain_sys_var(chain); }
595
595
  bool check(Session *session, set_var *var)
596
596
  {
805
805
};
806
806
 
807
807
 
808
 
class sys_var_log_state :public sys_var_bool_ptr
809
 
{
810
 
  uint32_t log_type;
811
 
public:
812
 
  sys_var_log_state(sys_var_chain *chain, const char *name_arg, bool *value_arg,
813
 
                    uint32_t log_type_arg)
814
 
    :sys_var_bool_ptr(chain, name_arg, value_arg), log_type(log_type_arg) {}
815
 
  bool update(Session *session, set_var *var);
816
 
  void set_default(Session *session, enum_var_type type);
817
 
};
818
 
 
819
808
/* Variable that you can only read from */
820
809
 
821
810
class sys_var_readonly: public sys_var