~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/structs.h

  • Committer: Brian Aker
  • Date: 2011-12-27 20:30:10 UTC
  • mfrom: (2472.1.9 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2482.
  • Revision ID: brian@tangent.org-20111227203010-1ymj1ekc2k37bu8s
Merge yacc tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
 
1
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
2
 *
2
3
 * Drizzle Client & Protocol Library
3
4
 *
4
5
 * Copyright (C) 2008 Eric Day (eday@oddments.org)
169
170
  size_t size;
170
171
  void *context;
171
172
  drizzle_query_context_free_fn *context_free_fn;
 
173
 
 
174
#ifdef __cplusplus
 
175
 
 
176
  drizzle_query_st() :
 
177
    drizzle(NULL),
 
178
    next(NULL),
 
179
    prev(NULL),
 
180
    options(0),
 
181
    state(DRIZZLE_QUERY_STATE_INIT),
 
182
    con(NULL),
 
183
    result(NULL),
 
184
    string(NULL),
 
185
    size(0),
 
186
    context(NULL),
 
187
    context_free_fn(NULL)
 
188
  { 
 
189
  }
 
190
 
 
191
#endif
172
192
};
173
193
 
174
194
/**
209
229
  drizzle_row_t *row_list;
210
230
  size_t *field_sizes;
211
231
  size_t **field_sizes_list;
 
232
 
 
233
#ifdef __cplusplus
 
234
 
 
235
  drizzle_result_st() :
 
236
    con(NULL),
 
237
    next(NULL),
 
238
    prev(NULL),
 
239
    options(0),
 
240
    error_code(0),
 
241
    insert_id(0),
 
242
    warning_count(0),
 
243
    affected_rows(0),
 
244
    column_count(0),
 
245
    column_current(0),
 
246
    column_list(NULL),
 
247
    column(NULL),
 
248
    column_buffer(NULL),
 
249
    row_count(0),
 
250
    row_current(0),
 
251
    field_current(0),
 
252
    field_total(0),
 
253
    field_offset(0),
 
254
    field_size(0),
 
255
    field(),
 
256
    field_buffer(),
 
257
    row_list_size(0),
 
258
    row(),
 
259
    row_list(NULL),
 
260
    field_sizes(NULL),
 
261
    field_sizes_list(NULL)
 
262
  {
 
263
    info[0]= 0;
 
264
    sqlstate[0]= 0;
 
265
  }
 
266
 
 
267
#endif
212
268
};
213
269
 
214
270
/**