Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
try it.
diff --git a/Mac/Modules/file/filescan.py b/Mac/Modules/file/filescan.py
index 4b6b70e..a7963c2 100644
--- a/Mac/Modules/file/filescan.py
+++ b/Mac/Modules/file/filescan.py
@@ -134,8 +134,6 @@
"CatPositionRec", # State variable, not too difficult
- "FSCatalogInfo", # Lots of fields, difficult struct
- "FSCatalogInfo_ptr", # Lots of fields, difficult struct
"FSIterator", # Should become an object
"FSForkInfo", # Lots of fields, difficult struct
"FSSearchParams", # Also catsearch stuff
@@ -180,6 +178,17 @@
([('FSRef_ptr', 'fromFile', 'InMode')],
[('OptFSRefPtr', 'fromFile', 'InMode')]),
+
+ # FSCatalogInfo input handling
+ ([('FSCatalogInfoBitmap', 'whichInfo', 'InMode'),
+ ('FSCatalogInfo_ptr', 'catalogInfo', 'InMode')],
+ [('FSCatalogInfoAndBitmap_in', 'catalogInfo', 'InMode')]),
+
+ # FSCatalogInfo output handling
+ ([('FSCatalogInfoBitmap', 'whichInfo', 'InMode'),
+ ('FSCatalogInfo', 'catalogInfo', 'OutMode')],
+ [('FSCatalogInfoAndBitmap_out', 'catalogInfo', 'InOutMode')]),
+
]