~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-1.0/structs.h

  • Committer: Mark Atwood
  • Date: 2011-12-30 22:59:59 UTC
  • mfrom: (2478.1.3 drizzle-build)
  • Revision ID: me@mark.atwood.name-20111230225959-m3wdvqiymv3a4q2w
mergeĀ lp:~brianaker/drizzle/yacc-merge

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)
43
44
 
44
45
#include <sys/types.h>
45
46
 
46
 
#ifndef NI_MAXHOST
47
 
# define NI_MAXHOST 1025
 
47
#ifdef NI_MAXHOST
 
48
# define LIBDRIZZLE_NI_MAXHOST NI_MAXHOST
 
49
#else
 
50
# define LIBDRIZZLE_NI_MAXHOST 1025
 
51
#endif
 
52
 
 
53
#ifdef __cplusplus
 
54
#include <cstddef>
48
55
#endif
49
56
 
50
57
#ifdef __cplusplus
169
176
  size_t size;
170
177
  void *context;
171
178
  drizzle_query_context_free_fn *context_free_fn;
 
179
 
 
180
#ifdef __cplusplus
 
181
 
 
182
  drizzle_query_st() :
 
183
    drizzle(NULL),
 
184
    next(NULL),
 
185
    prev(NULL),
 
186
    options(0),
 
187
    state(DRIZZLE_QUERY_STATE_INIT),
 
188
    con(NULL),
 
189
    result(NULL),
 
190
    string(NULL),
 
191
    size(0),
 
192
    context(NULL),
 
193
    context_free_fn(NULL)
 
194
  { 
 
195
  }
 
196
 
 
197
#endif
172
198
};
173
199
 
174
200
/**
209
235
  drizzle_row_t *row_list;
210
236
  size_t *field_sizes;
211
237
  size_t **field_sizes_list;
 
238
 
 
239
#ifdef __cplusplus
 
240
 
 
241
  drizzle_result_st() :
 
242
    con(NULL),
 
243
    next(NULL),
 
244
    prev(NULL),
 
245
    options(0),
 
246
    error_code(0),
 
247
    insert_id(0),
 
248
    warning_count(0),
 
249
    affected_rows(0),
 
250
    column_count(0),
 
251
    column_current(0),
 
252
    column_list(NULL),
 
253
    column(NULL),
 
254
    column_buffer(NULL),
 
255
    row_count(0),
 
256
    row_current(0),
 
257
    field_current(0),
 
258
    field_total(0),
 
259
    field_offset(0),
 
260
    field_size(0),
 
261
    field(),
 
262
    field_buffer(),
 
263
    row_list_size(0),
 
264
    row(),
 
265
    row_list(NULL),
 
266
    field_sizes(NULL),
 
267
    field_sizes_list(NULL)
 
268
  {
 
269
    info[0]= 0;
 
270
    sqlstate[0]= 0;
 
271
  }
 
272
 
 
273
#endif
212
274
};
213
275
 
214
276
/**