1 #include <bindings.dsl.h>
2 #include <CoreServices/CoreServices.h>
4 module Bindings.CoreServices.CarbonCore.AVLTree where
6 import Bindings.CoreServices.CarbonCore.MacTypes
8 #integral_t AVLVisitStage
17 #integral_t AVLNodeType
20 #num kAVLIsRightBranch
24 #num errItemAlreadyInTree
26 #num errItemNotFoundInTree
27 #num errCanNotInsertWhileWalkProcInProgress
30 #starttype struct AVLTreeStruct
31 # field signature, <OSType>
32 # array_field privateStuff, CULong
34 #synonym_t AVLTreePtr, Ptr <AVLTreeStruct>
36 #callback AVLCompareItemsProcPtr, <AVLTreePtr> -> Ptr () -> Ptr () -> <AVLNodeType> -> IO <SInt32>
37 #callback AVLItemSizeProcPtr , <AVLTreePtr> -> Ptr () -> <ByteCount>
38 #callback AVLDisposeItemProcPtr , <AVLTreePtr> -> Ptr () -> IO ()
39 #callback AVLWalkProcPtr , <AVLTreePtr> -> Ptr () -> <AVLVisitStage> -> <AVLNodeType> -> <UInt32> -> <SInt32> -> Ptr () -> IO <OSErr>
41 #synonym_t AVLCompareItemsUPP, <AVLCompareItemsProcPtr>
42 #synonym_t AVLItemSizeUPP , <AVLItemSizeProcPtr>
43 #synonym_t AVLDisposeItemUPP , <AVLDisposeItemProcPtr>
44 #synonym_t AVLWalkUPP , <AVLWalkProcPtr>
47 # ccall AVLInit , <UInt32> -> <AVLCompareItemsUPP> -> <AVLItemSizeUPP> -> <AVLDisposeItemUPP> -> Ptr () -> Ptr <AVLTreePtr> -> IO <OSErr>
48 # ccall AVLDispose , Ptr <AVLTreePtr> -> <AVLOrder> -> IO <OSErr>
49 # ccall AVLWalk , <AVLTreePtr> -> <AVLWalkUPP> -> <AVLOrder> -> Ptr () -> IO <OSErr>
50 # ccall AVLCount , <AVLTreePtr> -> Ptr <UInt32> -> IO <OSErr>
51 # ccall AVLGetIndItem, <AVLTreePtr> -> <UInt32> -> Ptr () -> Ptr <ByteCount> -> IO <OSErr>
52 # ccall AVLInsert , <AVLTreePtr> -> Ptr () -> IO <OSErr>
53 # ccall AVLRemove , <AVLTreePtr> -> Ptr () -> Ptr () -> Ptr <ByteCount> -> IO <OSErr>
54 # ccall AVLFind , <AVLTreePtr> -> Ptr () -> Ptr () -> Ptr <ByteCount> -> IO <OSErr>
55 # ccall AVLGetRefcon , <AVLTreePtr> -> Ptr (Ptr ()) -> IO <OSErr>