~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/structs.h

  • Committer: Mark Atwood
  • Date: 2011-11-22 17:04:41 UTC
  • mfrom: (2462.1.3 drizzle-include)
  • Revision ID: me@mark.atwood.name-20111122170441-5dehm0e0ax20z19b
mergeĀ lp:~brianaker/drizzle/fedora-16-fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 * @brief Struct Definitions
40
40
 */
41
41
 
42
 
#pragma once
 
42
#ifndef __DRIZZLE_STRUCTS_H
 
43
#define __DRIZZLE_STRUCTS_H
43
44
 
44
45
#include <sys/types.h>
45
46
 
57
58
struct drizzle_st
58
59
{
59
60
  uint16_t error_code;
60
 
  int options;
 
61
  drizzle_options_t options;
61
62
  drizzle_verbose_t verbose;
62
63
  uint32_t con_count;
63
64
  uint32_t pfds_size;
109
110
  uint8_t state_current;
110
111
  short events;
111
112
  short revents;
112
 
  int capabilities;
 
113
  drizzle_capabilities_t capabilities;
113
114
  drizzle_charset_t charset;
114
115
  drizzle_command_t command;
115
 
  int options;
 
116
  drizzle_con_options_t options;
116
117
  drizzle_con_socket_t socket_type;
117
118
  drizzle_con_status_t status;
118
119
  uint32_t max_packet_size;
161
162
  drizzle_st *drizzle;
162
163
  drizzle_query_st *next;
163
164
  drizzle_query_st *prev;
164
 
  int options;
 
165
  drizzle_query_options_t options;
165
166
  drizzle_query_state_t state;
166
167
  drizzle_con_st *con;
167
168
  drizzle_result_st *result;
179
180
  drizzle_con_st *con;
180
181
  drizzle_result_st *next;
181
182
  drizzle_result_st *prev;
182
 
  int options;
 
183
  drizzle_result_options_t options;
183
184
 
184
185
  char info[DRIZZLE_MAX_INFO_SIZE];
185
186
  uint16_t error_code;
219
220
  drizzle_result_st *result;
220
221
  drizzle_column_st *next;
221
222
  drizzle_column_st *prev;
222
 
  int options;
 
223
  drizzle_column_options_t options;
223
224
  char catalog[DRIZZLE_MAX_CATALOG_SIZE];
224
225
  char db[DRIZZLE_MAX_DB_SIZE];
225
226
  char table[DRIZZLE_MAX_TABLE_SIZE];
230
231
  uint32_t size;
231
232
  size_t max_size;
232
233
  drizzle_column_type_t type;
233
 
  int flags;
 
234
  drizzle_column_flags_t flags;
234
235
  uint8_t decimals;
235
236
  uint8_t default_value[DRIZZLE_MAX_DEFAULT_VALUE_SIZE];
236
237
  size_t default_value_size;
239
240
#ifdef __cplusplus
240
241
}
241
242
#endif
 
243
 
 
244
#endif /* __DRIZZLE_STRUCTS_H */