~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/system_variables.h

  • Committer: Olaf van der Spek
  • Date: 2011-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_SYSTEM_VARIABLES_H
22
 
#define DRIZZLED_SYSTEM_VARIABLES_H
 
21
#pragma once
23
22
 
24
 
namespace drizzled
25
 
{
 
23
namespace drizzled {
26
24
 
27
25
struct drizzle_system_variables
28
26
{
29
 
  drizzle_system_variables()
30
 
  {}
31
27
  /*
32
28
    How dynamically allocated system variables are handled:
33
29
 
81
77
  plugin::StorageEngine *storage_engine;
82
78
 
83
79
  /* Only charset part of these variables is sensible */
84
 
  const CHARSET_INFO  *character_set_filesystem;
 
80
  const charset_info_st  *character_set_filesystem;
85
81
 
86
82
  /* Both charset and collation parts of these variables are important */
87
 
  const CHARSET_INFO    *collation_server;
 
83
  const charset_info_st *collation_server;
88
84
 
89
 
  inline const CHARSET_INFO  *getCollation(void) 
 
85
  inline const charset_info_st  *getCollation(void) 
90
86
  {
91
87
    return collation_server;
92
88
  }
100
96
 
101
97
} /* namespace drizzled */
102
98
 
103
 
#endif /* DRIZZLED_SYSTEM_VARIABLES_H */