~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
merge lp:~olafvdspek/drizzle/refactor4

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
 
/* The old structures from unireg */
22
 
 
23
 
#ifndef DRIZZLED_STRUCTS_H
24
 
#define DRIZZLED_STRUCTS_H
25
 
 
26
 
#include "drizzled/base.h"
27
 
#include "drizzled/definitions.h"
28
 
#include "drizzled/lex_string.h"
29
 
#include "drizzled/thr_lock.h"
30
 
 
31
 
namespace drizzled
32
 
{
33
 
 
34
 
namespace internal
35
 
{
36
 
typedef struct st_io_cache IO_CACHE;
37
 
}
38
 
 
39
 
class Table;
40
 
class Field;
 
21
#pragma once
 
22
 
 
23
#include <drizzled/base.h>
 
24
#include <drizzled/definitions.h>
 
25
#include <drizzled/lex_string.h>
 
26
#include <drizzled/thr_lock.h>
 
27
 
 
28
namespace drizzled {
41
29
 
42
30
class KeyPartInfo 
43
31
{       /* Info about a key part */
89
77
  */
90
78
  ulong *rec_per_key;
91
79
  Table *table;
92
 
  LEX_STRING comment;
 
80
  lex_string_t comment;
93
81
};
94
82
 
95
83
 
96
 
class JoinTable;
97
 
 
98
84
class RegInfo 
99
85
{
100
86
public:         /* Extra info about reg */
114
100
  }
115
101
};
116
102
 
117
 
class Session;
118
 
class Cursor;
119
 
namespace optimizer { class SqlSelect; }
120
 
 
121
103
typedef int *(*update_var)(Session *, struct drizzle_show_var *);
122
104
 
123
105
} /* namespace drizzled */
127
109
#define STATUS_GARBAGE          1
128
110
#define STATUS_NOT_FOUND        2       /* No record in database when needed */
129
111
#define STATUS_NO_PARENT        4       /* Parent record wasn't found */
130
 
#define STATUS_NOT_READ         8       /* Record isn't read */
131
 
#define STATUS_UPDATED          16      /* Record is updated by formula */
132
112
#define STATUS_NULL_ROW         32      /* table->null_row is set */
133
 
#define STATUS_DELETED          64
134
113
 
135
 
#endif /* DRIZZLED_STRUCTS_H */