~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
/* The old structures from unireg */
22
22
 
23
 
#pragma once
24
 
 
25
 
#include <drizzled/base.h>
26
 
#include <drizzled/definitions.h>
27
 
#include <drizzled/lex_string.h>
28
 
#include <drizzled/thr_lock.h>
29
 
 
30
 
namespace drizzled {
 
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;
31
41
 
32
42
class KeyPartInfo 
33
43
{       /* Info about a key part */
83
93
};
84
94
 
85
95
 
 
96
class JoinTable;
 
97
 
86
98
class RegInfo 
87
99
{
88
100
public:         /* Extra info about reg */
102
114
  }
103
115
};
104
116
 
 
117
class Session;
 
118
class Cursor;
 
119
namespace optimizer { class SqlSelect; }
 
120
 
105
121
typedef int *(*update_var)(Session *, struct drizzle_show_var *);
106
122
 
107
123
} /* namespace drizzled */
111
127
#define STATUS_GARBAGE          1
112
128
#define STATUS_NOT_FOUND        2       /* No record in database when needed */
113
129
#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 */
114
132
#define STATUS_NULL_ROW         32      /* table->null_row is set */
 
133
#define STATUS_DELETED          64
115
134
 
 
135
#endif /* DRIZZLED_STRUCTS_H */