~ubuntu-branches/ubuntu/lucid/psqlodbc/lucid

« back to all changes in this revision

Viewing changes to tuplelist.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-05-13 10:47:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040513104736-a530gmn0p3knep89
Tags: upstream-07.03.0200
ImportĀ upstreamĀ versionĀ 07.03.0200

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* File:                        tuplelist.h
 
2
 *
 
3
 * Description:         See "tuplelist.c"
 
4
 *
 
5
 * Important Note:      This structure and its functions are ONLY used in building manual result
 
6
 *                                      sets for info functions (SQLTables, SQLColumns, etc.)
 
7
 *
 
8
 * Comments:            See "notice.txt" for copyright and license information.
 
9
 *
 
10
 */
 
11
 
 
12
#ifndef __TUPLELIST_H__
 
13
#define __TUPLELIST_H__
 
14
 
 
15
#include "psqlodbc.h"
 
16
 
 
17
struct TupleListClass_
 
18
{
 
19
        Int4            num_fields;
 
20
        Int4            num_tuples;
 
21
        TupleNode  *list_start,
 
22
                           *list_end,
 
23
                           *lastref;
 
24
        Int4            last_indexed;
 
25
};
 
26
 
 
27
#define TL_get_num_tuples(x)    (x->num_tuples)
 
28
 
 
29
/* Create a TupleList. Each tuple consits of fieldcnt columns */
 
30
TupleListClass *TL_Constructor(UInt4 fieldcnt);
 
31
void            TL_Destructor(TupleListClass *self);
 
32
void       *TL_get_fieldval(TupleListClass *self, Int4 tupleno, Int2 fieldno);
 
33
char            TL_add_tuple(TupleListClass *self, TupleNode *new_field);
 
34
 
 
35
#endif