~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/drizzle_data.h

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
 
8
 *  the Free Software Foundation; version 2 of the License.
10
9
 *
11
10
 *  This program is distributed in the hope that it will be useful,
12
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
20
#ifndef _libdrizzle_drizzle_data_h
22
21
#define _libdrizzle_drizzle_data_h
23
22
 
24
 
#ifdef  __cplusplus
25
 
extern "C" {
26
 
#endif
27
 
 
28
23
#include <stdint.h>
 
24
#include <stdbool.h>
29
25
#include <libdrizzle/drizzle_rows.h>
 
26
#include <libdrizzle/drizzle_field.h>
30
27
 
31
28
typedef struct st_drizzle_data {
32
29
  DRIZZLE_ROWS *data;
35
32
  unsigned int fields;
36
33
} DRIZZLE_DATA;
37
34
 
 
35
#ifdef  __cplusplus
 
36
extern "C" {
 
37
#endif
 
38
 
 
39
  DRIZZLE_FIELD *unpack_fields(DRIZZLE_DATA *data, unsigned int fields,
 
40
                               bool default_value);
 
41
  void free_rows(DRIZZLE_DATA *cur);
38
42
 
39
43
#ifdef  __cplusplus
40
44
}