kLsUnknownType and kLSUnknownCreator were ints in stead of OSTypes.
Reported by Bob Ippolito.
This commit is contained in:
parent
49be4cc861
commit
e7e9bf2727
|
@ -42,6 +42,8 @@ class MyScanner(Scanner):
|
||||||
self.defsfile.write("from Carbon.Files import *\n")
|
self.defsfile.write("from Carbon.Files import *\n")
|
||||||
self.defsfile.write("kLSRequestAllInfo = -1\n")
|
self.defsfile.write("kLSRequestAllInfo = -1\n")
|
||||||
self.defsfile.write("kLSRolesAll = -1\n")
|
self.defsfile.write("kLSRolesAll = -1\n")
|
||||||
|
self.defsfile.write("kLSUnknownType = FOUR_CHAR_CODE('\\0\\0\\0\\0')\n")
|
||||||
|
self.defsfile.write("kLSUnknownCreator = FOUR_CHAR_CODE('\\0\\0\\0\\0')\n")
|
||||||
self.defsfile.write("kLSInvalidExtensionIndex = -1\n")
|
self.defsfile.write("kLSInvalidExtensionIndex = -1\n")
|
||||||
|
|
||||||
def makeblacklistnames(self):
|
def makeblacklistnames(self):
|
||||||
|
@ -51,6 +53,8 @@ class MyScanner(Scanner):
|
||||||
"kLSRequestAllInfo",
|
"kLSRequestAllInfo",
|
||||||
"kLSRolesAll",
|
"kLSRolesAll",
|
||||||
"kLSInvalidExtensionIndex",
|
"kLSInvalidExtensionIndex",
|
||||||
|
"kLSUnknownType",
|
||||||
|
"kLSUnknownCreator"
|
||||||
]
|
]
|
||||||
|
|
||||||
def makeblacklisttypes(self):
|
def makeblacklisttypes(self):
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
from distutils.core import Extension, setup
|
from distutils.core import Extension, setup
|
||||||
|
|
||||||
setup(name="LaunchServices", version="0.1",
|
setup(name="LaunchServices", version="0.2",
|
||||||
ext_modules=[
|
ext_modules=[
|
||||||
Extension('_Launch', ['_Launchmodule.c'],
|
Extension('_Launch', ['_Launchmodule.c'],
|
||||||
extra_link_args=['-framework', 'ApplicationServices'])
|
extra_link_args=['-framework', 'ApplicationServices'])
|
||||||
|
|
Loading…
Reference in New Issue