BenLand100
2010-12-29 22:32:29
Since there seems to be a growing desire to move to python, I figured I would jump the gun a bit since I had time and get SMART to work from Python. All this really required was converting all exported methods to the cdecl calling convention (since python can't invoke stdcall methods from linux) and preserving the stdcall convention for use in Simba/SCAR, along with writing the bindings themselves. All I can say is THANK GOD FOR REGEX.
Anyway, the SMART repos (http://blanddns.no-ip.org:81/repos/public-smart) and most recent (v6.5) SMART binaries reflects these additions. The bindings are also in the test-apps folder in the repos, however for ease of viewing, I will attach them here. You python gurus might know a "better" (read: less code) way to do this, but I generated it mostly with regex anyway, and it should work like a charm (I tested it, sort of).
Cheers.
Anyway, the SMART repos (http://blanddns.no-ip.org:81/repos/public-smart) and most recent (v6.5) SMART binaries reflects these additions. The bindings are also in the test-apps folder in the repos, however for ease of viewing, I will attach them here. You python gurus might know a "better" (read: less code) way to do this, but I generated it mostly with regex anyway, and it should work like a charm (I tested it, sort of).
Cheers.