|
14 | 14 | from scantools import Scanner |
15 | 15 |
|
16 | 16 | def main(): |
| 17 | + print "=== Scanning AERegistry.h for defines ===" |
| 18 | + input = "AERegistry.h" |
| 19 | + output = "@dummy-registry.py" |
| 20 | + defsoutput = "AERegistry.py" |
| 21 | + scanner = AppleEventsScanner(input, output, defsoutput) |
| 22 | + scanner.scan() |
| 23 | + scanner.close() |
| 24 | + print "=== Scanning AEObjects.h for defines ===" |
| 25 | + # XXXX This isn't correct. We only scan AEObjects.h for defines, but there |
| 26 | + # are some functions in there that are probably useful (the accessor stuff) |
| 27 | + # once we start writing servers in python. |
| 28 | + input = "AEObjects.h" |
| 29 | + output = "@dummy-objects.py" |
| 30 | + defsoutput = "AEObjects.py" |
| 31 | + scanner = AppleEventsScanner(input, output, defsoutput) |
| 32 | + scanner.scan() |
| 33 | + scanner.close() |
| 34 | + print "=== Scanning AppleEvents.py ===" |
17 | 35 | input = "AppleEvents.h" |
18 | 36 | output = "aegen.py" |
19 | 37 | defsoutput = "AppleEvents.py" |
@@ -72,6 +90,9 @@ def makerepairinstructions(self): |
72 | 90 |
|
73 | 91 | ([("AppleEvent", "theAppleEvent", "OutMode")], |
74 | 92 | [("AppleEvent_ptr", "*", "InMode")]), |
| 93 | + |
| 94 | + ([("AEDescList", "theAEDescList", "OutMode")], |
| 95 | + [("AEDescList_ptr", "*", "InMode")]), |
75 | 96 | ] |
76 | 97 |
|
77 | 98 | if __name__ == "__main__": |
|
0 commit comments