/* voc 2.1.0 [2025/05/18] for gcc LP64 on slackware xtspaF */

#ifndef ethBTrees__h
#define ethBTrees__h

#include "SYSTEM.h"
#include "Files.h"

typedef
	void (*ethBTrees_EnumLIntProc)(INT32, INT32, BOOLEAN*);

typedef
	void (*ethBTrees_EnumStrProc)(CHAR*, ADDRESS , INT32, BOOLEAN*);

typedef
	struct ethBTrees_TreeDesc *ethBTrees_Tree;

typedef
	struct ethBTrees_TreeDesc {
		INT64 _prvt0;
		char _prvt1[26];
	} ethBTrees_TreeDesc;


import CHAR ethBTrees_MINStrKey[64], ethBTrees_MAXStrKey[64];

import ADDRESS *ethBTrees_TreeDesc__typ;

import Files_File ethBTrees_Base (ethBTrees_Tree T);
import void ethBTrees_DeleteLInt (ethBTrees_Tree T, INT32 key, INT16 *res);
import void ethBTrees_DeleteStr (ethBTrees_Tree T, CHAR *key, ADDRESS key__len, INT16 *res);
import void ethBTrees_EnumLInt (ethBTrees_Tree T, INT32 min, INT32 max, ethBTrees_EnumLIntProc enum_);
import void ethBTrees_EnumStr (ethBTrees_Tree T, CHAR *min, ADDRESS min__len, CHAR *max, ADDRESS max__len, ethBTrees_EnumStrProc enum_);
import void ethBTrees_Flush (ethBTrees_Tree T);
import void ethBTrees_InsertLInt (ethBTrees_Tree T, INT32 key, INT32 org, INT16 *res);
import void ethBTrees_InsertStr (ethBTrees_Tree T, CHAR *key, ADDRESS key__len, INT32 org, INT16 *res);
import void ethBTrees_MaxLIntKey (ethBTrees_Tree T, INT32 *key, INT16 *res);
import void ethBTrees_MaxStrKey (ethBTrees_Tree T, CHAR *key, ADDRESS key__len, INT16 *res);
import void ethBTrees_MinLIntKey (ethBTrees_Tree T, INT32 *key, INT16 *res);
import void ethBTrees_MinStrKey (ethBTrees_Tree T, CHAR *key, ADDRESS key__len, INT16 *res);
import ethBTrees_Tree ethBTrees_NewLInt (Files_File F, INT32 org, INT16 cache);
import ethBTrees_Tree ethBTrees_NewStr (Files_File F, INT32 org, INT16 cache);
import ethBTrees_Tree ethBTrees_Old (Files_File F, INT32 org);
import void ethBTrees_SearchLInt (ethBTrees_Tree T, INT32 key, INT32 *org, INT16 *res);
import void ethBTrees_SearchStr (ethBTrees_Tree T, CHAR *key, ADDRESS key__len, INT32 *org, INT16 *res);
import void *ethBTrees__init(void);


#endif // ethBTrees
