123456789101112131415 |
- import sys
- from _pi_cffi import ffi, lib
- from pprint import pprint
- jambase = ffi.new("s_JamBase **")
- ret = lib.JAM_OpenMB(b"fsx_bot", jambase)
- if ret == 0:
- print("Success!")
- else:
- print("OpenMB ret=", ret)
- sys.exit(2)
- # pprint(jambase)
- ret = lib.JAM_CloseMB( jambase[0] )
- print("CloseMB ret=", ret)
|