~ubuntu-branches/ubuntu/karmic/firebird2.1/karmic

« back to all changes in this revision

Viewing changes to src/jrd/scroll_cursors.h

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2008-05-26 23:59:25 UTC
  • Revision ID: james.westby@ubuntu.com-20080526235925-2pnqj6nxpppoeaer
Tags: upstream-2.1.0.17798-0.ds2
ImportĀ upstreamĀ versionĀ 2.1.0.17798-0.ds2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      MODULE:         scroll_cursors.h
 
3
 *      DESCRIPTION:    OSRI entrypoints and defines for SCROLLABLE_CURSORS
 
4
 *
 
5
 * The contents of this file are subject to the Interbase Public
 
6
 * License Version 1.0 (the "License"); you may not use this file
 
7
 * except in compliance with the License. You may obtain a copy
 
8
 * of the License at http://www.Inprise.com/IPL.html
 
9
 *
 
10
 * Software distributed under the License is distributed on an
 
11
 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
 
12
 * or implied. See the License for the specific language governing
 
13
 * rights and limitations under the License.
 
14
 *
 
15
 * The Original Code was created by Inprise Corporation
 
16
 * and its predecessors. Portions created by Inprise Corporation are
 
17
 * Copyright (C) Inprise Corporation.
 
18
 *
 
19
 * All Rights Reserved.
 
20
 * Contributor(s): ______________________________________.
 
21
 */
 
22
 
 
23
#ifndef JRD_SCROLL_CURSORS_H
 
24
#define JRD_SCROLL_CURSORS_H
 
25
 
 
26
/* ALL THE FOLLOWING DEFINITIONS HAVE BEEN TAKEN OUT OF JRD/IBASE.H 
 
27
   WHEN SCROLLABLE_CURSORS ARE TOTALLY IMPLEMENTED, THE FOLLOWING 
 
28
   DEFINITIONS NEED TO BE PUT IN THE PROPER INCLUDE FILE.
 
29
 
 
30
   This was done so that IB 5.0 customers do not see any functions
 
31
   they are not supposed to see.
 
32
   As per Engg. team's decision on 23-Sep-1997 
 
33
*/
 
34
 
 
35
#ifdef SCROLLABLE_CURSORS
 
36
ISC_STATUS ISC_EXPORT isc_dsql_fetch2(ISC_STATUS *,
 
37
                                                                          isc_stmt_handle *,
 
38
                                                                          unsigned short,
 
39
                                                                          XSQLDA *,
 
40
                                                                          unsigned short, signed long);
 
41
#endif
 
42
 
 
43
#ifdef SCROLLABLE_CURSORS
 
44
ISC_STATUS ISC_EXPORT isc_dsql_fetch2_m(ISC_STATUS*,
 
45
                                                                                isc_stmt_handle*,
 
46
                                                                                unsigned short,
 
47
                                                                                const char*,
 
48
                                                                                unsigned short,
 
49
                                                                                unsigned short,
 
50
                                                                                char*,
 
51
                                                                                unsigned short, signed long);
 
52
#endif
 
53
 
 
54
#ifdef SCROLLABLE_CURSORS
 
55
ISC_STATUS ISC_EXPORT isc_embed_dsql_fetch2(ISC_STATUS*,
 
56
                                                                                        char*,
 
57
                                                                                        unsigned short,
 
58
                                                                                        XSQLDA*,
 
59
                                                                                        unsigned short, signed long);
 
60
#endif
 
61
 
 
62
#ifdef SCROLLABLE_CURSORS
 
63
ISC_STATUS ISC_EXPORT isc_receive2(ISC_STATUS *,
 
64
                                                                   isc_req_handle *,
 
65
                                                                   short,
 
66
                                                                   short,
 
67
                                                                   void *,
 
68
                                                                   short, unsigned short, unsigned long);
 
69
#endif
 
70
 
 
71
/****** Add the following commented lines in the #else part of..
 
72
#else                                    __cplusplus || __STDC__ 
 
73
ISC_STATUS  ISC_EXPORT isc_receive2();
 
74
******/
 
75
 
 
76
/****************************************/
 
77
/* Scroll direction for isc_dsql_fetch2 */
 
78
/****************************************/
 
79
 
 
80
const int isc_fetch_next                = 0;
 
81
const int isc_fetch_prior               = 1;
 
82
const int isc_fetch_first               = 2;
 
83
const int isc_fetch_last                = 3;
 
84
const int isc_fetch_absolute    = 4;
 
85
const int isc_fetch_relative    = 5;
 
86
 
 
87
#endif /* JRD_SCROLL_CURSORS_H */