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

« back to all changes in this revision

Viewing changes to src/jrd/sort_proto.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
 *      PROGRAM:        JRD Access Method
 
3
 *      MODULE:         sort_proto.h
 
4
 *      DESCRIPTION:    Prototype header file for sort.cpp
 
5
 *
 
6
 * The contents of this file are subject to the Interbase Public
 
7
 * License Version 1.0 (the "License"); you may not use this file
 
8
 * except in compliance with the License. You may obtain a copy
 
9
 * of the License at http://www.Inprise.com/IPL.html
 
10
 *
 
11
 * Software distributed under the License is distributed on an
 
12
 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
 
13
 * or implied. See the License for the specific language governing
 
14
 * rights and limitations under the License.
 
15
 *
 
16
 * The Original Code was created by Inprise Corporation
 
17
 * and its predecessors. Portions created by Inprise Corporation are
 
18
 * Copyright (C) Inprise Corporation.
 
19
 *
 
20
 * All Rights Reserved.
 
21
 * Contributor(s): ______________________________________.
 
22
 */
 
23
 
 
24
#ifndef JRD_SORT_PROTO_H
 
25
#define JRD_SORT_PROTO_H
 
26
 
 
27
namespace Jrd {
 
28
        class Attachment;
 
29
        struct sort_key_def;
 
30
        struct sort_work_file;
 
31
        struct sort_context;
 
32
}
 
33
 
 
34
#ifdef SCROLLABLE_CURSORS
 
35
void SORT_diddle_key(UCHAR *, Jrd::sort_context*, bool);
 
36
void SORT_get(Jrd::thread_db*, Jrd::sort_context*, ULONG **, RSE_GET_MODE);
 
37
void SORT_read_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
 
38
#else
 
39
void SORT_get(Jrd::thread_db*, Jrd::sort_context*, ULONG **);
 
40
FB_UINT64 SORT_read_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
 
41
#endif
 
42
 
 
43
void SORT_fini(Jrd::sort_context*, Jrd::Attachment*);
 
44
Jrd::sort_context* SORT_init(Jrd::thread_db*, USHORT, USHORT, USHORT, const Jrd::sort_key_def*,
 
45
                                                Jrd::FPTR_REJECT_DUP_CALLBACK, void*, FB_UINT64);
 
46
void SORT_put(Jrd::thread_db*, Jrd::sort_context*, ULONG **);
 
47
void SORT_shutdown(Jrd::Attachment*);
 
48
void SORT_sort(Jrd::thread_db*, Jrd::sort_context*);
 
49
FB_UINT64 SORT_write_block(ISC_STATUS*, TempSpace*, FB_UINT64, BLOB_PTR *, ULONG);
 
50
 
 
51
#endif // JRD_SORT_PROTO_H