Files
harbour-core/harbour/contrib/hbbtree/hb_btree.api
Viktor Szakats ed6ed2aec3 2007-12-01 01:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/btree
   + contrib/hbbtree
   - contrib/directx
   + contrib/hbw32ddr
   * contrib/hbw32ddr/Makefile
   * contrib/hbw32ddr/common.mak
   - contrib/firebird
   + contrib/hbfbird
   * contrib/hbfbird/Makefile
   * contrib/hbfbird/common.mak
   - contrib/freeimage
   + contrib/hbfimage
   * contrib/hbfimage/Makefile
   * contrib/hbfimage/common.mak
   - contrib/gd
   + contrib/hbgd
   - contrib/hbzlib
   + contrib/hbziparch
   * contrib/hbziparch/make_b32_dll.bat
   * contrib/hbziparch/make_b32_dll.mak
   * contrib/Makefile
   * contrib/make_b32_all.bat
   * contrib/make_vc_all.bat
     * Contrib lib rename continued.
2007-12-01 01:15:41 +00:00

78 lines
2.5 KiB
Plaintext

/*
$Id$
*/
/*
* Harbour Project source code:
* HB_BTree Harbour C API header.
*
* Copyright 2002 April White <awhite@mail.rosecom.ca>
* www - http://www.harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version, with one exception:
*
* The exception is that if you link the Harbour Runtime Library (HRL)
* and/or the Harbour Virtual Machine (HVM) with other files to produce
* an executable, this does not by itself cause the resulting executable
* to be covered by the GNU General Public License. Your use of that
* executable is in no way restricted on account of linking the HRL
* and/or HVM code into it.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
* their web site at http://www.gnu.org/).
*
*/
/* Changelog
* Changed, bla-bla
! Fixed
% Optimized
+ Added
- Removed
; Comment
* contrib/btree/hb_btree.api
+ extern "C"
* rename nFlags to ulFlags
+ declaration for hb_BTreeDataItem()
* declaration for hb_BTreeInsert() to use a PHB_ITEM vs LONG
*/
#ifndef HB_BTREE_API
#define HB_BTREE_API
HB_EXTERN_BEGIN
#include "hb_btree.ch"
struct hb_BTree;
struct hb_BTree * hb_BTreeNew( BYTE *FileName, USHORT usPageSize, USHORT usKeySize, ULONG ulFlags, USHORT usBuffers );
struct hb_BTree * hb_BTreeOpen( BYTE *FileName, ULONG lFlags, USHORT usBuffers );
void hb_BTreeClose( struct hb_BTree * pBTree );
BOOL hb_BTreeInsert( struct hb_BTree * pBTree, BYTE * szKey, PHB_ITEM pData );
BOOL hb_BTreeDelete( struct hb_BTree * pBTree, BYTE * szKey, LONG lData );
void hb_BTreeGoTop( struct hb_BTree * pBTree );
void hb_BTreeGoBottom( struct hb_BTree * pBTree );
BOOL hb_BTreeSeek( struct hb_BTree * pBTree, BYTE * szKey, LONG lData, BOOL bSoftSeek );
LONG hb_BTreeSkip( struct hb_BTree * pBTree, LONG nRecords );
const BYTE * hb_BTreeKey( struct hb_BTree * pBTree );
LONG hb_BTreeData( struct hb_BTree * pBTree );
PHB_ITEM hb_BTreeDataItem( struct hb_BTree * pBTree );
HB_EXTERN_END
#endif