~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

Remove PLUGIN and MODULES.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef DRIZZLED_STRUCTS_H
24
24
#define DRIZZLED_STRUCTS_H
25
25
 
26
 
#include <drizzled/base.h>
27
 
#include <mysys/definitions.h>
28
 
#include <drizzled/lex_string.h>
 
26
#include "drizzled/base.h"
 
27
#include "drizzled/definitions.h"
 
28
#include "drizzled/lex_string.h"
 
29
#include "drizzled/thr_lock.h"
29
30
 
30
31
class Table;
31
32
class Field;
36
37
  unsigned char dupp_ref[MAX_REFLENGTH];        /* Pointer to dupp row */
37
38
  uint32_t ref_length;                  /* Length of ref (1-8) */
38
39
  uint32_t block_size;                  /* index block size */
39
 
  File filenr;                          /* (uniq) filenr for table */
 
40
  int filenr;                           /* (uniq) filenr for table */
40
41
  ha_rows records;                      /* Records i datafilen */
41
42
  ha_rows deleted;                      /* Deleted records */
42
43
  uint64_t data_file_length;            /* Length off data file */
55
56
 
56
57
typedef struct st_key_part_info {       /* Info about a key part */
57
58
  Field *field;
58
 
  uint  offset;                         /* offset in record (from 0) */
59
 
  uint  null_offset;                    /* Offset to null_bit in record */
 
59
  unsigned int  offset;                         /* offset in record (from 0) */
 
60
  unsigned int  null_offset;                    /* Offset to null_bit in record */
60
61
  /* Length of key part in bytes, excluding NULL flag and length bytes */
61
62
  uint16_t length;
62
63
  /*
77
78
 
78
79
 
79
80
typedef struct st_key {
80
 
  uint  key_length;                     /* Tot length of key */
 
81
  unsigned int  key_length;             /* Tot length of key */
81
82
  enum  ha_key_alg algorithm;
82
 
  ulong flags;                          /* dupp key and pack flags */
83
 
  uint  key_parts;                      /* How many key_parts */
 
83
  unsigned long flags;                  /* dupp key and pack flags */
 
84
  unsigned int key_parts;               /* How many key_parts */
84
85
  uint32_t  extra_length;
85
 
  uint  usable_key_parts;               /* Should normally be = key_parts */
 
86
  unsigned int usable_key_parts;        /* Should normally be = key_parts */
86
87
  uint32_t  block_size;
87
88
  KEY_PART_INFO *key_part;
88
89
  char  *name;                          /* Name of key */
117
118
};
118
119
 
119
120
struct st_read_record;                          /* For referense later */
120
 
class SQL_SELECT;
121
121
class Session;
122
122
class Cursor;
 
123
namespace drizzled { namespace optimizer { class SqlSelect; } }
123
124
 
124
125
typedef struct st_read_record {                 /* Parameter to read_record */
125
126
  Table *table;                 /* Head-form */
127
128
  Table **forms;                        /* head and ref forms */
128
129
  int (*read_record)(struct st_read_record *);
129
130
  Session *session;
130
 
  SQL_SELECT *select;
 
131
  drizzled::optimizer::SqlSelect *select;
131
132
  uint32_t cache_records;
132
133
  uint32_t ref_length,struct_length,reclength,rec_cache_size,error_offset;
133
134
  uint32_t index;
142
143
 
143
144
extern const char *show_comp_option_name[];
144
145
 
145
 
typedef int *(*update_var)(Session *, struct st_mysql_show_var *);
 
146
typedef int *(*update_var)(Session *, struct drizzle_show_var *);
146
147
 
147
148
        /* Bits in form->status */
148
149
#define STATUS_NO_RECORD        (1+2)   /* Record isn't usably */