]> gitweb @ CieloNegro.org - bindings-CarbonCore.git/commitdiff
Files.h (partway)
authorPHO <pho@cielonegro.org>
Wed, 13 Oct 2010 16:20:12 +0000 (01:20 +0900)
committerPHO <pho@cielonegro.org>
Wed, 13 Oct 2010 16:20:12 +0000 (01:20 +0900)
Bindings/CoreServices/CarbonCore/Files.hsc

index c33f230956a4e436e6d8d81e9a023c0f5cd5db23..4d0de36401da2e3d235303c630e0b477a1cb10c9 100644 (file)
@@ -1,3 +1,4 @@
+{- -*- coding: utf-8 -*- -}
 #include <bindings.dsl.h>
 #include <CoreServices/CoreServices.h>
 
@@ -1101,3 +1102,295 @@ import Bindings.CoreServices.CarbonCore.MacTypes
 #num kFSAllocNoRoundUpMask
 #num kFSAllocReservedMask
 
+#starttype struct FSForkIOParam
+#  field qLink       , <QElemPtr>
+#  field qType       , <SInt16>
+#  field ioTrap      , <SInt16>
+#  field ioCmdAddr   , <Ptr>
+#  field ioCompletion, <IOCompletionUPP>
+#  field ioResult    , <OSErr>
+#  field reserved1   , Ptr ()
+#  field reserved2   , <SInt16>
+#  field forkRefNum  , <FSIORefNum>
+#  field reserved3   , <UInt8>
+#  field permissions , <SInt8>
+#  field ref         , Ptr <FSRef>
+#  field buffer      , <Ptr>
+#  field requestCount, <UInt32>
+#  field actualCount , <UInt32>
+#  field positionMode, <UInt16>
+#  field positionOffset, <SInt64>
+#  field allocationFlags, <FSAllocationFlags>
+#  field allocationAmount, <UInt64>
+#  field forkNameLength, <UniCharCount>
+#  field forkName, Ptr <UniChar>
+#  field forkIterator, <CatPositionRec>
+#  field outForkName , Ptr <HFSUniStr255>
+#stoptype
+#synonym_t FSForkIOParamPtr, Ptr <FSForkIOParam>
+
+{-
+        *'``・* 。
+        |     `*。
+       ,。∩      *    もうどうにでもな〜れ
+      + (´・ω・`) *。+゚
+      `*。 ヽ、  つ *゚*
+       `・+。*・' ゚⊃ +゚
+       ☆   ∪~ 。*゚
+        `・+。*・ ゚ 
+-}
+
+#starttype struct FSForkInfo
+#  field flags      , <SInt8>
+#  field permissions, <SInt8>
+#  field volume     , <FSVolumeRefNum>
+#  field reserved2  , <UInt32>
+#  field nodeID     , <UInt32>
+#  field forkID     , <UInt32>
+#  field currentPosition, <UInt64>
+#  field logicalEOF , <UInt64>
+#  field physicalEOF, <UInt64>
+#  field process    , <UInt64>
+#stoptype
+#synonym_t FSForkInfoPtr, Ptr <FSForkInfo>
+
+#starttype struct FSForkCBInfoParam
+#  field qLink       , <QElemPtr>
+#  field qType       , <SInt16>
+#  field ioTrap      , <SInt16>
+#  field ioCmdAddr   , <Ptr>
+#  field ioCompletion, <IOCompletionUPP>
+#  field ioResult    , <OSErr>
+#  field desiredRefNum, <FSIORefNum>
+#  field volumeRefNum, <FSVolumeRefNum>
+#  field iterator    , <FSIORefNum>
+#  field actualRefNum, <FSVolumeRefNum>
+#  field ref         , Ptr <FSRef>
+#  field forkInfo    , Ptr <FSForkInfo>
+#  field forkName    , Ptr <HFSUniStr255>
+#stoptype
+#synonym_t FSForkCBInfoParamPtr, Ptr <FSForkCBInfoParam>
+
+#starttype struct FSRangeLockParam
+#  field qLink       , <QElemPtr>
+#  field qType       , <SInt16>
+#  field ioTrap      , <SInt16>
+#  field ioCmdAddr   , <Ptr>
+#  field ioCompletion, <IOCompletionUPP>
+#  field ioResult    , <OSErr>
+#  field forkRefNum  , <FSIORefNum>
+#  field requestCount, <UInt64>
+#  field positionMode, <UInt16>
+#  field positionOffset, <SInt64>
+#  field rangeStart  , <UInt64>
+#stoptype
+#synonym_t FSRangeLockParamPtr, Ptr <FSRangeLockParam>
+
+#synonym_t FSVolumeInfoBitmap, <UInt32>
+#num kFSVolInfoNone
+#num kFSVolInfoCreateDate
+#num kFSVolInfoModDate
+#num kFSVolInfoBackupDate
+#num kFSVolInfoCheckedDate
+#num kFSVolInfoFileCount
+#num kFSVolInfoSizes
+#num kFSVolInfoBlocks
+#num kFSVolInfoNextAlloc
+#num kFSVolInfoRsrcClump
+#num kFSVolInfoDataClump
+#num kFSVolInfoNextID
+#num kFSVolInfoFinderInfo
+#num kFSVolInfoFlags
+#num kFSVolInfoFSInfo
+#num kFSVolInfoDriveInfo
+#num kFSVolInfoGettableInfo
+#num kFSVolInfoSettableInfo
+
+#num kFSVolFlagDefaultVolumeBit
+#num kFSVolFlagDefaultVolumeMask
+#num kFSVolFlagFilesOpenBit
+#num kFSVolFlagFilesOpenMask
+#num kFSVolFlagHardwareLockedBit
+#num kFSVolFlagHardwareLockedMask
+#num kFSVolFlagJournalingActiveBit
+#num kFSVolFlagJournalingActiveMask
+#num kFSVolFlagSoftwareLockedBit
+#num kFSVolFlagSoftwareLockedMask
+
+#starttype struct FSVolumeInfo
+#  field createDate , <UTCDateTime>
+#  field modifyDate , <UTCDateTime>
+#  field backupDate , <UTCDateTime>
+#  field checkedDate, <UTCDateTime>
+#  field fileCount  , <UInt32>
+#  field folderCount, <UInt32>
+#  field totalBytes , <UInt64>
+#  field freeBytes  , <UInt64>
+#  field blockSize  , <UInt32>
+#  field totalBlocks, <UInt32>
+#  field freeBlocks , <UInt32>
+#  field nextAllocation  , <UInt32>
+#  field rsrcClumpSize   , <UInt32>
+#  field dataClumpSize   , <UInt32>
+#  field nextCatalogID   , <UInt32>
+#  array_field finderInfo, <UInt8>
+#  field flags           , <UInt16>
+#  field filesystemID    , <UInt16>
+#  field signature       , <UInt16>
+#  field driveNumber     , <UInt16>
+#  field driverRefNum    , <FSIORefNum>
+#stoptype
+#synonym_t FSVolumeInfo, Ptr <FSVolumeInfo>
+
+#starttype struct FSVolumeInfoParam
+#  field qLink       , <QElemPtr>
+#  field qType       , <SInt16>
+#  field ioTrap      , <SInt16>
+#  field ioCmdAddr   , <Ptr>
+#  field ioCompletion, <IOCompletionUPP>
+#  field ioResult    , <OSErr>
+#  field ioNamePtr   , <StringPtr>
+#  field ioVRefNum   , <FSVolumeRefNum>
+#  field volumeIndex , <UInt32>
+#  field whichInfo   , <FSVolumeInfoBitmap>
+#  field volumeInfo  , Ptr <FSVolumeInfo>
+#  field volumeName  , Ptr <HFSUniStr255>
+#  field ref         , Ptr <FSRef>
+#stoptype
+#synonym_t FSVolumeInfoParamPtr, Ptr <FSVolumeInfoParam>
+
+#starttype struct GetVolParmsInfoBuffer
+#  field vMVersion  , <SInt16>
+#  field vMAttrib   , <SInt32>
+#  field vMLocalHand, <Handle>
+#  field vMServerAdr, <SInt32>
+#  field vMVolumeGrade       , <SInt32>
+#  field vMForeignPrivID     , <SInt16>
+#  field vMExtendedAttributes, <SInt32>
+#  field vMDeviceID          , Ptr ()
+#  field vMMaxNameLength     , <UniCharCount>
+#stoptype
+
+#synonym_t VolumeType, <OSType>
+#num AppleShareMediaType
+
+#starttype struct VolMountInfoHeader
+#  field length, <SInt16>
+#  field media , <VolumeType>
+#stoptype
+#synonym_t VolMountInfoPtr, Ptr <VolMountInfoHeader>
+
+#starttype struct VolumeMountInfoHeader
+#  field length, <SInt16>
+#  field media , <VolumeType>
+#  field flags , <SInt16>
+#stoptype
+#synonym_t VolumeMountInfoHeaderPtr, Ptr <VolumeMountInfoHeader>
+
+#num volMountNoLoginMsgFlagBit
+#num volMountNoLoginMsgFlagMask
+#num volMountExtendedFlagsBit
+#num volMountExtendedFlagsMask
+#num volMountInteractBit
+#num volMountInteractMask
+#num volMountChangedBit
+#num volMountChangedMask
+#num volMountFSReservedMask
+#num volMountSysReservedMask
+
+#starttype struct AFPVolMountInfo
+#  field length            , <SInt16>
+#  field media             , <VolumeType>
+#  field flags             , <SInt16>
+#  field nbpInterval       , <SInt8>
+#  field nbpCount          , <SInt8>
+#  field uamType           , <SInt16>
+#  field zoneNameOffset    , <SInt16>
+#  field serverNameOffset  , <SInt16>
+#  field volNameOffset     , <SInt16>
+#  field userNameOffset    , <SInt16>
+#  field userPasswordOffset, <SInt16>
+#  field volPasswordOffset , <SInt16>
+#  array_field AFPData     , CChar
+#stoptype
+#synonym_t AFPVolMountInfoPtr, Ptr <AFPVolMountInfo>
+
+#num kAFPExtendedFlagsAlternateAddressMask
+
+#num kAFPTagTypeIP
+#num kAFPTagTypeIPPort
+#num kAFPTagTypeDDP
+#num kAFPTagTypeDNS
+
+#num kAFPTagLengthIP
+#num kAFPTagLengthIPPort
+#num kAFPTagLengthDDP
+
+#starttype struct AFPTagData
+#  field fLength, <UInt8>
+#  field fType  , <UInt8>
+#  flexible_array_member fData, <UInt8>
+#stoptype
+
+#starttype struct AFPAlternateAddress
+#  field fVersion     , <UInt8>
+#  field fAddressCount, <UInt8>
+#  flexible_array_member fAddressList, <UInt8>
+#stoptype
+
+#num kLargeIconSize
+#num kLarge4BitIconSize
+#num kLarge8BitIconSize
+#num kSmallIconSize
+#num kSmall4BitIconSize
+#num kSmall8BitIconSize
+
+#ccall FSMakeFSRefUnicode      , Ptr <FSRef> -> <UniCharCount> -> Ptr <UniChar> -> <TextEncoding> -> Ptr <FSRef> -> IO <OSErr>
+#ccall PBMakeFSRefUnicodeSync  , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBMakeFSRefUnicodeAsync , Ptr <FSRefParam> -> IO ()
+#ccall FSCompareFSRefs         , Ptr <FSRef> -> Ptr <FSRef> -> IO <OSErr>
+#ccall PBCompareFSRefsSync     , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBCompareFSRefsAsync    , Ptr <FSRefParam> -> IO ()
+#ccall FSCreateFileUnicode     , Ptr <FSRef> -> <UniCharCount> -> Ptr <UniChar> -> <FSCatalogInfoBitmap> -> Ptr <FSCatalogInfo> -> Ptr <FSRef> -> <FSSpecPtr> -> IO <OSErr>
+#ccall PBCreateFileUnicodeSync , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBCreateFileUnicodeAsync, Ptr <FSRefParam> -> IO ()
+#ccall FSCreateDirectoryUnicode, Ptr <FSRef> -> <UniCharCount> -> Ptr <UniChar> -> <FSCatalogInfoBitmap> -> Ptr <FSCatalogInfo> -> Ptr <FSRef> -> <FSSpecPtr> -> Ptr <UInt32> -> IO <OSErr>
+#ccall PBCreateDirectoryUnicodeSync , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBCreateDirectoryUnicodeAsync, Ptr <FSRefParam> -> IO ()
+#ccall FSDeleteObject          , Ptr <FSRef> -> IO <OSErr>
+#ccall PBDeleteObjectSync      , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBDeleteObjectAsync     , Ptr <FSRefParam> -> IO ()
+#ccall FSUnlinkObject          , Ptr <FSRef> -> IO <OSErr>
+#ccall PBUnlinkObjectSync      , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBUnlinkObjectAsync     , Ptr <FSRefParam> -> IO ()
+#ccall FSMoveObject            , Ptr <FSRef> -> Ptr <FSRef> -> Ptr <FSRef> -> IO <OSErr>
+#ccall PBMoveObjectSync        , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBMoveObjectAsync       , Ptr <FSRefParam> -> IO ()
+#ccall FSExchangeObjects       , Ptr <FSRef> -> Ptr <FSRef> -> IO <OSErr>
+#ccall PBExchangeObjectsSync   , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBExchangeObjectsAsync  , Ptr <FSRefParam> -> IO ()
+
+#num kFSReplaceObjectDefaultOptions
+#num kFSReplaceObjectReplaceMetadata
+#num kFSReplaceObjectSaveOriginalAsABackup
+#num kFSReplaceObjectReplacePermissionInfo
+#num kFSReplaceObjectPreservePermissionInfo
+#num kFSReplaceObjectDoNotCheckObjectWriteAccess
+
+#ccall FSReplaceObject      , Ptr <FSRef> -> Ptr <FSRef> -> <CFStringRef> -> <CFStringRef> -> Ptr <FSRef> -> <OptionBits> -> Ptr <FSRef> -> IO <OSStatus>
+#ccall FSPathReplaceObject  , Ptr CChar -> Ptr CChar -> <CFStringRef> -> <CFStringRef> -> Ptr CChar -> <OptionBits> -> IO <OSStatus>
+#ccall FSGetTemporaryDirectoryForReplaceObject    , Ptr <FSRef> -> Ptr <FSRef> -> <OptionBits> -> IO <OSStatus>
+#ccall FSPathGetTemporaryDirectoryForReplaceObject, Ptr CChar -> Ptr CChar -> <UInt32> -> <OptionBits> -> IO <OSStatus>
+#ccall FSRenameUnicode      , Ptr <FSRef> -> <UniCharCount> -> Ptr <UniChar> -> <TextEncoding> -> Ptr <FSRef> -> IO <OSErr>
+#ccall PBRenameUnicodeSync  , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBRenameUnicodeAsync , Ptr <FSRefParam> -> IO ()
+#ccall FSGetCatalogInfo     , Ptr <FSRef> -> <FSCatalogInfoBitmap> -> Ptr <FSCatalogInfo> -> Ptr <HFSUniStr255> -> <FSSpecPtr> -> Ptr <FSRef> -> IO <OSErr>
+#ccall PBGetCatalogInfoSync , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBGetCatalogInfoAsync, Ptr <FSRefParam> -> IO ()
+#ccall FSSetCatalogInfo     , Ptr <FSRef> -> <FSCatalogInfoBitmap> -> Ptr <FSCatalogInfo> -> IO <OSErr>
+#ccall PBSetCatalogInfoSync , Ptr <FSRefParam> -> IO <OSErr>
+#ccall PBSetCatalogInfoAsync, Ptr <FSRefParam> -> IO ()
+#ccall FSOpenIterator       , Ptr <FSRef> -> <FSIteratorFlags> -> Ptr <FSIterator> -> IO <OSErr>
+#ccall PBOpenIteratorSync   , Ptr <FSCatalogBulkParam> -> IO <OSErr>
+#ccall PBOpenIteratorAsync  , Ptr <FSCatalogBulkParam> -> IO ()
+#ccall FSCloseIterator      , 
\ No newline at end of file