jamrun.py 317 B

123456789101112131415
  1. import sys
  2. from _pi_cffi import ffi, lib
  3. from pprint import pprint
  4. jambase = ffi.new("s_JamBase **")
  5. ret = lib.JAM_OpenMB(b"fsx_bot", jambase)
  6. if ret == 0:
  7. print("Success!")
  8. else:
  9. print("OpenMB ret=", ret)
  10. sys.exit(2)
  11. # pprint(jambase)
  12. ret = lib.JAM_CloseMB( jambase[0] )
  13. print("CloseMB ret=", ret)