Advertisement
Guest User

libblender.py - ctypes oct4th

a guest
Oct 4th, 2010
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 248.81 KB | None | 0 0
  1. ## generated by RPythonic 0.1.6
  2. ## http://code.google.com/p/rpythonic/
  3. import ctypes
  4. from ctypes import *
  5. _lib = ctypes.CDLL('lib/libblender.so')
  6. def _c_external_function( name, args=[], result=ctypes.c_void_p ):
  7.     """Build and apply a ctypes prototype complete with parameter flags"""
  8.     atypes = []; aflags = []
  9.     for arg in args:
  10.         atypes.append(arg[1])
  11.         aflags.append((arg[2], arg[0]) + arg[3:])
  12.     try: return ctypes.CFUNCTYPE(result, *atypes)((name, _lib), tuple(aflags))
  13.     except: print( 'undefined symbol: can not load->', name)
  14. #size_t                         <TypeDecl=int>
  15. #__builtin_va_list                          <TypeDecl=int>
  16. #__gnuc_va_list                         <TypeDecl=int>
  17. #__int8_t                           <TypeDecl=int>
  18. #__uint8_t                          <TypeDecl=int>
  19. #__int16_t                          <TypeDecl=int>
  20. #__uint16_t                         <TypeDecl=int>
  21. #__int_least16_t                            <TypeDecl=int>
  22. #__uint_least16_t                           <TypeDecl=int>
  23. #__int32_t                          <TypeDecl=int>
  24. #__uint32_t                         <TypeDecl=int>
  25. #__int_least32_t                            <TypeDecl=int>
  26. #__uint_least32_t                           <TypeDecl=int>
  27. #_LOCK_T                            <TypeDecl=int>
  28. #_LOCK_RECURSIVE_T                          <TypeDecl=int>
  29. #_off_t                         <TypeDecl=int>
  30. #__dev_t                            <TypeDecl=int>
  31. #__uid_t                            <TypeDecl=int>
  32. #__gid_t                            <TypeDecl=int>
  33. #_off64_t                           <TypeDecl=int>
  34. #_fpos_t                            <TypeDecl=int>
  35. #_ssize_t                           <TypeDecl=int>
  36. #wint_t                         <TypeDecl=int>
  37. #_mbstate_t                         <TypeDecl=int>
  38. #_flock_t                           <TypeDecl=int>
  39. #_iconv_t                           <TypeDecl=int>
  40. #__ULong                            <TypeDecl=int>
  41. #__FILE                         <TypeDecl=int>
  42. #ptrdiff_t                          <TypeDecl=int>
  43. #wchar_t                            <TypeDecl=int>
  44. #__off_t                            <TypeDecl=int>
  45. #__pid_t                            <TypeDecl=int>
  46. #__loff_t                           <TypeDecl=int>
  47. #u_char                         <TypeDecl=int>
  48. #u_short                            <TypeDecl=int>
  49. #u_int                          <TypeDecl=int>
  50. #u_long                         <TypeDecl=int>
  51. #ushort                         <TypeDecl=int>
  52. #uint                           <TypeDecl=int>
  53. #clock_t                            <TypeDecl=int>
  54. #time_t                         <TypeDecl=int>
  55. #daddr_t                            <TypeDecl=int>
  56. #caddr_t                            <TypeDecl=int>
  57. #ino_t                          <TypeDecl=int>
  58. #off_t                          <TypeDecl=int>
  59. #dev_t                          <TypeDecl=int>
  60. #uid_t                          <TypeDecl=int>
  61. #gid_t                          <TypeDecl=int>
  62. #pid_t                          <TypeDecl=int>
  63. #key_t                          <TypeDecl=int>
  64. #ssize_t                            <TypeDecl=int>
  65. #mode_t                         <TypeDecl=int>
  66. #nlink_t                            <TypeDecl=int>
  67. #fd_mask                            <TypeDecl=int>
  68. #_types_fd_set                          <TypeDecl=int>
  69. #clockid_t                          <TypeDecl=int>
  70. #timer_t                            <TypeDecl=int>
  71. #useconds_t                         <TypeDecl=int>
  72. #suseconds_t                            <TypeDecl=int>
  73. #FILE                           <TypeDecl=int>
  74. #fpos_t                         <TypeDecl=int>
  75. #cookie_read_function_t                         <TypeDecl=int>
  76. #cookie_write_function_t                            <TypeDecl=int>
  77. #cookie_seek_function_t                         <TypeDecl=int>
  78. #cookie_close_function_t                            <TypeDecl=int>
  79. #cookie_io_functions_t                          <TypeDecl=int>
  80. #div_t                          <TypeDecl=int>
  81. #ldiv_t                         <TypeDecl=int>
  82. #lldiv_t                            <TypeDecl=int>
  83. #sigset_t                           <TypeDecl=int>
  84. #_sig_func_ptr                          <TypeDecl=int>
  85. #sig_atomic_t                           <TypeDecl=int>
  86. #__tzrule_type                          <TypeDecl=int>
  87. #__tzinfo_type                          <TypeDecl=int>
  88. #mbstate_t                          <TypeDecl=int>
  89. #uintptr_t                          <TypeDecl=long>
  90. #intptr_t                           <TypeDecl=long>
  91. #pthread_rwlock_t                           <TypeDecl=union>
  92. #pthread_mutex_t                            <TypeDecl=union>
  93. MEM_allocN_len = _c_external_function(      "MEM_allocN_len", [],
  94.     ctypes.c_size_t )
  95.  
  96. MEM_freeN = _c_external_function(       "MEM_freeN", [],
  97.     ctypes.c_short )
  98.  
  99. MEM_testN = _c_external_function(       "MEM_testN", [],
  100.     ctypes.c_short )
  101.  
  102. MEM_dupallocN = _c_external_function(       "MEM_dupallocN", [],
  103.     ctypes.c_void_p )
  104.  
  105. MEM_reallocN = _c_external_function(        "MEM_reallocN", [
  106.     ("vmemh", ctypes.POINTER( ctypes.c_void_p ), 1),
  107.     ("len", ctypes.c_size_t, 1),],
  108.     ctypes.c_void_p )
  109.  
  110. MEM_callocN = _c_external_function(     "MEM_callocN", [
  111.     ("len", ctypes.c_size_t, 1),
  112.     ("str", ctypes.c_char_p, 1),],
  113.     ctypes.c_void_p )
  114.  
  115. MEM_mallocN = _c_external_function(     "MEM_mallocN", [
  116.     ("len", ctypes.c_size_t, 1),
  117.     ("str", ctypes.c_char_p, 1),],
  118.     ctypes.c_void_p )
  119.  
  120. MEM_mapallocN = _c_external_function(       "MEM_mapallocN", [
  121.     ("len", ctypes.c_size_t, 1),
  122.     ("str", ctypes.c_char_p, 1),],
  123.     ctypes.c_void_p )
  124.  
  125. MEM_printmemlist_pydict = _c_external_function(     "MEM_printmemlist_pydict", [],
  126.     ctypes.c_void_p )
  127.  
  128. MEM_printmemlist = _c_external_function(        "MEM_printmemlist", [],
  129.     ctypes.c_void_p )
  130.  
  131. MEM_callbackmemlist = _c_external_function(     "MEM_callbackmemlist", [
  132.     ("func", ctypes.c_void_p, 1),],
  133.     ctypes.c_void_p )
  134.  
  135. MEM_printmemlist_stats = _c_external_function(      "MEM_printmemlist_stats", [],
  136.     ctypes.c_void_p )
  137.  
  138. MEM_set_error_callback = _c_external_function(      "MEM_set_error_callback", [
  139.     ("func", ctypes.c_void_p, 1),],
  140.     ctypes.c_void_p )
  141.  
  142. MEM_check_memory_integrity = _c_external_function(      "MEM_check_memory_integrity", [],
  143.     ctypes.c_int )
  144.  
  145. MEM_set_lock_callback = _c_external_function(       "MEM_set_lock_callback", [
  146.     ("lock", ctypes.c_void_p, 1),
  147.     ("unlock", ctypes.c_void_p, 1),],
  148.     ctypes.c_void_p )
  149.  
  150. MEM_set_memory_debug = _c_external_function(        "MEM_set_memory_debug", [],
  151.     ctypes.c_void_p )
  152.  
  153. MEM_get_memory_in_use = _c_external_function(       "MEM_get_memory_in_use", [],
  154.     ctypes.c_void_p )
  155.  
  156. MEM_get_mapped_memory_in_use = _c_external_function(        "MEM_get_mapped_memory_in_use", [],
  157.     ctypes.c_void_p )
  158.  
  159. MEM_get_memory_blocks_in_use = _c_external_function(        "MEM_get_memory_blocks_in_use", [],
  160.     ctypes.c_int )
  161.  
  162. MEM_reset_peak_memory = _c_external_function(       "MEM_reset_peak_memory", [],
  163.     ctypes.c_void_p )
  164.  
  165. MEM_get_peak_memory = _c_external_function(     "MEM_get_peak_memory", [],
  166.     ctypes.c_void_p )
  167.  
  168. #class bArgs(ctypes.Structure): pass        # typedef or forward reference #
  169. #class bArgs(ctypes.Structure): pass        # typedef or forward reference #
  170. BA_ArgCallback = _c_external_function(      "BA_ArgCallback", [
  171.     ("argc", ctypes.c_int, 1),
  172.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  173.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  174.     ctypes.c_int )
  175.  
  176. BLI_argsInit = _c_external_function(        "BLI_argsInit", [
  177.     ("argc", ctypes.c_int, 1),
  178.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),],
  179.     ctypes.c_void_p )
  180.  
  181. BLI_argsFree = _c_external_function(        "BLI_argsFree", [
  182.     ("ba", ctypes.c_void_p, 1),],
  183.     ctypes.c_void_p )
  184.  
  185. BLI_argsAdd = _c_external_function(     "BLI_argsAdd", [
  186.     ("ba", ctypes.c_void_p, 1),
  187.     ("pass", ctypes.c_int, 1),
  188.     ("short_arg", ctypes.c_char_p, 1),
  189.     ("long_arg", ctypes.c_char_p, 1),
  190.     ("doc", ctypes.c_char_p, 1),
  191.     ("cb", ctypes.c_void_p, 1),
  192.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  193.     ctypes.c_void_p )
  194.  
  195. BLI_argsAddCase = _c_external_function(     "BLI_argsAddCase", [
  196.     ("ba", ctypes.c_void_p, 1),
  197.     ("pass", ctypes.c_int, 1),
  198.     ("short_arg", ctypes.c_char_p, 1),
  199.     ("short_case", ctypes.c_int, 1),
  200.     ("long_arg", ctypes.c_char_p, 1),
  201.     ("long_case", ctypes.c_int, 1),
  202.     ("doc", ctypes.c_char_p, 1),
  203.     ("cb", ctypes.c_void_p, 1),
  204.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  205.     ctypes.c_void_p )
  206.  
  207. BLI_argsParse = _c_external_function(       "BLI_argsParse", [
  208.     ("ba", ctypes.c_void_p, 1),
  209.     ("pass", ctypes.c_int, 1),
  210.     ("default_cb", ctypes.c_void_p, 1),
  211.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  212.     ctypes.c_void_p )
  213.  
  214. BLI_argsPrintArgDoc = _c_external_function(     "BLI_argsPrintArgDoc", [
  215.     ("ba", ctypes.c_void_p, 1),
  216.     ("arg", ctypes.c_char_p, 1),],
  217.     ctypes.c_void_p )
  218.  
  219. BLI_argsPrintOtherDoc = _c_external_function(       "BLI_argsPrintOtherDoc", [
  220.     ("ba", ctypes.c_void_p, 1),],
  221.     ctypes.c_void_p )
  222.  
  223. BLI_argsPrint = _c_external_function(       "BLI_argsPrint", [
  224.     ("ba", ctypes.c_void_p, 1),],
  225.     ctypes.c_void_p )
  226.  
  227. BLI_argsArgv = _c_external_function(        "BLI_argsArgv", [
  228.     ("ba", ctypes.c_void_p, 1),],
  229.     ctypes.c_char_p )
  230.  
  231. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  232. BLI_threadapi_init = _c_external_function(      "BLI_threadapi_init", [],
  233.     ctypes.c_void_p )
  234.  
  235. BLI_init_threads = _c_external_function(        "BLI_init_threads", [
  236.     ("threadbase", ctypes.c_void_p, 1),
  237.     ("do_thread", ctypes.c_void_p, 1),
  238.     ("tot", ctypes.c_int, 1),],
  239.     ctypes.c_void_p )
  240.  
  241. BLI_available_threads = _c_external_function(       "BLI_available_threads", [
  242.     ("threadbase", ctypes.c_void_p, 1),],
  243.     ctypes.c_int )
  244.  
  245. BLI_available_thread_index = _c_external_function(      "BLI_available_thread_index", [
  246.     ("threadbase", ctypes.c_void_p, 1),],
  247.     ctypes.c_int )
  248.  
  249. BLI_insert_thread = _c_external_function(       "BLI_insert_thread", [
  250.     ("threadbase", ctypes.c_void_p, 1),
  251.     ("callerdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  252.     ctypes.c_void_p )
  253.  
  254. BLI_remove_thread = _c_external_function(       "BLI_remove_thread", [
  255.     ("threadbase", ctypes.c_void_p, 1),
  256.     ("callerdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  257.     ctypes.c_void_p )
  258.  
  259. BLI_remove_thread_index = _c_external_function(     "BLI_remove_thread_index", [
  260.     ("threadbase", ctypes.c_void_p, 1),
  261.     ("index", ctypes.c_int, 1),],
  262.     ctypes.c_void_p )
  263.  
  264. BLI_remove_threads = _c_external_function(      "BLI_remove_threads", [
  265.     ("threadbase", ctypes.c_void_p, 1),],
  266.     ctypes.c_void_p )
  267.  
  268. BLI_end_threads = _c_external_function(     "BLI_end_threads", [
  269.     ("threadbase", ctypes.c_void_p, 1),],
  270.     ctypes.c_void_p )
  271.  
  272. BLI_thread_is_main = _c_external_function(      "BLI_thread_is_main", [],
  273.     ctypes.c_int )
  274.  
  275. BLI_system_thread_count = _c_external_function(     "BLI_system_thread_count", [],
  276.     ctypes.c_int )
  277.  
  278. BLI_lock_thread = _c_external_function(     "BLI_lock_thread", [
  279.     ("type", ctypes.c_int, 1),],
  280.     ctypes.c_void_p )
  281.  
  282. BLI_unlock_thread = _c_external_function(       "BLI_unlock_thread", [
  283.     ("type", ctypes.c_int, 1),],
  284.     ctypes.c_void_p )
  285.  
  286. #ThreadMutex                            <TypeDecl=pthread_mutex_t>
  287. BLI_mutex_init = _c_external_function(      "BLI_mutex_init", [
  288.     ("mutex", ctypes.c_void_p, 1),],
  289.     ctypes.c_void_p )
  290.  
  291. BLI_mutex_lock = _c_external_function(      "BLI_mutex_lock", [
  292.     ("mutex", ctypes.c_void_p, 1),],
  293.     ctypes.c_void_p )
  294.  
  295. BLI_mutex_unlock = _c_external_function(        "BLI_mutex_unlock", [
  296.     ("mutex", ctypes.c_void_p, 1),],
  297.     ctypes.c_void_p )
  298.  
  299. BLI_mutex_end = _c_external_function(       "BLI_mutex_end", [
  300.     ("mutex", ctypes.c_void_p, 1),],
  301.     ctypes.c_void_p )
  302.  
  303. #ThreadRWMutex                          <TypeDecl=pthread_rwlock_t>
  304. BLI_rw_mutex_init = _c_external_function(       "BLI_rw_mutex_init", [
  305.     ("mutex", ctypes.c_void_p, 1),],
  306.     ctypes.c_void_p )
  307.  
  308. BLI_rw_mutex_lock = _c_external_function(       "BLI_rw_mutex_lock", [
  309.     ("mutex", ctypes.c_void_p, 1),
  310.     ("mode", ctypes.c_int, 1),],
  311.     ctypes.c_void_p )
  312.  
  313. BLI_rw_mutex_unlock = _c_external_function(     "BLI_rw_mutex_unlock", [
  314.     ("mutex", ctypes.c_void_p, 1),],
  315.     ctypes.c_void_p )
  316.  
  317. BLI_rw_mutex_end = _c_external_function(        "BLI_rw_mutex_end", [
  318.     ("mutex", ctypes.c_void_p, 1),],
  319.     ctypes.c_void_p )
  320.  
  321. #class ThreadedWorker(ctypes.Structure): pass       # typedef or forward reference #
  322. BLI_create_worker = _c_external_function(       "BLI_create_worker", [
  323.     ("do_thread", ctypes.c_void_p, 1),
  324.     ("tot", ctypes.c_int, 1),
  325.     ("sleep_time", ctypes.c_int, 1),],
  326.     ctypes.c_void_p )
  327.  
  328. BLI_end_worker = _c_external_function(      "BLI_end_worker", [
  329.     ("worker", ctypes.c_void_p, 1),],
  330.     ctypes.c_void_p )
  331.  
  332. BLI_destroy_worker = _c_external_function(      "BLI_destroy_worker", [
  333.     ("worker", ctypes.c_void_p, 1),],
  334.     ctypes.c_void_p )
  335.  
  336. BLI_insert_work = _c_external_function(     "BLI_insert_work", [
  337.     ("worker", ctypes.c_void_p, 1),
  338.     ("param", ctypes.POINTER( ctypes.c_void_p ), 1),],
  339.     ctypes.c_void_p )
  340.  
  341. #class ThreadQueue(ctypes.Structure): pass      # typedef or forward reference #
  342. BLI_thread_queue_init = _c_external_function(       "BLI_thread_queue_init", [],
  343.     ctypes.c_void_p )
  344.  
  345. BLI_thread_queue_free = _c_external_function(       "BLI_thread_queue_free", [
  346.     ("queue", ctypes.c_void_p, 1),],
  347.     ctypes.c_void_p )
  348.  
  349. BLI_thread_queue_push = _c_external_function(       "BLI_thread_queue_push", [
  350.     ("queue", ctypes.c_void_p, 1),
  351.     ("work", ctypes.POINTER( ctypes.c_void_p ), 1),],
  352.     ctypes.c_void_p )
  353.  
  354. BLI_thread_queue_pop = _c_external_function(        "BLI_thread_queue_pop", [
  355.     ("queue", ctypes.c_void_p, 1),],
  356.     ctypes.c_void_p )
  357.  
  358. BLI_thread_queue_pop_timeout = _c_external_function(        "BLI_thread_queue_pop_timeout", [
  359.     ("queue", ctypes.c_void_p, 1),
  360.     ("ms", ctypes.c_int, 1),],
  361.     ctypes.c_void_p )
  362.  
  363. BLI_thread_queue_size = _c_external_function(       "BLI_thread_queue_size", [
  364.     ("queue", ctypes.c_void_p, 1),],
  365.     ctypes.c_int )
  366.  
  367. BLI_thread_queue_nowait = _c_external_function(     "BLI_thread_queue_nowait", [
  368.     ("queue", ctypes.c_void_p, 1),],
  369.     ctypes.c_void_p )
  370.  
  371. #GEN_errorstream                            <TypeDecl=FILE>
  372. #GEN_userstream                         <TypeDecl=FILE>
  373. GEN_init_messaging_system = _c_external_function(       "GEN_init_messaging_system", [],
  374.     ctypes.c_void_p )
  375.  
  376. class Link(ctypes.Structure): _fields_=[
  377.     ( "next", ctypes.c_void_p ),
  378.     ( "prev", ctypes.c_void_p ),]
  379.  
  380. class LinkData(ctypes.Structure): _fields_=[
  381.     ( "next", ctypes.c_void_p ),
  382.     ( "prev", ctypes.c_void_p ),
  383.     ( "data", ctypes.POINTER( ctypes.c_void_p ) ),]
  384.  
  385. class ListBase(ctypes.Structure): _fields_=[
  386.     ( "first", ctypes.POINTER( ctypes.c_void_p ) ),
  387.     ( "last", ctypes.POINTER( ctypes.c_void_p ) ),]
  388.  
  389. #class Library(ctypes.Structure): pass      # typedef or forward reference #
  390. #class FileData(ctypes.Structure): pass     # typedef or forward reference #
  391. #class ID(ctypes.Structure): pass       # typedef or forward reference #
  392. class IDPropertyData(ctypes.Structure): _fields_=[
  393.     ( "pointer", ctypes.POINTER( ctypes.c_void_p ) ),
  394.     ( "group", ctypes.c_void_p ),
  395.     ( "val", ctypes.c_int ),
  396.     ( "val2", ctypes.c_int ),]
  397.  
  398. class IDProperty(ctypes.Structure): _fields_=[
  399.     ( "next", ctypes.c_void_p ),
  400.     ( "prev", ctypes.c_void_p ),
  401.     ( "type", ctypes.c_char ),
  402.     ( "subtype", ctypes.c_char ),
  403.     ( "flag", ctypes.c_short ),
  404.     ( "name", ctypes.c_char ),
  405.     ( "saved", ctypes.c_int ),
  406.     ( "data", ctypes.c_void_p ),
  407.     ( "len", ctypes.c_int ),
  408.     ( "totallen", ctypes.c_int ),]
  409.  
  410. class ID(ctypes.Structure): _fields_=[
  411.     ( "next", ctypes.POINTER( ctypes.c_void_p ) ),
  412.     ( "prev", ctypes.POINTER( ctypes.c_void_p ) ),
  413.     ( "newid", ctypes.c_void_p ),
  414.     ( "lib", ctypes.c_void_p ),
  415.     ( "name", ctypes.c_char ),
  416.     ( "us", ctypes.c_short ),
  417.     ( "flag", ctypes.c_short ),
  418.     ( "icon_id", ctypes.c_int ),
  419.     ( "properties", ctypes.c_void_p ),]
  420.  
  421. class Library(ctypes.Structure): _fields_=[
  422.     ( "id", ctypes.c_void_p ),
  423.     ( "idblock", ctypes.c_void_p ),
  424.     ( "filedata", ctypes.c_void_p ),
  425.     ( "name", ctypes.c_char ),
  426.     ( "filepath", ctypes.c_char ),
  427.     ( "tot", ctypes.c_int ),
  428.     ( "pad", ctypes.c_int ),
  429.     ( "parent", ctypes.c_void_p ),]
  430.  
  431. class PreviewImage(ctypes.Structure): _fields_=[
  432.     ( "w", ctypes.c_int ),
  433.     ( "h", ctypes.c_int ),
  434.     ( "changed", ctypes.c_short ),
  435.     ( "changed_timestamp", ctypes.c_short ),
  436.     ( "rect", ctypes.POINTER( ctypes.c_int ) ),]
  437.  
  438. class vec2s(ctypes.Structure): _fields_=[
  439.     ( "x", ctypes.c_short ),
  440.     ( "y", ctypes.c_short ),]
  441.  
  442. class vec2f(ctypes.Structure): _fields_=[
  443.     ( "x", ctypes.c_float ),
  444.     ( "y", ctypes.c_float ),]
  445.  
  446. class rcti(ctypes.Structure): _fields_=[
  447.     ( "xmin", ctypes.c_int ),
  448.     ( "xmax", ctypes.c_int ),
  449.     ( "ymin", ctypes.c_int ),
  450.     ( "ymax", ctypes.c_int ),]
  451.  
  452. class rctf(ctypes.Structure): _fields_=[
  453.     ( "xmin", ctypes.c_float ),
  454.     ( "xmax", ctypes.c_float ),
  455.     ( "ymin", ctypes.c_float ),
  456.     ( "ymax", ctypes.c_float ),]
  457.  
  458. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  459. #class Brush(ctypes.Structure): pass        # typedef or forward reference #
  460. #class World(ctypes.Structure): pass        # typedef or forward reference #
  461. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  462. #class Image(ctypes.Structure): pass        # typedef or forward reference #
  463. #class Group(ctypes.Structure): pass        # typedef or forward reference #
  464. #class Text(ctypes.Structure): pass     # typedef or forward reference #
  465. #class bNodeTree(ctypes.Structure): pass        # typedef or forward reference #
  466. #class AnimData(ctypes.Structure): pass     # typedef or forward reference #
  467. #class Editing(ctypes.Structure): pass      # typedef or forward reference #
  468. #class SceneStats(ctypes.Structure): pass       # typedef or forward reference #
  469. #class bGPdata(ctypes.Structure): pass      # typedef or forward reference #
  470. class Base(ctypes.Structure): _fields_=[
  471.     ( "next", ctypes.c_void_p ),
  472.     ( "prev", ctypes.c_void_p ),
  473.     ( "lay", ctypes.c_int ),
  474.     ( "selcol", ctypes.c_int ),
  475.     ( "flag", ctypes.c_int ),
  476.     ( "sx", ctypes.c_short ),
  477.     ( "sy", ctypes.c_short ),
  478.     ( "object", ctypes.c_void_p ),]
  479.  
  480. class AviCodecData(ctypes.Structure): _fields_=[
  481.     ( "lpFormat", ctypes.POINTER( ctypes.c_void_p ) ),
  482.     ( "lpParms", ctypes.POINTER( ctypes.c_void_p ) ),
  483.     ( "cbFormat", ctypes.c_int ),
  484.     ( "cbParms", ctypes.c_int ),
  485.     ( "fccType", ctypes.c_int ),
  486.     ( "fccHandler", ctypes.c_int ),
  487.     ( "dwKeyFrameEvery", ctypes.c_int ),
  488.     ( "dwQuality", ctypes.c_int ),
  489.     ( "dwBytesPerSecond", ctypes.c_int ),
  490.     ( "dwFlags", ctypes.c_int ),
  491.     ( "dwInterleaveEvery", ctypes.c_int ),
  492.     ( "pad", ctypes.c_int ),
  493.     ( "avicodecname", ctypes.c_char ),]
  494.  
  495. class QuicktimeCodecData(ctypes.Structure): _fields_=[
  496.     ( "cdParms", ctypes.POINTER( ctypes.c_void_p ) ),
  497.     ( "pad", ctypes.POINTER( ctypes.c_void_p ) ),
  498.     ( "cdSize", ctypes.c_int ),
  499.     ( "pad2", ctypes.c_int ),
  500.     ( "qtcodecname", ctypes.c_char ),]
  501.  
  502. class QuicktimeCodecSettings(ctypes.Structure): _fields_=[
  503.     ( "codecType", ctypes.c_int ),
  504.     ( "codecSpatialQuality", ctypes.c_int ),
  505.     ( "codec", ctypes.c_int ),
  506.     ( "codecFlags", ctypes.c_int ),
  507.     ( "colorDepth", ctypes.c_int ),
  508.     ( "codecTemporalQuality", ctypes.c_int ),
  509.     ( "minSpatialQuality", ctypes.c_int ),
  510.     ( "minTemporalQuality", ctypes.c_int ),
  511.     ( "keyFrameRate", ctypes.c_int ),
  512.     ( "bitRate", ctypes.c_int ),
  513.     ( "audiocodecType", ctypes.c_int ),
  514.     ( "audioSampleRate", ctypes.c_int ),
  515.     ( "audioBitDepth", ctypes.c_short ),
  516.     ( "audioChannels", ctypes.c_short ),
  517.     ( "audioCodecFlags", ctypes.c_int ),
  518.     ( "audioBitRate", ctypes.c_int ),
  519.     ( "pad1", ctypes.c_int ),]
  520.  
  521. class FFMpegCodecData(ctypes.Structure): _fields_=[
  522.     ( "type", ctypes.c_int ),
  523.     ( "codec", ctypes.c_int ),
  524.     ( "audio_codec", ctypes.c_int ),
  525.     ( "video_bitrate", ctypes.c_int ),
  526.     ( "audio_bitrate", ctypes.c_int ),
  527.     ( "audio_mixrate", ctypes.c_int ),
  528.     ( "audio_volume", ctypes.c_float ),
  529.     ( "gop_size", ctypes.c_int ),
  530.     ( "flags", ctypes.c_int ),
  531.     ( "rc_min_rate", ctypes.c_int ),
  532.     ( "rc_max_rate", ctypes.c_int ),
  533.     ( "rc_buffer_size", ctypes.c_int ),
  534.     ( "mux_packet_size", ctypes.c_int ),
  535.     ( "mux_rate", ctypes.c_int ),
  536.     ( "properties", ctypes.c_void_p ),]
  537.  
  538. class AudioData(ctypes.Structure): _fields_=[
  539.     ( "mixrate", ctypes.c_int ),
  540.     ( "main", ctypes.c_float ),
  541.     ( "speed_of_sound", ctypes.c_float ),
  542.     ( "doppler_factor", ctypes.c_float ),
  543.     ( "distance_model", ctypes.c_int ),
  544.     ( "flag", ctypes.c_short ),
  545.     ( "pad", ctypes.c_short ),]
  546.  
  547. class SceneRenderLayer(ctypes.Structure): _fields_=[
  548.     ( "next", ctypes.c_void_p ),
  549.     ( "prev", ctypes.c_void_p ),
  550.     ( "name", ctypes.c_char ),
  551.     ( "mat_override", ctypes.c_void_p ),
  552.     ( "light_override", ctypes.c_void_p ),
  553.     ( "lay", ctypes.c_int ),
  554.     ( "lay_zmask", ctypes.c_int ),
  555.     ( "layflag", ctypes.c_int ),
  556.     ( "pad", ctypes.c_int ),
  557.     ( "passflag", ctypes.c_int ),
  558.     ( "pass_xor", ctypes.c_int ),]
  559.  
  560. class RenderData(ctypes.Structure): _fields_=[
  561.     ( "avicodecdata", ctypes.c_void_p ),
  562.     ( "qtcodecdata", ctypes.c_void_p ),
  563.     ( "qtcodecsettings", ctypes.c_void_p ),
  564.     ( "ffcodecdata", ctypes.c_void_p ),
  565.     ( "cfra", ctypes.c_int ),
  566.     ( "sfra", ctypes.c_int ),
  567.     ( "efra", ctypes.c_int ),
  568.     ( "subframe", ctypes.c_float ),
  569.     ( "psfra", ctypes.c_int ),
  570.     ( "pefra", ctypes.c_int ),
  571.     ( "images", ctypes.c_int ),
  572.     ( "framapto", ctypes.c_int ),
  573.     ( "flag", ctypes.c_short ),
  574.     ( "threads", ctypes.c_short ),
  575.     ( "framelen", ctypes.c_float ),
  576.     ( "blurfac", ctypes.c_float ),
  577.     ( "edgeR", ctypes.c_float ),
  578.     ( "edgeG", ctypes.c_float ),
  579.     ( "edgeB", ctypes.c_float ),
  580.     ( "fullscreen", ctypes.c_short ),
  581.     ( "xplay", ctypes.c_short ),
  582.     ( "yplay", ctypes.c_short ),
  583.     ( "freqplay", ctypes.c_short ),
  584.     ( "depth", ctypes.c_short ),
  585.     ( "attrib", ctypes.c_short ),
  586.     ( "rt2", ctypes.c_short ),
  587.     ( "frame_step", ctypes.c_short ),
  588.     ( "stereomode", ctypes.c_short ),
  589.     ( "dimensionspreset", ctypes.c_short ),
  590.     ( "filtertype", ctypes.c_short ),
  591.     ( "size", ctypes.c_short ),
  592.     ( "maximsize", ctypes.c_short ),
  593.     ( "xsch", ctypes.c_short ),
  594.     ( "ysch", ctypes.c_short ),
  595.     ( "xparts", ctypes.c_short ),
  596.     ( "yparts", ctypes.c_short ),
  597.     ( "winpos", ctypes.c_short ),
  598.     ( "planes", ctypes.c_short ),
  599.     ( "imtype", ctypes.c_short ),
  600.     ( "subimtype", ctypes.c_short ),
  601.     ( "bufflag", ctypes.c_short ),
  602.     ( "quality", ctypes.c_short ),
  603.     ( "displaymode", ctypes.c_short ),
  604.     ( "rpad1", ctypes.c_short ),
  605.     ( "rpad2", ctypes.c_short ),
  606.     ( "scemode", ctypes.c_int ),
  607.     ( "mode", ctypes.c_int ),
  608.     ( "raytrace_options", ctypes.c_int ),
  609.     ( "raytrace_structure", ctypes.c_short ),
  610.     ( "renderer", ctypes.c_short ),
  611.     ( "ocres", ctypes.c_short ),
  612.     ( "pad4", ctypes.c_short ),
  613.     ( "alphamode", ctypes.c_short ),
  614.     ( "osa", ctypes.c_short ),
  615.     ( "frs_sec", ctypes.c_short ),
  616.     ( "edgeint", ctypes.c_short ),
  617.     ( "safety", ctypes.c_void_p ),
  618.     ( "border", ctypes.c_void_p ),
  619.     ( "disprect", ctypes.c_void_p ),
  620.     ( "layers", ctypes.c_void_p ),
  621.     ( "actlay", ctypes.c_short ),
  622.     ( "mblur_samples", ctypes.c_short ),
  623.     ( "xasp", ctypes.c_float ),
  624.     ( "yasp", ctypes.c_float ),
  625.     ( "frs_sec_base", ctypes.c_float ),
  626.     ( "gauss", ctypes.c_float ),
  627.     ( "color_mgt_flag", ctypes.c_int ),
  628.     ( "postgamma", ctypes.c_float ),
  629.     ( "posthue", ctypes.c_float ),
  630.     ( "postsat", ctypes.c_float ),
  631.     ( "dither_intensity", ctypes.c_float ),
  632.     ( "bake_osa", ctypes.c_short ),
  633.     ( "bake_filter", ctypes.c_short ),
  634.     ( "bake_mode", ctypes.c_short ),
  635.     ( "bake_flag", ctypes.c_short ),
  636.     ( "bake_normal_space", ctypes.c_short ),
  637.     ( "bake_quad_split", ctypes.c_short ),
  638.     ( "bake_maxdist", ctypes.c_float ),
  639.     ( "bake_biasdist", ctypes.c_float ),
  640.     ( "bake_pad", ctypes.c_float ),
  641.     ( "backbuf", ctypes.c_char ),
  642.     ( "pic", ctypes.c_char ),
  643.     ( "stamp", ctypes.c_int ),
  644.     ( "stamp_font_id", ctypes.c_short ),
  645.     ( "pad3", ctypes.c_short ),
  646.     ( "stamp_udata", ctypes.c_char ),
  647.     ( "fg_stamp", ctypes.c_float ),
  648.     ( "bg_stamp", ctypes.c_float ),
  649.     ( "seq_prev_type", ctypes.c_char ),
  650.     ( "seq_rend_type", ctypes.c_char ),
  651.     ( "seq_flag", ctypes.c_char ),
  652.     ( "pad5", ctypes.c_char ),
  653.     ( "simplify_flag", ctypes.c_int ),
  654.     ( "simplify_subsurf", ctypes.c_short ),
  655.     ( "simplify_shadowsamples", ctypes.c_short ),
  656.     ( "simplify_particles", ctypes.c_float ),
  657.     ( "simplify_aosss", ctypes.c_float ),
  658.     ( "cineonwhite", ctypes.c_short ),
  659.     ( "cineonblack", ctypes.c_short ),
  660.     ( "cineongamma", ctypes.c_float ),
  661.     ( "jp2_preset", ctypes.c_short ),
  662.     ( "jp2_depth", ctypes.c_short ),
  663.     ( "rpad3", ctypes.c_int ),
  664.     ( "domeres", ctypes.c_short ),
  665.     ( "domemode", ctypes.c_short ),
  666.     ( "domeangle", ctypes.c_short ),
  667.     ( "dometilt", ctypes.c_short ),
  668.     ( "domeresbuf", ctypes.c_float ),
  669.     ( "pad2", ctypes.c_float ),
  670.     ( "dometext", ctypes.c_void_p ),
  671.     ( "engine", ctypes.c_char ),]
  672.  
  673. class RenderProfile(ctypes.Structure): _fields_=[
  674.     ( "next", ctypes.c_void_p ),
  675.     ( "prev", ctypes.c_void_p ),
  676.     ( "name", ctypes.c_char ),
  677.     ( "particle_perc", ctypes.c_short ),
  678.     ( "subsurf_max", ctypes.c_short ),
  679.     ( "shadbufsample_max", ctypes.c_short ),
  680.     ( "pad1", ctypes.c_short ),
  681.     ( "ao_error", ctypes.c_float ),
  682.     ( "pad2", ctypes.c_float ),]
  683.  
  684. class GameDome(ctypes.Structure): _fields_=[
  685.     ( "res", ctypes.c_short ),
  686.     ( "mode", ctypes.c_short ),
  687.     ( "angle", ctypes.c_short ),
  688.     ( "tilt", ctypes.c_short ),
  689.     ( "resbuf", ctypes.c_float ),
  690.     ( "pad2", ctypes.c_float ),
  691.     ( "warptext", ctypes.c_void_p ),]
  692.  
  693. class GameFraming(ctypes.Structure): _fields_=[
  694.     ( "col", ctypes.c_float ),
  695.     ( "type", ctypes.c_char ),
  696.     ( "pad1", ctypes.c_char ),
  697.     ( "pad2", ctypes.c_char ),
  698.     ( "pad3", ctypes.c_char ),]
  699.  
  700. class GameData(ctypes.Structure): _fields_=[
  701.     ( "gravity", ctypes.c_float ),
  702.     ( "activityBoxRadius", ctypes.c_float ),
  703.     ( "mode", ctypes.c_short ),
  704.     ( "flag", ctypes.c_short ),
  705.     ( "matmode", ctypes.c_short ),
  706.     ( "pad", ctypes.c_short ),
  707.     ( "occlusionRes", ctypes.c_short ),
  708.     ( "physicsEngine", ctypes.c_short ),
  709.     ( "ticrate", ctypes.c_short ),
  710.     ( "maxlogicstep", ctypes.c_short ),
  711.     ( "physubstep", ctypes.c_short ),
  712.     ( "maxphystep", ctypes.c_short ),
  713.     ( "framing", ctypes.c_void_p ),
  714.     ( "fullscreen", ctypes.c_short ),
  715.     ( "xplay", ctypes.c_short ),
  716.     ( "yplay", ctypes.c_short ),
  717.     ( "freqplay", ctypes.c_short ),
  718.     ( "depth", ctypes.c_short ),
  719.     ( "attrib", ctypes.c_short ),
  720.     ( "rt1", ctypes.c_short ),
  721.     ( "rt2", ctypes.c_short ),
  722.     ( "dome", ctypes.c_void_p ),
  723.     ( "stereoflag", ctypes.c_short ),
  724.     ( "stereomode", ctypes.c_short ),
  725.     ( "xsch", ctypes.c_short ),
  726.     ( "ysch", ctypes.c_short ),
  727.     ( "eyeseparation", ctypes.c_float ),
  728.     ( "pad1", ctypes.c_float ),]
  729.  
  730. class TimeMarker(ctypes.Structure): _fields_=[
  731.     ( "next", ctypes.c_void_p ),
  732.     ( "prev", ctypes.c_void_p ),
  733.     ( "frame", ctypes.c_int ),
  734.     ( "name", ctypes.c_char ),
  735.     ( "flag", ctypes.c_int ),
  736.     ( "camera", ctypes.c_void_p ),]
  737.  
  738. class Paint(ctypes.Structure): _fields_=[
  739.     ( "brush", ctypes.c_void_p ),
  740.     ( "paint_cursor", ctypes.POINTER( ctypes.c_void_p ) ),
  741.     ( "paint_cursor_col", ctypes.c_char ),
  742.     ( "flags", ctypes.c_int ),]
  743.  
  744. class ImagePaintSettings(ctypes.Structure): _fields_=[
  745.     ( "paint", ctypes.c_void_p ),
  746.     ( "flag", ctypes.c_short ),
  747.     ( "pad", ctypes.c_short ),
  748.     ( "seam_bleed", ctypes.c_short ),
  749.     ( "normal_angle", ctypes.c_short ),
  750.     ( "screen_grab_size", ctypes.c_short ),
  751.     ( "pad1", ctypes.c_int ),
  752.     ( "paintcursor", ctypes.POINTER( ctypes.c_void_p ) ),]
  753.  
  754. class ParticleBrushData(ctypes.Structure): _fields_=[
  755.     ( "size", ctypes.c_short ),
  756.     ( "step", ctypes.c_short ),
  757.     ( "invert", ctypes.c_short ),
  758.     ( "count", ctypes.c_short ),
  759.     ( "flag", ctypes.c_int ),
  760.     ( "strength", ctypes.c_float ),]
  761.  
  762. class ParticleEditSettings(ctypes.Structure): _fields_=[
  763.     ( "flag", ctypes.c_short ),
  764.     ( "totrekey", ctypes.c_short ),
  765.     ( "totaddkey", ctypes.c_short ),
  766.     ( "brushtype", ctypes.c_short ),
  767.     ( "brush", ctypes.c_void_p ),
  768.     ( "paintcursor", ctypes.POINTER( ctypes.c_void_p ) ),
  769.     ( "emitterdist", ctypes.c_float ),
  770.     ( "rt", ctypes.c_float ),
  771.     ( "selectmode", ctypes.c_int ),
  772.     ( "edittype", ctypes.c_int ),
  773.     ( "draw_step", ctypes.c_int ),
  774.     ( "fade_frames", ctypes.c_int ),
  775.     ( "scene", ctypes.c_void_p ),
  776.     ( "object", ctypes.c_void_p ),]
  777.  
  778. class TransformOrientation(ctypes.Structure): _fields_=[
  779.     ( "next", ctypes.c_void_p ),
  780.     ( "prev", ctypes.c_void_p ),
  781.     ( "name", ctypes.c_char ),
  782.     ( "mat", ctypes.c_float ),]
  783.  
  784. class Sculpt(ctypes.Structure): _fields_=[
  785.     ( "paint", ctypes.c_void_p ),
  786.     ( "flags", ctypes.c_int ),
  787.     ( "radial_symm", ctypes.c_int ),
  788.     ( "last_x", ctypes.c_float ),
  789.     ( "last_y", ctypes.c_float ),
  790.     ( "last_angle", ctypes.c_float ),
  791.     ( "draw_anchored", ctypes.c_int ),
  792.     ( "anchored_size", ctypes.c_int ),
  793.     ( "anchored_location", ctypes.c_float ),
  794.     ( "anchored_initial_mouse", ctypes.c_float ),
  795.     ( "draw_pressure", ctypes.c_int ),
  796.     ( "pressure_value", ctypes.c_float ),
  797.     ( "special_rotation", ctypes.c_float ),
  798.     ( "pad", ctypes.c_int ),]
  799.  
  800. class VPaint(ctypes.Structure): _fields_=[
  801.     ( "paint", ctypes.c_void_p ),
  802.     ( "flag", ctypes.c_short ),
  803.     ( "pad", ctypes.c_short ),
  804.     ( "tot", ctypes.c_int ),
  805.     ( "vpaint_prev", ctypes.POINTER( ctypes.c_int ) ),
  806.     ( "wpaint_prev", ctypes.c_void_p ),
  807.     ( "paintcursor", ctypes.POINTER( ctypes.c_void_p ) ),]
  808.  
  809. class ToolSettings(ctypes.Structure): _fields_=[
  810.     ( "vpaint", ctypes.c_void_p ),
  811.     ( "wpaint", ctypes.c_void_p ),
  812.     ( "sculpt", ctypes.c_void_p ),
  813.     ( "vgroup_weight", ctypes.c_float ),
  814.     ( "cornertype", ctypes.c_short ),
  815.     ( "editbutflag", ctypes.c_short ),
  816.     ( "jointrilimit", ctypes.c_float ),
  817.     ( "degr", ctypes.c_float ),
  818.     ( "step", ctypes.c_short ),
  819.     ( "turn", ctypes.c_short ),
  820.     ( "extr_offs", ctypes.c_float ),
  821.     ( "doublimit", ctypes.c_float ),
  822.     ( "normalsize", ctypes.c_float ),
  823.     ( "automerge", ctypes.c_short ),
  824.     ( "selectmode", ctypes.c_short ),
  825.     ( "segments", ctypes.c_short ),
  826.     ( "rings", ctypes.c_short ),
  827.     ( "vertices", ctypes.c_short ),
  828.     ( "unwrapper", ctypes.c_short ),
  829.     ( "uvcalc_radius", ctypes.c_float ),
  830.     ( "uvcalc_cubesize", ctypes.c_float ),
  831.     ( "uvcalc_margin", ctypes.c_float ),
  832.     ( "uvcalc_mapdir", ctypes.c_short ),
  833.     ( "uvcalc_mapalign", ctypes.c_short ),
  834.     ( "uvcalc_flag", ctypes.c_short ),
  835.     ( "uv_flag", ctypes.c_short ),
  836.     ( "uv_selectmode", ctypes.c_short ),
  837.     ( "uv_pad", ctypes.c_short ),
  838.     ( "autoik_chainlen", ctypes.c_short ),
  839.     ( "imapaint", ctypes.c_void_p ),
  840.     ( "particle", ctypes.c_void_p ),
  841.     ( "proportional_size", ctypes.c_float ),
  842.     ( "select_thresh", ctypes.c_float ),
  843.     ( "clean_thresh", ctypes.c_float ),
  844.     ( "autokey_mode", ctypes.c_short ),
  845.     ( "autokey_flag", ctypes.c_short ),
  846.     ( "retopo_mode", ctypes.c_char ),
  847.     ( "retopo_paint_tool", ctypes.c_char ),
  848.     ( "line_div", ctypes.c_char ),
  849.     ( "ellipse_div", ctypes.c_char ),
  850.     ( "retopo_hotspot", ctypes.c_char ),
  851.     ( "multires_subdiv_type", ctypes.c_char ),
  852.     ( "skgen_resolution", ctypes.c_short ),
  853.     ( "skgen_threshold_internal", ctypes.c_float ),
  854.     ( "skgen_threshold_external", ctypes.c_float ),
  855.     ( "skgen_length_ratio", ctypes.c_float ),
  856.     ( "skgen_length_limit", ctypes.c_float ),
  857.     ( "skgen_angle_limit", ctypes.c_float ),
  858.     ( "skgen_correlation_limit", ctypes.c_float ),
  859.     ( "skgen_symmetry_limit", ctypes.c_float ),
  860.     ( "skgen_retarget_angle_weight", ctypes.c_float ),
  861.     ( "skgen_retarget_length_weight", ctypes.c_float ),
  862.     ( "skgen_retarget_distance_weight", ctypes.c_float ),
  863.     ( "skgen_options", ctypes.c_short ),
  864.     ( "skgen_postpro", ctypes.c_char ),
  865.     ( "skgen_postpro_passes", ctypes.c_char ),
  866.     ( "skgen_subdivisions", ctypes.c_char ),
  867.     ( "skgen_multi_level", ctypes.c_char ),
  868.     ( "skgen_template", ctypes.c_void_p ),
  869.     ( "bone_sketching", ctypes.c_char ),
  870.     ( "bone_sketching_convert", ctypes.c_char ),
  871.     ( "skgen_subdivision_number", ctypes.c_char ),
  872.     ( "skgen_retarget_options", ctypes.c_char ),
  873.     ( "skgen_retarget_roll", ctypes.c_char ),
  874.     ( "skgen_side_string", ctypes.c_char ),
  875.     ( "skgen_num_string", ctypes.c_char ),
  876.     ( "edge_mode", ctypes.c_char ),
  877.     ( "snap_mode", ctypes.c_short ),
  878.     ( "snap_flag", ctypes.c_short ),
  879.     ( "snap_target", ctypes.c_short ),
  880.     ( "proportional", ctypes.c_short ),
  881.     ( "prop_mode", ctypes.c_short ),
  882.     ( "proportional_objects", ctypes.c_char ),
  883.     ( "pad", ctypes.c_char ),
  884.     ( "auto_normalize", ctypes.c_int ),
  885.     ( "sculpt_paint_settings", ctypes.c_short ),
  886.     ( "pad1", ctypes.c_short ),
  887.     ( "sculpt_paint_unified_size", ctypes.c_int ),
  888.     ( "sculpt_paint_unified_unprojected_radius", ctypes.c_float ),
  889.     ( "sculpt_paint_unified_alpha", ctypes.c_float ),]
  890.  
  891. class bStats(ctypes.Structure): _fields_=[
  892.     ( "totobj", ctypes.c_int ),
  893.     ( "totlamp", ctypes.c_int ),
  894.     ( "totobjsel", ctypes.c_int ),
  895.     ( "totcurve", ctypes.c_int ),
  896.     ( "totmesh", ctypes.c_int ),
  897.     ( "totarmature", ctypes.c_int ),
  898.     ( "totvert", ctypes.c_int ),
  899.     ( "totface", ctypes.c_int ),]
  900.  
  901. class UnitSettings(ctypes.Structure): _fields_=[
  902.     ( "scale_length", ctypes.c_float ),
  903.     ( "system", ctypes.c_short ),
  904.     ( "flag", ctypes.c_short ),]
  905.  
  906. class PhysicsSettings(ctypes.Structure): _fields_=[
  907.     ( "gravity", ctypes.c_float ),
  908.     ( "flag", ctypes.c_int ),
  909.     ( "quick_cache_step", ctypes.c_int ),
  910.     ( "rt", ctypes.c_int ),]
  911.  
  912. class Scene(ctypes.Structure): _fields_=[
  913.     ( "id", ctypes.c_void_p ),
  914.     ( "adt", ctypes.c_void_p ),
  915.     ( "camera", ctypes.c_void_p ),
  916.     ( "world", ctypes.c_void_p ),
  917.     ( "set", ctypes.c_void_p ),
  918.     ( "ima", ctypes.c_void_p ),
  919.     ( "base", ctypes.c_void_p ),
  920.     ( "basact", ctypes.c_void_p ),
  921.     ( "obedit", ctypes.c_void_p ),
  922.     ( "cursor", ctypes.c_float ),
  923.     ( "twcent", ctypes.c_float ),
  924.     ( "twmin", ctypes.c_float ),
  925.     ( "twmax", ctypes.c_float ),
  926.     ( "lay", ctypes.c_int ),
  927.     ( "layact", ctypes.c_int ),
  928.     ( "pad1", ctypes.c_int ),
  929.     ( "flag", ctypes.c_short ),
  930.     ( "use_nodes", ctypes.c_short ),
  931.     ( "nodetree", ctypes.c_void_p ),
  932.     ( "ed", ctypes.c_void_p ),
  933.     ( "toolsettings", ctypes.c_void_p ),
  934.     ( "stats", ctypes.c_void_p ),
  935.     ( "r", ctypes.c_void_p ),
  936.     ( "audio", ctypes.c_void_p ),
  937.     ( "markers", ctypes.c_void_p ),
  938.     ( "transform_spaces", ctypes.c_void_p ),
  939.     ( "sound_scene", ctypes.POINTER( ctypes.c_void_p ) ),
  940.     ( "sound_scene_handle", ctypes.POINTER( ctypes.c_void_p ) ),
  941.     ( "sound_scrub_handle", ctypes.POINTER( ctypes.c_void_p ) ),
  942.     ( "fps_info", ctypes.POINTER( ctypes.c_void_p ) ),
  943.     ( "theDag", ctypes.c_void_p ),
  944.     ( "dagisvalid", ctypes.c_short ),
  945.     ( "dagflags", ctypes.c_short ),
  946.     ( "recalc", ctypes.c_short ),
  947.     ( "jumpframe", ctypes.c_short ),
  948.     ( "pad5", ctypes.c_int ),
  949.     ( "active_keyingset", ctypes.c_int ),
  950.     ( "keyingsets", ctypes.c_void_p ),
  951.     ( "framing", ctypes.c_void_p ),
  952.     ( "gm", ctypes.c_void_p ),
  953.     ( "unit", ctypes.c_void_p ),
  954.     ( "gpd", ctypes.c_void_p ),
  955.     ( "physics_settings", ctypes.c_void_p ),]
  956.  
  957. #PaintFlags                         <TypeDecl=None>
  958. SculptFlags = {
  959.     "SCULPT_SYMM_X" : 1,
  960.     "SCULPT_SYMM_Y" : 2,
  961.     "SCULPT_SYMM_Z" : 4,
  962.     "SCULPT_LOCK_X" : 8,
  963.     "SCULPT_LOCK_Y" : 16,
  964.     "SCULPT_LOCK_Z" : 32,
  965.     "SCULPT_SYMMETRY_FEATHER" : 64,
  966.     "SCULPT_USE_OPENMP" : 128,
  967. }
  968.  
  969. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  970. #btempdir                           <TypeDecl=char>
  971. addlisttolist = _c_external_function(       "addlisttolist", [
  972.     ("list1", ctypes.c_void_p, 1),
  973.     ("list2", ctypes.c_void_p, 1),],
  974.     ctypes.c_void_p )
  975.  
  976. BLI_insertlink = _c_external_function(      "BLI_insertlink", [
  977.     ("listbase", ctypes.c_void_p, 1),
  978.     ("vprevlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  979.     ("vnewlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  980.     ctypes.c_void_p )
  981.  
  982. BLI_findlink = _c_external_function(        "BLI_findlink", [
  983.     ("listbase", ctypes.c_void_p, 1),
  984.     ("number", ctypes.c_int, 1),],
  985.     ctypes.c_void_p )
  986.  
  987. BLI_findindex = _c_external_function(       "BLI_findindex", [
  988.     ("listbase", ctypes.c_void_p, 1),
  989.     ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  990.     ctypes.c_int )
  991.  
  992. BLI_findstring = _c_external_function(      "BLI_findstring", [
  993.     ("listbase", ctypes.c_void_p, 1),
  994.     ("id", ctypes.c_char_p, 1),
  995.     ("offset", ctypes.c_int, 1),],
  996.     ctypes.c_void_p )
  997.  
  998. BLI_findstring_ptr = _c_external_function(      "BLI_findstring_ptr", [
  999.     ("listbase", ctypes.c_void_p, 1),
  1000.     ("id", ctypes.c_char_p, 1),
  1001.     ("offset", ctypes.c_int, 1),],
  1002.     ctypes.c_void_p )
  1003.  
  1004. BLI_findstringindex = _c_external_function(     "BLI_findstringindex", [
  1005.     ("listbase", ctypes.c_void_p, 1),
  1006.     ("id", ctypes.c_char_p, 1),
  1007.     ("offset", ctypes.c_int, 1),],
  1008.     ctypes.c_int )
  1009.  
  1010. BLI_freelistN = _c_external_function(       "BLI_freelistN", [
  1011.     ("listbase", ctypes.c_void_p, 1),],
  1012.     ctypes.c_void_p )
  1013.  
  1014. BLI_addtail = _c_external_function(     "BLI_addtail", [
  1015.     ("listbase", ctypes.c_void_p, 1),
  1016.     ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1017.     ctypes.c_void_p )
  1018.  
  1019. BLI_remlink = _c_external_function(     "BLI_remlink", [
  1020.     ("listbase", ctypes.c_void_p, 1),
  1021.     ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1022.     ctypes.c_void_p )
  1023.  
  1024. BLI_remlink_safe = _c_external_function(        "BLI_remlink_safe", [
  1025.     ("listbase", ctypes.c_void_p, 1),
  1026.     ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1027.     ctypes.c_int )
  1028.  
  1029. BLI_addhead = _c_external_function(     "BLI_addhead", [
  1030.     ("listbase", ctypes.c_void_p, 1),
  1031.     ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1032.     ctypes.c_void_p )
  1033.  
  1034. BLI_insertlinkbefore = _c_external_function(        "BLI_insertlinkbefore", [
  1035.     ("listbase", ctypes.c_void_p, 1),
  1036.     ("vnextlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  1037.     ("vnewlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1038.     ctypes.c_void_p )
  1039.  
  1040. BLI_insertlinkafter = _c_external_function(     "BLI_insertlinkafter", [
  1041.     ("listbase", ctypes.c_void_p, 1),
  1042.     ("vprevlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  1043.     ("vnewlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1044.     ctypes.c_void_p )
  1045.  
  1046. BLI_sortlist = _c_external_function(        "BLI_sortlist", [
  1047.     ("listbase", ctypes.c_void_p, 1),
  1048.     ("cmp", ctypes.c_void_p, 1),],
  1049.     ctypes.c_void_p )
  1050.  
  1051. BLI_freelist = _c_external_function(        "BLI_freelist", [
  1052.     ("listbase", ctypes.c_void_p, 1),],
  1053.     ctypes.c_void_p )
  1054.  
  1055. BLI_countlist = _c_external_function(       "BLI_countlist", [
  1056.     ("listbase", ctypes.c_void_p, 1),],
  1057.     ctypes.c_int )
  1058.  
  1059. BLI_freelinkN = _c_external_function(       "BLI_freelinkN", [
  1060.     ("listbase", ctypes.c_void_p, 1),
  1061.     ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),],
  1062.     ctypes.c_void_p )
  1063.  
  1064. BLI_duplicatelist = _c_external_function(       "BLI_duplicatelist", [
  1065.     ("list1", ctypes.c_void_p, 1),
  1066.     ("list2", ctypes.c_void_p, 1),],
  1067.     ctypes.c_void_p )
  1068.  
  1069. BLI_genericNodeN = _c_external_function(        "BLI_genericNodeN", [],
  1070.     ctypes.c_void_p )
  1071.  
  1072. BLI_strdup = _c_external_function(      "BLI_strdup", [
  1073.     ("str", ctypes.c_char_p, 1),],
  1074.     ctypes.c_char )
  1075.  
  1076. BLI_strdupn = _c_external_function(     "BLI_strdupn", [
  1077.     ("str", ctypes.c_char_p, 1),
  1078.     ("len", ctypes.c_int, 1),],
  1079.     ctypes.c_char )
  1080.  
  1081. BLI_strdupcat = _c_external_function(       "BLI_strdupcat", [
  1082.     ("str1", ctypes.c_char_p, 1),
  1083.     ("str2", ctypes.c_char_p, 1),],
  1084.     ctypes.c_char )
  1085.  
  1086. BLI_strncpy = _c_external_function(     "BLI_strncpy", [
  1087.     ("dst", ctypes.c_char_p, 1),
  1088.     ("src", ctypes.c_char_p, 1),
  1089.     ("maxncpy", ctypes.c_int, 1),],
  1090.     ctypes.c_char )
  1091.  
  1092. BLI_getQuotedStr = _c_external_function(        "BLI_getQuotedStr", [
  1093.     ("str", ctypes.c_char_p, 1),
  1094.     ("prefix", ctypes.c_char_p, 1),],
  1095.     ctypes.c_char )
  1096.  
  1097. BLI_replacestr = _c_external_function(      "BLI_replacestr", [
  1098.     ("str", ctypes.c_char_p, 1),
  1099.     ("oldText", ctypes.c_char_p, 1),
  1100.     ("newText", ctypes.c_char_p, 1),],
  1101.     ctypes.c_char )
  1102.  
  1103. BLI_snprintf = _c_external_function(        "BLI_snprintf", [
  1104.     ("buffer", ctypes.c_char_p, 1),
  1105.     ("count", ctypes.c_size_t, 1),
  1106.     ("format", ctypes.c_char_p, 1),],
  1107.     ctypes.c_int )
  1108.  
  1109. BLI_sprintfN = _c_external_function(        "BLI_sprintfN", [
  1110.     ("format", ctypes.c_char_p, 1),],
  1111.     ctypes.c_char )
  1112.  
  1113. BLI_streq = _c_external_function(       "BLI_streq", [
  1114.     ("a", ctypes.c_char_p, 1),
  1115.     ("b", ctypes.c_char_p, 1),],
  1116.     ctypes.c_int )
  1117.  
  1118. BLI_strcaseeq = _c_external_function(       "BLI_strcaseeq", [
  1119.     ("a", ctypes.c_char_p, 1),
  1120.     ("b", ctypes.c_char_p, 1),],
  1121.     ctypes.c_int )
  1122.  
  1123. BLI_strcasestr = _c_external_function(      "BLI_strcasestr", [
  1124.     ("s", ctypes.c_char_p, 1),
  1125.     ("find", ctypes.c_char_p, 1),],
  1126.     ctypes.c_char )
  1127.  
  1128. BLI_strcasecmp = _c_external_function(      "BLI_strcasecmp", [
  1129.     ("s1", ctypes.c_char_p, 1),
  1130.     ("s2", ctypes.c_char_p, 1),],
  1131.     ctypes.c_int )
  1132.  
  1133. BLI_strncasecmp = _c_external_function(     "BLI_strncasecmp", [
  1134.     ("s1", ctypes.c_char_p, 1),
  1135.     ("s2", ctypes.c_char_p, 1),
  1136.     ("n", ctypes.c_int, 1),],
  1137.     ctypes.c_int )
  1138.  
  1139. BLI_natstrcmp = _c_external_function(       "BLI_natstrcmp", [
  1140.     ("s1", ctypes.c_char_p, 1),
  1141.     ("s2", ctypes.c_char_p, 1),],
  1142.     ctypes.c_int )
  1143.  
  1144. BLI_strnlen = _c_external_function(     "BLI_strnlen", [
  1145.     ("str", ctypes.c_char_p, 1),
  1146.     ("maxlen", ctypes.c_size_t, 1),],
  1147.     ctypes.c_size_t )
  1148.  
  1149. BLI_timestr = _c_external_function(     "BLI_timestr", [
  1150.     ("_time", ctypes.c_double, 1),
  1151.     ("str", ctypes.c_char_p, 1),],
  1152.     ctypes.c_void_p )
  1153.  
  1154. BLI_utf8_invalid_byte = _c_external_function(       "BLI_utf8_invalid_byte", [
  1155.     ("str", ctypes.c_char_p, 1),
  1156.     ("length", ctypes.c_int, 1),],
  1157.     ctypes.c_int )
  1158.  
  1159. BLI_utf8_invalid_strip = _c_external_function(      "BLI_utf8_invalid_strip", [
  1160.     ("str", ctypes.c_char_p, 1),
  1161.     ("length", ctypes.c_int, 1),],
  1162.     ctypes.c_int )
  1163.  
  1164. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  1165. #class direntry(ctypes.Structure): pass     # typedef or forward reference #
  1166. BLI_getDefaultDocumentFolder = _c_external_function(        "BLI_getDefaultDocumentFolder", [],
  1167.     ctypes.c_char )
  1168.  
  1169. BLI_get_folder = _c_external_function(      "BLI_get_folder", [
  1170.     ("folder_id", ctypes.c_int, 1),
  1171.     ("subfolder", ctypes.c_char_p, 1),],
  1172.     ctypes.c_char )
  1173.  
  1174. BLI_get_folder_create = _c_external_function(       "BLI_get_folder_create", [
  1175.     ("folder_id", ctypes.c_int, 1),
  1176.     ("subfolder", ctypes.c_char_p, 1),],
  1177.     ctypes.c_char )
  1178.  
  1179. BLI_setenv = _c_external_function(      "BLI_setenv", [
  1180.     ("env", ctypes.c_char_p, 1),
  1181.     ("val", ctypes.c_char_p, 1),],
  1182.     ctypes.c_void_p )
  1183.  
  1184. BLI_setenv_if_new = _c_external_function(       "BLI_setenv_if_new", [
  1185.     ("env", ctypes.c_char_p, 1),
  1186.     ("val", ctypes.c_char_p, 1),],
  1187.     ctypes.c_void_p )
  1188.  
  1189. BLI_make_file_string = _c_external_function(        "BLI_make_file_string", [
  1190.     ("relabase", ctypes.c_char_p, 1),
  1191.     ("string", ctypes.c_char_p, 1),
  1192.     ("dir", ctypes.c_char_p, 1),
  1193.     ("file", ctypes.c_char_p, 1),],
  1194.     ctypes.c_void_p )
  1195.  
  1196. BLI_make_exist = _c_external_function(      "BLI_make_exist", [
  1197.     ("dir", ctypes.c_char_p, 1),],
  1198.     ctypes.c_void_p )
  1199.  
  1200. BLI_make_existing_file = _c_external_function(      "BLI_make_existing_file", [
  1201.     ("name", ctypes.c_char_p, 1),],
  1202.     ctypes.c_void_p )
  1203.  
  1204. BLI_split_dirfile = _c_external_function(       "BLI_split_dirfile", [
  1205.     ("string", ctypes.c_char_p, 1),
  1206.     ("dir", ctypes.c_char_p, 1),
  1207.     ("file", ctypes.c_char_p, 1),],
  1208.     ctypes.c_void_p )
  1209.  
  1210. BLI_join_dirfile = _c_external_function(        "BLI_join_dirfile", [
  1211.     ("string", ctypes.c_char_p, 1),
  1212.     ("dir", ctypes.c_char_p, 1),
  1213.     ("file", ctypes.c_char_p, 1),],
  1214.     ctypes.c_void_p )
  1215.  
  1216. BLI_path_basename = _c_external_function(       "BLI_path_basename", [
  1217.     ("path", ctypes.c_char_p, 1),],
  1218.     ctypes.c_char )
  1219.  
  1220. BKE_rebase_path = _c_external_function(     "BKE_rebase_path", [
  1221.     ("abs", ctypes.c_char_p, 1),
  1222.     ("abs_size", ctypes.c_int, 1),
  1223.     ("rel", ctypes.c_char_p, 1),
  1224.     ("rel_size", ctypes.c_int, 1),
  1225.     ("base_dir", ctypes.c_char_p, 1),
  1226.     ("src_dir", ctypes.c_char_p, 1),
  1227.     ("dest_dir", ctypes.c_char_p, 1),],
  1228.     ctypes.c_int )
  1229.  
  1230. BLI_getlastdir = _c_external_function(      "BLI_getlastdir", [
  1231.     ("dir", ctypes.c_char_p, 1),
  1232.     ("last", ctypes.c_char_p, 1),
  1233.     ("maxlen", ctypes.c_int, 1),],
  1234.     ctypes.c_void_p )
  1235.  
  1236. BLI_testextensie = _c_external_function(        "BLI_testextensie", [
  1237.     ("str", ctypes.c_char_p, 1),
  1238.     ("ext", ctypes.c_char_p, 1),],
  1239.     ctypes.c_int )
  1240.  
  1241. BLI_testextensie_array = _c_external_function(      "BLI_testextensie_array", [
  1242.     ("str", ctypes.c_char_p, 1),
  1243.     ("ext_array", ctypes.POINTER( ctypes.c_char_p ), 1),],
  1244.     ctypes.c_int )
  1245.  
  1246. BLI_replace_extension = _c_external_function(       "BLI_replace_extension", [
  1247.     ("path", ctypes.c_char_p, 1),
  1248.     ("maxlen", ctypes.c_int, 1),
  1249.     ("ext", ctypes.c_char_p, 1),],
  1250.     ctypes.c_int )
  1251.  
  1252. BLI_uniquename = _c_external_function(      "BLI_uniquename", [
  1253.     ("list", ctypes.c_void_p, 1),
  1254.     ("vlink", ctypes.POINTER( ctypes.c_void_p ), 1),
  1255.     ("defname", ctypes.c_char, 1),
  1256.     ("delim", ctypes.c_char, 1),
  1257.     ("name_offs", ctypes.c_short, 1),
  1258.     ("len", ctypes.c_short, 1),],
  1259.     ctypes.c_void_p )
  1260.  
  1261. BLI_newname = _c_external_function(     "BLI_newname", [
  1262.     ("name", ctypes.c_char_p, 1),
  1263.     ("add", ctypes.c_int, 1),],
  1264.     ctypes.c_void_p )
  1265.  
  1266. BLI_stringdec = _c_external_function(       "BLI_stringdec", [
  1267.     ("string", ctypes.c_char_p, 1),
  1268.     ("head", ctypes.c_char_p, 1),
  1269.     ("start", ctypes.c_char_p, 1),
  1270.     ("numlen", ctypes.POINTER( ctypes.c_short ), 1),],
  1271.     ctypes.c_int )
  1272.  
  1273. BLI_stringenc = _c_external_function(       "BLI_stringenc", [
  1274.     ("string", ctypes.c_char_p, 1),
  1275.     ("head", ctypes.c_char_p, 1),
  1276.     ("tail", ctypes.c_char_p, 1),
  1277.     ("numlen", ctypes.c_short, 1),
  1278.     ("pic", ctypes.c_int, 1),],
  1279.     ctypes.c_void_p )
  1280.  
  1281. BLI_splitdirstring = _c_external_function(      "BLI_splitdirstring", [
  1282.     ("di", ctypes.c_char_p, 1),
  1283.     ("fi", ctypes.c_char_p, 1),],
  1284.     ctypes.c_void_p )
  1285.  
  1286. BLI_clean = _c_external_function(       "BLI_clean", [
  1287.     ("path", ctypes.c_char_p, 1),],
  1288.     ctypes.c_void_p )
  1289.  
  1290. BLI_cleanup_file = _c_external_function(        "BLI_cleanup_file", [
  1291.     ("relabase", ctypes.c_char_p, 1),
  1292.     ("dir", ctypes.c_char_p, 1),],
  1293.     ctypes.c_void_p )
  1294.  
  1295. BLI_cleanup_dir = _c_external_function(     "BLI_cleanup_dir", [
  1296.     ("relabase", ctypes.c_char_p, 1),
  1297.     ("dir", ctypes.c_char_p, 1),],
  1298.     ctypes.c_void_p )
  1299.  
  1300. BLI_parent_dir = _c_external_function(      "BLI_parent_dir", [
  1301.     ("path", ctypes.c_char_p, 1),],
  1302.     ctypes.c_int )
  1303.  
  1304. BLI_has_parent = _c_external_function(      "BLI_has_parent", [
  1305.     ("path", ctypes.c_char_p, 1),],
  1306.     ctypes.c_int )
  1307.  
  1308. BLI_path_abs = _c_external_function(        "BLI_path_abs", [
  1309.     ("path", ctypes.c_char_p, 1),
  1310.     ("basepath", ctypes.c_char_p, 1),],
  1311.     ctypes.c_int )
  1312.  
  1313. BLI_path_frame = _c_external_function(      "BLI_path_frame", [
  1314.     ("path", ctypes.c_char_p, 1),
  1315.     ("frame", ctypes.c_int, 1),
  1316.     ("digits", ctypes.c_int, 1),],
  1317.     ctypes.c_int )
  1318.  
  1319. BLI_path_frame_range = _c_external_function(        "BLI_path_frame_range", [
  1320.     ("path", ctypes.c_char_p, 1),
  1321.     ("sta", ctypes.c_int, 1),
  1322.     ("end", ctypes.c_int, 1),
  1323.     ("digits", ctypes.c_int, 1),],
  1324.     ctypes.c_int )
  1325.  
  1326. BLI_path_cwd = _c_external_function(        "BLI_path_cwd", [
  1327.     ("path", ctypes.c_char_p, 1),],
  1328.     ctypes.c_int )
  1329.  
  1330. BLI_path_rel = _c_external_function(        "BLI_path_rel", [
  1331.     ("file", ctypes.c_char_p, 1),
  1332.     ("relfile", ctypes.c_char_p, 1),],
  1333.     ctypes.c_void_p )
  1334.  
  1335. BLI_char_switch = _c_external_function(     "BLI_char_switch", [
  1336.     ("string", ctypes.c_char_p, 1),
  1337.     ("from", ctypes.c_char, 1),
  1338.     ("to", ctypes.c_char, 1),],
  1339.     ctypes.c_void_p )
  1340.  
  1341. BLI_where_am_i = _c_external_function(      "BLI_where_am_i", [
  1342.     ("fullname", ctypes.c_char_p, 1),
  1343.     ("name", ctypes.c_char_p, 1),],
  1344.     ctypes.c_void_p )
  1345.  
  1346. get_install_dir = _c_external_function(     "get_install_dir", [],
  1347.     ctypes.c_char )
  1348.  
  1349. BLI_where_is_temp = _c_external_function(       "BLI_where_is_temp", [
  1350.     ("fullname", ctypes.c_char_p, 1),
  1351.     ("usertemp", ctypes.c_int, 1),],
  1352.     ctypes.c_void_p )
  1353.  
  1354. #class direntry(ctypes.Structure): pass     # typedef or forward reference #
  1355. BLI_adddirstrings = _c_external_function(       "BLI_adddirstrings", [],
  1356.     ctypes.c_void_p )
  1357.  
  1358. BLI_builddir = _c_external_function(        "BLI_builddir", [
  1359.     ("dirname", ctypes.c_char_p, 1),
  1360.     ("relname", ctypes.c_char_p, 1),],
  1361.     ctypes.c_void_p )
  1362.  
  1363. BLI_compare = _c_external_function(     "BLI_compare", [
  1364.     ("entry1", ctypes.c_void_p, 1),
  1365.     ("entry2", ctypes.c_void_p, 1),],
  1366.     ctypes.c_int )
  1367.  
  1368. BLI_filesize = _c_external_function(        "BLI_filesize", [
  1369.     ("file", ctypes.c_int, 1),],
  1370.     ctypes.c_size_t )
  1371.  
  1372. BLI_filepathsize = _c_external_function(        "BLI_filepathsize", [
  1373.     ("path", ctypes.c_char_p, 1),],
  1374.     ctypes.c_size_t )
  1375.  
  1376. BLI_diskfree = _c_external_function(        "BLI_diskfree", [
  1377.     ("dir", ctypes.c_char_p, 1),],
  1378.     ctypes.c_double )
  1379.  
  1380. BLI_getwdN = _c_external_function(      "BLI_getwdN", [
  1381.     ("dir", ctypes.c_char_p, 1),],
  1382.     ctypes.c_char )
  1383.  
  1384. BLI_getdir = _c_external_function(      "BLI_getdir", [
  1385.     ("dirname", ctypes.c_char_p, 1),
  1386.     ("filelist", ctypes.c_void_p, 1),],
  1387.     ctypes.c_int )
  1388.  
  1389. BLI_exist = _c_external_function(       "BLI_exist", [
  1390.     ("name", ctypes.c_char_p, 1),],
  1391.     ctypes.c_int )
  1392.  
  1393. BLI_is_dir = _c_external_function(      "BLI_is_dir", [
  1394.     ("file", ctypes.c_char_p, 1),],
  1395.     ctypes.c_int )
  1396.  
  1397. BLI_read_file_as_lines = _c_external_function(      "BLI_read_file_as_lines", [
  1398.     ("name", ctypes.c_char_p, 1),],
  1399.     ctypes.c_void_p )
  1400.  
  1401. BLI_free_file_lines = _c_external_function(     "BLI_free_file_lines", [
  1402.     ("lines", ctypes.c_void_p, 1),],
  1403.     ctypes.c_void_p )
  1404.  
  1405. BLI_file_older = _c_external_function(      "BLI_file_older", [
  1406.     ("file1", ctypes.c_char_p, 1),
  1407.     ("file2", ctypes.c_char_p, 1),],
  1408.     ctypes.c_int )
  1409.  
  1410. BLI_recurdir_fileops = _c_external_function(        "BLI_recurdir_fileops", [
  1411.     ("dirname", ctypes.c_char_p, 1),],
  1412.     ctypes.c_void_p )
  1413.  
  1414. BLI_link = _c_external_function(        "BLI_link", [
  1415.     ("file", ctypes.c_char_p, 1),
  1416.     ("to", ctypes.c_char_p, 1),],
  1417.     ctypes.c_int )
  1418.  
  1419. BLI_is_writable = _c_external_function(     "BLI_is_writable", [
  1420.     ("filename", ctypes.c_char_p, 1),],
  1421.     ctypes.c_int )
  1422.  
  1423. BLI_exists = _c_external_function(      "BLI_exists", [
  1424.     ("file", ctypes.c_char_p, 1),],
  1425.     ctypes.c_int )
  1426.  
  1427. BLI_copy_fileops = _c_external_function(        "BLI_copy_fileops", [
  1428.     ("file", ctypes.c_char_p, 1),
  1429.     ("to", ctypes.c_char_p, 1),],
  1430.     ctypes.c_int )
  1431.  
  1432. BLI_rename = _c_external_function(      "BLI_rename", [
  1433.     ("from", ctypes.c_char_p, 1),
  1434.     ("to", ctypes.c_char_p, 1),],
  1435.     ctypes.c_int )
  1436.  
  1437. BLI_gzip = _c_external_function(        "BLI_gzip", [
  1438.     ("from", ctypes.c_char_p, 1),
  1439.     ("to", ctypes.c_char_p, 1),],
  1440.     ctypes.c_int )
  1441.  
  1442. BLI_delete = _c_external_function(      "BLI_delete", [
  1443.     ("file", ctypes.c_char_p, 1),
  1444.     ("dir", ctypes.c_int, 1),
  1445.     ("recursive", ctypes.c_int, 1),],
  1446.     ctypes.c_int )
  1447.  
  1448. BLI_move = _c_external_function(        "BLI_move", [
  1449.     ("file", ctypes.c_char_p, 1),
  1450.     ("to", ctypes.c_char_p, 1),],
  1451.     ctypes.c_int )
  1452.  
  1453. BLI_touch = _c_external_function(       "BLI_touch", [
  1454.     ("file", ctypes.c_char_p, 1),],
  1455.     ctypes.c_int )
  1456.  
  1457. BLI_last_slash = _c_external_function(      "BLI_last_slash", [
  1458.     ("string", ctypes.c_char_p, 1),],
  1459.     ctypes.c_char )
  1460.  
  1461. BLI_add_slash = _c_external_function(       "BLI_add_slash", [
  1462.     ("string", ctypes.c_char_p, 1),],
  1463.     ctypes.c_int )
  1464.  
  1465. BLI_del_slash = _c_external_function(       "BLI_del_slash", [
  1466.     ("string", ctypes.c_char_p, 1),],
  1467.     ctypes.c_void_p )
  1468.  
  1469. first_slash = _c_external_function(     "first_slash", [
  1470.     ("string", ctypes.c_char_p, 1),],
  1471.     ctypes.c_char )
  1472.  
  1473. BLI_setCmdCallBack = _c_external_function(      "BLI_setCmdCallBack", [
  1474.     ("f", ctypes.c_void_p, 1),],
  1475.     ctypes.c_void_p )
  1476.  
  1477. #class rctf(ctypes.Structure): pass     # typedef or forward reference #
  1478. #class rcti(ctypes.Structure): pass     # typedef or forward reference #
  1479. BLI_rcti_is_empty = _c_external_function(       "BLI_rcti_is_empty", [
  1480.     ("rect", ctypes.c_void_p, 1),],
  1481.     ctypes.c_int )
  1482.  
  1483. BLI_rctf_is_empty = _c_external_function(       "BLI_rctf_is_empty", [
  1484.     ("rect", ctypes.c_void_p, 1),],
  1485.     ctypes.c_int )
  1486.  
  1487. BLI_init_rctf = _c_external_function(       "BLI_init_rctf", [
  1488.     ("rect", ctypes.c_void_p, 1),
  1489.     ("xmin", ctypes.c_float, 1),
  1490.     ("xmax", ctypes.c_float, 1),
  1491.     ("ymin", ctypes.c_float, 1),
  1492.     ("ymax", ctypes.c_float, 1),],
  1493.     ctypes.c_void_p )
  1494.  
  1495. BLI_init_rcti = _c_external_function(       "BLI_init_rcti", [
  1496.     ("rect", ctypes.c_void_p, 1),
  1497.     ("xmin", ctypes.c_int, 1),
  1498.     ("xmax", ctypes.c_int, 1),
  1499.     ("ymin", ctypes.c_int, 1),
  1500.     ("ymax", ctypes.c_int, 1),],
  1501.     ctypes.c_void_p )
  1502.  
  1503. BLI_translate_rctf = _c_external_function(      "BLI_translate_rctf", [
  1504.     ("rect", ctypes.c_void_p, 1),
  1505.     ("x", ctypes.c_float, 1),
  1506.     ("y", ctypes.c_float, 1),],
  1507.     ctypes.c_void_p )
  1508.  
  1509. BLI_translate_rcti = _c_external_function(      "BLI_translate_rcti", [
  1510.     ("rect", ctypes.c_void_p, 1),
  1511.     ("x", ctypes.c_int, 1),
  1512.     ("y", ctypes.c_int, 1),],
  1513.     ctypes.c_void_p )
  1514.  
  1515. BLI_resize_rcti = _c_external_function(     "BLI_resize_rcti", [
  1516.     ("rect", ctypes.c_void_p, 1),
  1517.     ("x", ctypes.c_int, 1),
  1518.     ("y", ctypes.c_int, 1),],
  1519.     ctypes.c_void_p )
  1520.  
  1521. BLI_resize_rctf = _c_external_function(     "BLI_resize_rctf", [
  1522.     ("rect", ctypes.c_void_p, 1),
  1523.     ("x", ctypes.c_float, 1),
  1524.     ("y", ctypes.c_float, 1),],
  1525.     ctypes.c_void_p )
  1526.  
  1527. BLI_in_rcti = _c_external_function(     "BLI_in_rcti", [
  1528.     ("rect", ctypes.c_void_p, 1),
  1529.     ("x", ctypes.c_int, 1),
  1530.     ("y", ctypes.c_int, 1),],
  1531.     ctypes.c_int )
  1532.  
  1533. BLI_in_rctf = _c_external_function(     "BLI_in_rctf", [
  1534.     ("rect", ctypes.c_void_p, 1),
  1535.     ("x", ctypes.c_float, 1),
  1536.     ("y", ctypes.c_float, 1),],
  1537.     ctypes.c_int )
  1538.  
  1539. BLI_isect_rctf = _c_external_function(      "BLI_isect_rctf", [
  1540.     ("src1", ctypes.c_void_p, 1),
  1541.     ("src2", ctypes.c_void_p, 1),
  1542.     ("dest", ctypes.c_void_p, 1),],
  1543.     ctypes.c_int )
  1544.  
  1545. BLI_isect_rcti = _c_external_function(      "BLI_isect_rcti", [
  1546.     ("src1", ctypes.c_void_p, 1),
  1547.     ("src2", ctypes.c_void_p, 1),
  1548.     ("dest", ctypes.c_void_p, 1),],
  1549.     ctypes.c_int )
  1550.  
  1551. BLI_union_rctf = _c_external_function(      "BLI_union_rctf", [
  1552.     ("rcta", ctypes.c_void_p, 1),
  1553.     ("rctb", ctypes.c_void_p, 1),],
  1554.     ctypes.c_void_p )
  1555.  
  1556. BLI_union_rcti = _c_external_function(      "BLI_union_rcti", [
  1557.     ("rcti1", ctypes.c_void_p, 1),
  1558.     ("rcti2", ctypes.c_void_p, 1),],
  1559.     ctypes.c_void_p )
  1560.  
  1561. BLI_copy_rcti_rctf = _c_external_function(      "BLI_copy_rcti_rctf", [
  1562.     ("tar", ctypes.c_void_p, 1),
  1563.     ("src", ctypes.c_void_p, 1),],
  1564.     ctypes.c_void_p )
  1565.  
  1566. print_rctf = _c_external_function(      "print_rctf", [
  1567.     ("str", ctypes.c_char_p, 1),
  1568.     ("rect", ctypes.c_void_p, 1),],
  1569.     ctypes.c_void_p )
  1570.  
  1571. print_rcti = _c_external_function(      "print_rcti", [
  1572.     ("str", ctypes.c_char_p, 1),
  1573.     ("rect", ctypes.c_void_p, 1),],
  1574.     ctypes.c_void_p )
  1575.  
  1576. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  1577. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  1578. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  1579. #class EditVert(ctypes.Structure): pass     # typedef or forward reference #
  1580. BLI_addfillvert = _c_external_function(     "BLI_addfillvert", [
  1581.     ("vec", ctypes.POINTER( ctypes.c_float ), 1),],
  1582.     ctypes.c_void_p )
  1583.  
  1584. BLI_addfilledge = _c_external_function(     "BLI_addfilledge", [
  1585.     ("v1", ctypes.c_void_p, 1),
  1586.     ("v2", ctypes.c_void_p, 1),],
  1587.     ctypes.c_void_p )
  1588.  
  1589. BLI_edgefill = _c_external_function(        "BLI_edgefill", [
  1590.     ("mode", ctypes.c_int, 1),
  1591.     ("mat_nr", ctypes.c_int, 1),],
  1592.     ctypes.c_int )
  1593.  
  1594. BLI_end_edgefill = _c_external_function(        "BLI_end_edgefill", [],
  1595.     ctypes.c_void_p )
  1596.  
  1597. BLI_setErrorCallBack = _c_external_function(        "BLI_setErrorCallBack", [
  1598.     ("f", ctypes.c_void_p, 1),],
  1599.     ctypes.c_void_p )
  1600.  
  1601. BLI_setInterruptCallBack = _c_external_function(        "BLI_setInterruptCallBack", [
  1602.     ("f", ctypes.c_void_p, 1),],
  1603.     ctypes.c_void_p )
  1604.  
  1605. BLI_hnoise = _c_external_function(      "BLI_hnoise", [
  1606.     ("noisesize", ctypes.c_float, 1),
  1607.     ("x", ctypes.c_float, 1),
  1608.     ("y", ctypes.c_float, 1),
  1609.     ("z", ctypes.c_float, 1),],
  1610.     ctypes.c_float )
  1611.  
  1612. BLI_hnoisep = _c_external_function(     "BLI_hnoisep", [
  1613.     ("noisesize", ctypes.c_float, 1),
  1614.     ("x", ctypes.c_float, 1),
  1615.     ("y", ctypes.c_float, 1),
  1616.     ("z", ctypes.c_float, 1),],
  1617.     ctypes.c_float )
  1618.  
  1619. BLI_turbulence = _c_external_function(      "BLI_turbulence", [
  1620.     ("noisesize", ctypes.c_float, 1),
  1621.     ("x", ctypes.c_float, 1),
  1622.     ("y", ctypes.c_float, 1),
  1623.     ("z", ctypes.c_float, 1),
  1624.     ("nr", ctypes.c_int, 1),],
  1625.     ctypes.c_float )
  1626.  
  1627. BLI_turbulence1 = _c_external_function(     "BLI_turbulence1", [
  1628.     ("noisesize", ctypes.c_float, 1),
  1629.     ("x", ctypes.c_float, 1),
  1630.     ("y", ctypes.c_float, 1),
  1631.     ("z", ctypes.c_float, 1),
  1632.     ("nr", ctypes.c_int, 1),],
  1633.     ctypes.c_float )
  1634.  
  1635. BLI_gNoise = _c_external_function(      "BLI_gNoise", [
  1636.     ("noisesize", ctypes.c_float, 1),
  1637.     ("x", ctypes.c_float, 1),
  1638.     ("y", ctypes.c_float, 1),
  1639.     ("z", ctypes.c_float, 1),
  1640.     ("hard", ctypes.c_int, 1),
  1641.     ("noisebasis", ctypes.c_int, 1),],
  1642.     ctypes.c_float )
  1643.  
  1644. BLI_gTurbulence = _c_external_function(     "BLI_gTurbulence", [
  1645.     ("noisesize", ctypes.c_float, 1),
  1646.     ("x", ctypes.c_float, 1),
  1647.     ("y", ctypes.c_float, 1),
  1648.     ("z", ctypes.c_float, 1),
  1649.     ("oct", ctypes.c_int, 1),
  1650.     ("hard", ctypes.c_int, 1),
  1651.     ("noisebasis", ctypes.c_int, 1),],
  1652.     ctypes.c_float )
  1653.  
  1654. mg_fBm = _c_external_function(      "mg_fBm", [
  1655.     ("x", ctypes.c_float, 1),
  1656.     ("y", ctypes.c_float, 1),
  1657.     ("z", ctypes.c_float, 1),
  1658.     ("H", ctypes.c_float, 1),
  1659.     ("lacunarity", ctypes.c_float, 1),
  1660.     ("octaves", ctypes.c_float, 1),
  1661.     ("noisebasis", ctypes.c_int, 1),],
  1662.     ctypes.c_float )
  1663.  
  1664. mg_MultiFractal = _c_external_function(     "mg_MultiFractal", [
  1665.     ("x", ctypes.c_float, 1),
  1666.     ("y", ctypes.c_float, 1),
  1667.     ("z", ctypes.c_float, 1),
  1668.     ("H", ctypes.c_float, 1),
  1669.     ("lacunarity", ctypes.c_float, 1),
  1670.     ("octaves", ctypes.c_float, 1),
  1671.     ("noisebasis", ctypes.c_int, 1),],
  1672.     ctypes.c_float )
  1673.  
  1674. mg_VLNoise = _c_external_function(      "mg_VLNoise", [
  1675.     ("x", ctypes.c_float, 1),
  1676.     ("y", ctypes.c_float, 1),
  1677.     ("z", ctypes.c_float, 1),
  1678.     ("distortion", ctypes.c_float, 1),
  1679.     ("nbas1", ctypes.c_int, 1),
  1680.     ("nbas2", ctypes.c_int, 1),],
  1681.     ctypes.c_float )
  1682.  
  1683. mg_HeteroTerrain = _c_external_function(        "mg_HeteroTerrain", [
  1684.     ("x", ctypes.c_float, 1),
  1685.     ("y", ctypes.c_float, 1),
  1686.     ("z", ctypes.c_float, 1),
  1687.     ("H", ctypes.c_float, 1),
  1688.     ("lacunarity", ctypes.c_float, 1),
  1689.     ("octaves", ctypes.c_float, 1),
  1690.     ("offset", ctypes.c_float, 1),
  1691.     ("noisebasis", ctypes.c_int, 1),],
  1692.     ctypes.c_float )
  1693.  
  1694. mg_HybridMultiFractal = _c_external_function(       "mg_HybridMultiFractal", [
  1695.     ("x", ctypes.c_float, 1),
  1696.     ("y", ctypes.c_float, 1),
  1697.     ("z", ctypes.c_float, 1),
  1698.     ("H", ctypes.c_float, 1),
  1699.     ("lacunarity", ctypes.c_float, 1),
  1700.     ("octaves", ctypes.c_float, 1),
  1701.     ("offset", ctypes.c_float, 1),
  1702.     ("gain", ctypes.c_float, 1),
  1703.     ("noisebasis", ctypes.c_int, 1),],
  1704.     ctypes.c_float )
  1705.  
  1706. mg_RidgedMultiFractal = _c_external_function(       "mg_RidgedMultiFractal", [
  1707.     ("x", ctypes.c_float, 1),
  1708.     ("y", ctypes.c_float, 1),
  1709.     ("z", ctypes.c_float, 1),
  1710.     ("H", ctypes.c_float, 1),
  1711.     ("lacunarity", ctypes.c_float, 1),
  1712.     ("octaves", ctypes.c_float, 1),
  1713.     ("offset", ctypes.c_float, 1),
  1714.     ("gain", ctypes.c_float, 1),
  1715.     ("noisebasis", ctypes.c_int, 1),],
  1716.     ctypes.c_float )
  1717.  
  1718. voronoi = _c_external_function(     "voronoi", [
  1719.     ("x", ctypes.c_float, 1),
  1720.     ("y", ctypes.c_float, 1),
  1721.     ("z", ctypes.c_float, 1),
  1722.     ("da", ctypes.POINTER( ctypes.c_float ), 1),
  1723.     ("pa", ctypes.POINTER( ctypes.c_float ), 1),
  1724.     ("me", ctypes.c_float, 1),
  1725.     ("dtype", ctypes.c_int, 1),],
  1726.     ctypes.c_void_p )
  1727.  
  1728. cellNoise = _c_external_function(       "cellNoise", [
  1729.     ("x", ctypes.c_float, 1),
  1730.     ("y", ctypes.c_float, 1),
  1731.     ("z", ctypes.c_float, 1),],
  1732.     ctypes.c_float )
  1733.  
  1734. cellNoiseV = _c_external_function(      "cellNoiseV", [
  1735.     ("x", ctypes.c_float, 1),
  1736.     ("y", ctypes.c_float, 1),
  1737.     ("z", ctypes.c_float, 1),
  1738.     ("ca", ctypes.POINTER( ctypes.c_float ), 1),],
  1739.     ctypes.c_void_p )
  1740.  
  1741. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  1742. #class MemFile(ctypes.Structure): pass      # typedef or forward reference #
  1743. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  1744. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  1745. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  1746. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  1747. BKE_read_file = _c_external_function(       "BKE_read_file", [
  1748.     ("C", ctypes.c_void_p, 1),
  1749.     ("dir", ctypes.c_char_p, 1),
  1750.     ("type_r", ctypes.POINTER( ctypes.c_void_p ), 1),
  1751.     ("reports", ctypes.c_void_p, 1),],
  1752.     ctypes.c_int )
  1753.  
  1754. BKE_read_file_from_memory = _c_external_function(       "BKE_read_file_from_memory", [
  1755.     ("C", ctypes.c_void_p, 1),
  1756.     ("filebuf", ctypes.c_char_p, 1),
  1757.     ("filelength", ctypes.c_int, 1),
  1758.     ("type_r", ctypes.POINTER( ctypes.c_void_p ), 1),
  1759.     ("reports", ctypes.c_void_p, 1),],
  1760.     ctypes.c_int )
  1761.  
  1762. BKE_read_file_from_memfile = _c_external_function(      "BKE_read_file_from_memfile", [
  1763.     ("C", ctypes.c_void_p, 1),
  1764.     ("memfile", ctypes.c_void_p, 1),
  1765.     ("reports", ctypes.c_void_p, 1),],
  1766.     ctypes.c_int )
  1767.  
  1768. free_blender = _c_external_function(        "free_blender", [],
  1769.     ctypes.c_void_p )
  1770.  
  1771. initglobals = _c_external_function(     "initglobals", [],
  1772.     ctypes.c_void_p )
  1773.  
  1774. BKE_userdef_free = _c_external_function(        "BKE_userdef_free", [],
  1775.     ctypes.c_void_p )
  1776.  
  1777. set_blender_test_break_cb = _c_external_function(       "set_blender_test_break_cb", [
  1778.     ("func", ctypes.c_void_p, 1),],
  1779.     ctypes.c_void_p )
  1780.  
  1781. blender_test_break = _c_external_function(      "blender_test_break", [],
  1782.     ctypes.c_int )
  1783.  
  1784. BKE_write_undo = _c_external_function(      "BKE_write_undo", [
  1785.     ("C", ctypes.c_void_p, 1),
  1786.     ("name", ctypes.c_char_p, 1),],
  1787.     ctypes.c_void_p )
  1788.  
  1789. BKE_undo_step = _c_external_function(       "BKE_undo_step", [
  1790.     ("C", ctypes.c_void_p, 1),
  1791.     ("step", ctypes.c_int, 1),],
  1792.     ctypes.c_void_p )
  1793.  
  1794. BKE_undo_name = _c_external_function(       "BKE_undo_name", [
  1795.     ("C", ctypes.c_void_p, 1),
  1796.     ("name", ctypes.c_char_p, 1),],
  1797.     ctypes.c_void_p )
  1798.  
  1799. BKE_reset_undo = _c_external_function(      "BKE_reset_undo", [],
  1800.     ctypes.c_void_p )
  1801.  
  1802. BKE_undo_menu_string = _c_external_function(        "BKE_undo_menu_string", [],
  1803.     ctypes.c_char )
  1804.  
  1805. BKE_undo_number = _c_external_function(     "BKE_undo_number", [
  1806.     ("C", ctypes.c_void_p, 1),
  1807.     ("nr", ctypes.c_int, 1),],
  1808.     ctypes.c_void_p )
  1809.  
  1810. BKE_undo_save_quit = _c_external_function(      "BKE_undo_save_quit", [],
  1811.     ctypes.c_void_p )
  1812.  
  1813. BKE_undo_get_main = _c_external_function(       "BKE_undo_get_main", [
  1814.     ("scene", ctypes.c_void_p, 1),],
  1815.     ctypes.c_void_p )
  1816.  
  1817. #class ParameterList(ctypes.Structure): pass        # typedef or forward reference #
  1818. #class FunctionRNA(ctypes.Structure): pass      # typedef or forward reference #
  1819. #class PropertyRNA(ctypes.Structure): pass      # typedef or forward reference #
  1820. #class StructRNA(ctypes.Structure): pass        # typedef or forward reference #
  1821. #class BlenderRNA(ctypes.Structure): pass       # typedef or forward reference #
  1822. #class IDProperty(ctypes.Structure): pass       # typedef or forward reference #
  1823. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  1824. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  1825. class PointerRNA(ctypes.Structure): _fields_=[
  1826.     ( "id", ctypes.c_void_p ),
  1827.     ( "type", ctypes.c_void_p ),
  1828.     ( "data", ctypes.POINTER( ctypes.c_void_p ) ),]
  1829.  
  1830. class PropertyPointerRNA(ctypes.Structure): _fields_=[
  1831.     ( "ptr", ctypes.c_void_p ),
  1832.     ( "prop", ctypes.c_void_p ),]
  1833.  
  1834. PropertyType = {
  1835.     "PROP_BOOLEAN" : 0,
  1836.     "PROP_INT" : 1,
  1837.     "PROP_FLOAT" : 2,
  1838.     "PROP_STRING" : 3,
  1839.     "PROP_ENUM" : 4,
  1840.     "PROP_POINTER" : 5,
  1841.     "PROP_COLLECTION" : 6,
  1842. }
  1843.  
  1844. PropertyUnit = {
  1845.     "PROP_UNIT_NONE" : 0,
  1846.     "PROP_UNIT_LENGTH" : 4194304,
  1847.     "PROP_UNIT_AREA" : 8388608,
  1848.     "PROP_UNIT_VOLUME" : 12582912,
  1849.     "PROP_UNIT_MASS" : 16777216,
  1850.     "PROP_UNIT_ROTATION" : 20971520,
  1851.     "PROP_UNIT_TIME" : 25165824,
  1852.     "PROP_UNIT_VELOCITY" : 29360128,
  1853.     "PROP_UNIT_ACCELERATION" : 33554432,
  1854. }
  1855.  
  1856. PropertySubType = {
  1857.     "PROP_NONE" : 0,
  1858.     "PROP_FILEPATH" : 1,
  1859.     "PROP_DIRPATH" : 2,
  1860.     "PROP_FILENAME" : 3,
  1861.     "PROP_UNSIGNED" : 19,
  1862.     "PROP_PERCENTAGE" : 20,
  1863.     "PROP_FACTOR" : 21,
  1864.     "PROP_ANGLE" : 20971542,
  1865.     "PROP_TIME" : 25165847,
  1866.     "PROP_DISTANCE" : 4194328,
  1867.     "PROP_COLOR" : 32,
  1868.     "PROP_TRANSLATION" : 4194337,
  1869.     "PROP_DIRECTION" : 34,
  1870.     "PROP_VELOCITY" : 29360163,
  1871.     "PROP_ACCELERATION" : 33554468,
  1872.     "PROP_MATRIX" : 37,
  1873.     "PROP_EULER" : 20971558,
  1874.     "PROP_QUATERNION" : 39,
  1875.     "PROP_AXISANGLE" : 40,
  1876.     "PROP_XYZ" : 41,
  1877.     "PROP_XYZ_LENGTH" : 4194345,
  1878.     "PROP_COLOR_GAMMA" : 48,
  1879.     "PROP_LAYER" : 64,
  1880.     "PROP_LAYER_MEMBER" : 65,
  1881. }
  1882.  
  1883. PropertyFlag = {
  1884.     "PROP_EDITABLE" : 1,
  1885.     "PROP_LIB_EXCEPTION" : 4194304,
  1886.     "PROP_ANIMATABLE" : 2,
  1887.     "PROP_ICONS_CONSECUTIVE" : 262144,
  1888.     "PROP_HIDDEN" : 33554432,
  1889.     "PROP_REQUIRED" : 4,
  1890.     "PROP_OUTPUT" : 8,
  1891.     "PROP_RNAPTR" : 131072,
  1892.     "PROP_REGISTER" : 16,
  1893.     "PROP_REGISTER_OPTIONAL" : 48,
  1894.     "PROP_ID_REFCOUNT" : 64,
  1895.     "PROP_ID_SELF_CHECK" : 4294967296,
  1896.     "PROP_NEVER_NULL" : 16777216,
  1897.     "PROP_ENUM_FLAG" : 8589934592,
  1898.     "PROP_CONTEXT_UPDATE" : 17179869184,
  1899.     "PROP_THICK_WRAP" : 34359738368,
  1900.     "PROP_BUILTIN" : 128,
  1901.     "PROP_EXPORT" : 256,
  1902.     "PROP_RUNTIME" : 512,
  1903.     "PROP_IDPROPERTY" : 65536,
  1904.     "PROP_RAW_ACCESS" : 524288,
  1905.     "PROP_RAW_ARRAY" : 1048576,
  1906.     "PROP_FREE_POINTERS" : 2097152,
  1907.     "PROP_DYNAMIC" : 8388608,
  1908.     "PROP_ENUM_NO_CONTEXT" : 16777216,
  1909. }
  1910.  
  1911. class CollectionPropertyIterator(ctypes.Structure): _fields_=[
  1912.     ( "parent", ctypes.c_void_p ),
  1913.     ( "builtin_parent", ctypes.c_void_p ),
  1914.     ( "prop", ctypes.c_void_p ),
  1915.     ( "internal", ctypes.POINTER( ctypes.c_void_p ) ),
  1916.     ( "idprop", ctypes.c_int ),
  1917.     ( "level", ctypes.c_int ),
  1918.     ( "valid", ctypes.c_int ),
  1919.     ( "ptr", ctypes.c_void_p ),]
  1920.  
  1921. class CollectionPointerLink(ctypes.Structure): _fields_=[
  1922.     ( "next", ctypes.c_void_p ),
  1923.     ( "prev", ctypes.c_void_p ),
  1924.     ( "ptr", ctypes.c_void_p ),]
  1925.  
  1926. RawPropertyType = {
  1927.     "PROP_RAW_UNSET" : 0,
  1928.     "PROP_RAW_INT" : 1,
  1929.     "PROP_RAW_SHORT" : 2,
  1930.     "PROP_RAW_CHAR" : 3,
  1931.     "PROP_RAW_DOUBLE" : 4,
  1932.     "PROP_RAW_FLOAT" : 5,
  1933. }
  1934.  
  1935. class RawArray(ctypes.Structure): _fields_=[
  1936.     ( "array", ctypes.POINTER( ctypes.c_void_p ) ),
  1937.     ( "type", ctypes.c_void_p ),
  1938.     ( "len", ctypes.c_int ),
  1939.     ( "stride", ctypes.c_int ),]
  1940.  
  1941. class EnumPropertyItem(ctypes.Structure): _fields_=[
  1942.     ( "value", ctypes.c_int ),
  1943.     ( "identifier", ctypes.c_char_p ),
  1944.     ( "icon", ctypes.c_int ),
  1945.     ( "name", ctypes.c_char_p ),
  1946.     ( "description", ctypes.c_char_p ),]
  1947.  
  1948. EnumPropertyItemFunc = _c_external_function(        "EnumPropertyItemFunc", [
  1949.     ("C", ctypes.c_void_p, 1),
  1950.     ("ptr", ctypes.c_void_p, 1),
  1951.     ("free", ctypes.POINTER( ctypes.c_int ), 1),],
  1952.     ctypes.c_void_p )
  1953.  
  1954. #class PropertyRNA(ctypes.Structure): pass      # typedef or forward reference #
  1955. class ParameterList(ctypes.Structure): _fields_=[
  1956.     ( "data", ctypes.POINTER( ctypes.c_void_p ) ),
  1957.     ( "alloc_size", ctypes.c_int ),
  1958.     ( "arg_count", ctypes.c_int ),
  1959.     ( "ret_count", ctypes.c_int ),
  1960.     ( "func", ctypes.c_void_p ),]
  1961.  
  1962. class ParameterIterator(ctypes.Structure): _fields_=[
  1963.     ( "parms", ctypes.c_void_p ),
  1964.     ( "funcptr", ctypes.c_void_p ),
  1965.     ( "data", ctypes.POINTER( ctypes.c_void_p ) ),
  1966.     ( "size", ctypes.c_int ),
  1967.     ( "offset", ctypes.c_int ),
  1968.     ( "parm", ctypes.c_void_p ),
  1969.     ( "valid", ctypes.c_int ),]
  1970.  
  1971. class ParameterDynAlloc(ctypes.Structure): _fields_=[
  1972.     ( "array_tot", ctypes.c_void_p ),
  1973.     ( "array", ctypes.POINTER( ctypes.c_void_p ) ),]
  1974.  
  1975. FunctionFlag = {
  1976.     "FUNC_NO_SELF" : 1,
  1977.     "FUNC_USE_CONTEXT" : 2,
  1978.     "FUNC_USE_REPORTS" : 4,
  1979.     "FUNC_USE_SELF_ID" : 8264,
  1980.     "FUNC_REGISTER" : 8,
  1981.     "FUNC_REGISTER_OPTIONAL" : 30,
  1982.     "FUNC_BUILTIN" : 296,
  1983.     "FUNC_EXPORT" : 598,
  1984.     "FUNC_RUNTIME" : 1298,
  1985.     "FUNC_FREE_POINTERS" : 4132,
  1986. }
  1987.  
  1988. CallFunc = _c_external_function(        "CallFunc", [
  1989.     ("C", ctypes.c_void_p, 1),
  1990.     ("reports", ctypes.c_void_p, 1),
  1991.     ("ptr", ctypes.c_void_p, 1),
  1992.     ("parms", ctypes.c_void_p, 1),],
  1993.     ctypes.c_void_p )
  1994.  
  1995. #class FunctionRNA(ctypes.Structure): pass      # typedef or forward reference #
  1996. StructFlag = {
  1997.     "STRUCT_ID" : 1,
  1998.     "STRUCT_ID_REFCOUNT" : 2,
  1999.     "STRUCT_RUNTIME" : 4,
  2000.     "STRUCT_GENERATED" : 8,
  2001.     "STRUCT_FREE_POINTERS" : 22,
  2002.     "STRUCT_NO_IDPROPERTIES" : 50,
  2003. }
  2004.  
  2005. StructValidateFunc = _c_external_function(      "StructValidateFunc", [
  2006.     ("ptr", ctypes.c_void_p, 1),
  2007.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),
  2008.     ("have_function", ctypes.POINTER( ctypes.c_int ), 1),],
  2009.     ctypes.c_int )
  2010.  
  2011. StructCallbackFunc = _c_external_function(      "StructCallbackFunc", [
  2012.     ("ptr", ctypes.c_void_p, 1),
  2013.     ("func", ctypes.c_void_p, 1),
  2014.     ("list", ctypes.c_void_p, 1),],
  2015.     ctypes.c_int )
  2016.  
  2017. StructFreeFunc = _c_external_function(      "StructFreeFunc", [],
  2018.     ctypes.c_void_p )
  2019.  
  2020. StructRegisterFunc = _c_external_function(      "StructRegisterFunc", [
  2021.     ("C", ctypes.c_void_p, 1),
  2022.     ("reports", ctypes.c_void_p, 1),
  2023.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),
  2024.     ("identifier", ctypes.c_char_p, 1),
  2025.     ("validate", ctypes.c_void_p, 1),
  2026.     ("call", ctypes.c_void_p, 1),
  2027.     ("free", ctypes.c_void_p, 1),],
  2028.     ctypes.c_void_p )
  2029.  
  2030. StructUnregisterFunc = _c_external_function(        "StructUnregisterFunc", [
  2031.     ("C", ctypes.c_void_p, 1),
  2032.     ("type", ctypes.c_void_p, 1),],
  2033.     ctypes.c_void_p )
  2034.  
  2035. #class StructRNA(ctypes.Structure): pass        # typedef or forward reference #
  2036. #class BlenderRNA(ctypes.Structure): pass       # typedef or forward reference #
  2037. class ExtensionRNA(ctypes.Structure): _fields_=[
  2038.     ( "data", ctypes.POINTER( ctypes.c_void_p ) ),
  2039.     ( "srna", ctypes.c_void_p ),
  2040.     ( "call", ctypes.c_void_p ),
  2041.     ( "free", ctypes.c_void_p ),]
  2042.  
  2043. #class ARegion(ctypes.Structure): pass      # typedef or forward reference #
  2044. #class bScreen(ctypes.Structure): pass      # typedef or forward reference #
  2045. #class EditMesh(ctypes.Structure): pass     # typedef or forward reference #
  2046. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  2047. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  2048. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  2049. #class PointerRNA(ctypes.Structure): pass       # typedef or forward reference #
  2050. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  2051. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  2052. #class ScrArea(ctypes.Structure): pass      # typedef or forward reference #
  2053. #class SpaceLink(ctypes.Structure): pass        # typedef or forward reference #
  2054. #class View3D(ctypes.Structure): pass       # typedef or forward reference #
  2055. #class RegionView3D(ctypes.Structure): pass     # typedef or forward reference #
  2056. #class StructRNA(ctypes.Structure): pass        # typedef or forward reference #
  2057. #class ToolSettings(ctypes.Structure): pass     # typedef or forward reference #
  2058. #class Image(ctypes.Structure): pass        # typedef or forward reference #
  2059. #class Text(ctypes.Structure): pass     # typedef or forward reference #
  2060. #class ImBuf(ctypes.Structure): pass        # typedef or forward reference #
  2061. #class EditBone(ctypes.Structure): pass     # typedef or forward reference #
  2062. #class bPoseChannel(ctypes.Structure): pass     # typedef or forward reference #
  2063. #class wmWindow(ctypes.Structure): pass     # typedef or forward reference #
  2064. #class wmWindowManager(ctypes.Structure): pass      # typedef or forward reference #
  2065. #class SpaceText(ctypes.Structure): pass        # typedef or forward reference #
  2066. #class SpaceImage(ctypes.Structure): pass       # typedef or forward reference #
  2067. #class ID(ctypes.Structure): pass       # typedef or forward reference #
  2068. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  2069. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  2070. #class bContextDataResult(ctypes.Structure): pass       # typedef or forward reference #
  2071. #class bContextDataResult(ctypes.Structure): pass       # typedef or forward reference #
  2072. bContextDataCallback = _c_external_function(        "bContextDataCallback", [
  2073.     ("C", ctypes.c_void_p, 1),
  2074.     ("member", ctypes.c_char_p, 1),
  2075.     ("result", ctypes.c_void_p, 1),],
  2076.     ctypes.c_int )
  2077.  
  2078. class bContextStoreEntry(ctypes.Structure): _fields_=[
  2079.     ( "next", ctypes.c_void_p ),
  2080.     ( "prev", ctypes.c_void_p ),
  2081.     ( "name", ctypes.c_char ),
  2082.     ( "ptr", ctypes.c_void_p ),]
  2083.  
  2084. class bContextStore(ctypes.Structure): _fields_=[
  2085.     ( "next", ctypes.c_void_p ),
  2086.     ( "prev", ctypes.c_void_p ),
  2087.     ( "entries", ctypes.c_void_p ),
  2088.     ( "used", ctypes.c_int ),]
  2089.  
  2090. #None                           <ast=Decl>
  2091. CTX_create = _c_external_function(      "CTX_create", [],
  2092.     ctypes.c_void_p )
  2093.  
  2094. CTX_free = _c_external_function(        "CTX_free", [
  2095.     ("C", ctypes.c_void_p, 1),],
  2096.     ctypes.c_void_p )
  2097.  
  2098. CTX_copy = _c_external_function(        "CTX_copy", [
  2099.     ("C", ctypes.c_void_p, 1),],
  2100.     ctypes.c_void_p )
  2101.  
  2102. CTX_store_add = _c_external_function(       "CTX_store_add", [
  2103.     ("contexts", ctypes.c_void_p, 1),
  2104.     ("name", ctypes.c_char_p, 1),
  2105.     ("ptr", ctypes.c_void_p, 1),],
  2106.     ctypes.c_void_p )
  2107.  
  2108. CTX_store_set = _c_external_function(       "CTX_store_set", [
  2109.     ("C", ctypes.c_void_p, 1),
  2110.     ("store", ctypes.c_void_p, 1),],
  2111.     ctypes.c_void_p )
  2112.  
  2113. CTX_store_copy = _c_external_function(      "CTX_store_copy", [
  2114.     ("store", ctypes.c_void_p, 1),],
  2115.     ctypes.c_void_p )
  2116.  
  2117. CTX_store_free = _c_external_function(      "CTX_store_free", [
  2118.     ("store", ctypes.c_void_p, 1),],
  2119.     ctypes.c_void_p )
  2120.  
  2121. CTX_store_free_list = _c_external_function(     "CTX_store_free_list", [
  2122.     ("contexts", ctypes.c_void_p, 1),],
  2123.     ctypes.c_void_p )
  2124.  
  2125. CTX_py_init_get = _c_external_function(     "CTX_py_init_get", [
  2126.     ("C", ctypes.c_void_p, 1),],
  2127.     ctypes.c_int )
  2128.  
  2129. CTX_py_init_set = _c_external_function(     "CTX_py_init_set", [
  2130.     ("C", ctypes.c_void_p, 1),
  2131.     ("value", ctypes.c_int, 1),],
  2132.     ctypes.c_void_p )
  2133.  
  2134. CTX_py_dict_get = _c_external_function(     "CTX_py_dict_get", [
  2135.     ("C", ctypes.c_void_p, 1),],
  2136.     ctypes.c_void_p )
  2137.  
  2138. CTX_py_dict_set = _c_external_function(     "CTX_py_dict_set", [
  2139.     ("C", ctypes.c_void_p, 1),
  2140.     ("value", ctypes.POINTER( ctypes.c_void_p ), 1),],
  2141.     ctypes.c_void_p )
  2142.  
  2143. CTX_wm_manager = _c_external_function(      "CTX_wm_manager", [
  2144.     ("C", ctypes.c_void_p, 1),],
  2145.     ctypes.c_void_p )
  2146.  
  2147. CTX_wm_window = _c_external_function(       "CTX_wm_window", [
  2148.     ("C", ctypes.c_void_p, 1),],
  2149.     ctypes.c_void_p )
  2150.  
  2151. CTX_wm_screen = _c_external_function(       "CTX_wm_screen", [
  2152.     ("C", ctypes.c_void_p, 1),],
  2153.     ctypes.c_void_p )
  2154.  
  2155. CTX_wm_area = _c_external_function(     "CTX_wm_area", [
  2156.     ("C", ctypes.c_void_p, 1),],
  2157.     ctypes.c_void_p )
  2158.  
  2159. CTX_wm_space_data = _c_external_function(       "CTX_wm_space_data", [
  2160.     ("C", ctypes.c_void_p, 1),],
  2161.     ctypes.c_void_p )
  2162.  
  2163. CTX_wm_region = _c_external_function(       "CTX_wm_region", [
  2164.     ("C", ctypes.c_void_p, 1),],
  2165.     ctypes.c_void_p )
  2166.  
  2167. CTX_wm_region_data = _c_external_function(      "CTX_wm_region_data", [
  2168.     ("C", ctypes.c_void_p, 1),],
  2169.     ctypes.c_void_p )
  2170.  
  2171. CTX_wm_menu = _c_external_function(     "CTX_wm_menu", [
  2172.     ("C", ctypes.c_void_p, 1),],
  2173.     ctypes.c_void_p )
  2174.  
  2175. CTX_wm_reports = _c_external_function(      "CTX_wm_reports", [
  2176.     ("C", ctypes.c_void_p, 1),],
  2177.     ctypes.c_void_p )
  2178.  
  2179. CTX_wm_view3d = _c_external_function(       "CTX_wm_view3d", [
  2180.     ("C", ctypes.c_void_p, 1),],
  2181.     ctypes.c_void_p )
  2182.  
  2183. CTX_wm_region_view3d = _c_external_function(        "CTX_wm_region_view3d", [
  2184.     ("C", ctypes.c_void_p, 1),],
  2185.     ctypes.c_void_p )
  2186.  
  2187. CTX_wm_space_text = _c_external_function(       "CTX_wm_space_text", [
  2188.     ("C", ctypes.c_void_p, 1),],
  2189.     ctypes.c_void_p )
  2190.  
  2191. CTX_wm_space_image = _c_external_function(      "CTX_wm_space_image", [
  2192.     ("C", ctypes.c_void_p, 1),],
  2193.     ctypes.c_void_p )
  2194.  
  2195. CTX_wm_space_console = _c_external_function(        "CTX_wm_space_console", [
  2196.     ("C", ctypes.c_void_p, 1),],
  2197.     ctypes.c_void_p )
  2198.  
  2199. CTX_wm_space_buts = _c_external_function(       "CTX_wm_space_buts", [
  2200.     ("C", ctypes.c_void_p, 1),],
  2201.     ctypes.c_void_p )
  2202.  
  2203. CTX_wm_space_file = _c_external_function(       "CTX_wm_space_file", [
  2204.     ("C", ctypes.c_void_p, 1),],
  2205.     ctypes.c_void_p )
  2206.  
  2207. CTX_wm_space_seq = _c_external_function(        "CTX_wm_space_seq", [
  2208.     ("C", ctypes.c_void_p, 1),],
  2209.     ctypes.c_void_p )
  2210.  
  2211. CTX_wm_space_outliner = _c_external_function(       "CTX_wm_space_outliner", [
  2212.     ("C", ctypes.c_void_p, 1),],
  2213.     ctypes.c_void_p )
  2214.  
  2215. CTX_wm_space_nla = _c_external_function(        "CTX_wm_space_nla", [
  2216.     ("C", ctypes.c_void_p, 1),],
  2217.     ctypes.c_void_p )
  2218.  
  2219. CTX_wm_space_time = _c_external_function(       "CTX_wm_space_time", [
  2220.     ("C", ctypes.c_void_p, 1),],
  2221.     ctypes.c_void_p )
  2222.  
  2223. CTX_wm_space_node = _c_external_function(       "CTX_wm_space_node", [
  2224.     ("C", ctypes.c_void_p, 1),],
  2225.     ctypes.c_void_p )
  2226.  
  2227. CTX_wm_space_logic = _c_external_function(      "CTX_wm_space_logic", [
  2228.     ("C", ctypes.c_void_p, 1),],
  2229.     ctypes.c_void_p )
  2230.  
  2231. CTX_wm_space_graph = _c_external_function(      "CTX_wm_space_graph", [
  2232.     ("C", ctypes.c_void_p, 1),],
  2233.     ctypes.c_void_p )
  2234.  
  2235. CTX_wm_space_action = _c_external_function(     "CTX_wm_space_action", [
  2236.     ("C", ctypes.c_void_p, 1),],
  2237.     ctypes.c_void_p )
  2238.  
  2239. CTX_wm_space_info = _c_external_function(       "CTX_wm_space_info", [
  2240.     ("C", ctypes.c_void_p, 1),],
  2241.     ctypes.c_void_p )
  2242.  
  2243. CTX_wm_space_userpref = _c_external_function(       "CTX_wm_space_userpref", [
  2244.     ("C", ctypes.c_void_p, 1),],
  2245.     ctypes.c_void_p )
  2246.  
  2247. CTX_wm_manager_set = _c_external_function(      "CTX_wm_manager_set", [
  2248.     ("C", ctypes.c_void_p, 1),
  2249.     ("wm", ctypes.c_void_p, 1),],
  2250.     ctypes.c_void_p )
  2251.  
  2252. CTX_wm_window_set = _c_external_function(       "CTX_wm_window_set", [
  2253.     ("C", ctypes.c_void_p, 1),
  2254.     ("win", ctypes.c_void_p, 1),],
  2255.     ctypes.c_void_p )
  2256.  
  2257. CTX_wm_screen_set = _c_external_function(       "CTX_wm_screen_set", [
  2258.     ("C", ctypes.c_void_p, 1),
  2259.     ("screen", ctypes.c_void_p, 1),],
  2260.     ctypes.c_void_p )
  2261.  
  2262. CTX_wm_area_set = _c_external_function(     "CTX_wm_area_set", [
  2263.     ("C", ctypes.c_void_p, 1),
  2264.     ("sa", ctypes.c_void_p, 1),],
  2265.     ctypes.c_void_p )
  2266.  
  2267. CTX_wm_region_set = _c_external_function(       "CTX_wm_region_set", [
  2268.     ("C", ctypes.c_void_p, 1),
  2269.     ("region", ctypes.c_void_p, 1),],
  2270.     ctypes.c_void_p )
  2271.  
  2272. CTX_wm_menu_set = _c_external_function(     "CTX_wm_menu_set", [
  2273.     ("C", ctypes.c_void_p, 1),
  2274.     ("menu", ctypes.c_void_p, 1),],
  2275.     ctypes.c_void_p )
  2276.  
  2277. #None                           <ast=Decl>
  2278. CTX_data_pointer_get = _c_external_function(        "CTX_data_pointer_get", [
  2279.     ("C", ctypes.c_void_p, 1),
  2280.     ("member", ctypes.c_char_p, 1),],
  2281.     ctypes.c_void_p )
  2282.  
  2283. CTX_data_pointer_get_type = _c_external_function(       "CTX_data_pointer_get_type", [
  2284.     ("C", ctypes.c_void_p, 1),
  2285.     ("member", ctypes.c_char_p, 1),
  2286.     ("type", ctypes.c_void_p, 1),],
  2287.     ctypes.c_void_p )
  2288.  
  2289. CTX_data_collection_get = _c_external_function(     "CTX_data_collection_get", [
  2290.     ("C", ctypes.c_void_p, 1),
  2291.     ("member", ctypes.c_char_p, 1),],
  2292.     ctypes.c_void_p )
  2293.  
  2294. CTX_data_dir_get = _c_external_function(        "CTX_data_dir_get", [
  2295.     ("C", ctypes.c_void_p, 1),],
  2296.     ctypes.c_void_p )
  2297.  
  2298. CTX_data_get = _c_external_function(        "CTX_data_get", [
  2299.     ("C", ctypes.c_void_p, 1),
  2300.     ("member", ctypes.c_char_p, 1),
  2301.     ("r_ptr", ctypes.c_void_p, 1),
  2302.     ("r_lb", ctypes.c_void_p, 1),
  2303.     ("r_type", ctypes.POINTER( ctypes.c_short ), 1),],
  2304.     ctypes.c_int )
  2305.  
  2306. CTX_data_id_pointer_set = _c_external_function(     "CTX_data_id_pointer_set", [
  2307.     ("result", ctypes.c_void_p, 1),
  2308.     ("id", ctypes.c_void_p, 1),],
  2309.     ctypes.c_void_p )
  2310.  
  2311. CTX_data_pointer_set = _c_external_function(        "CTX_data_pointer_set", [
  2312.     ("result", ctypes.c_void_p, 1),
  2313.     ("id", ctypes.c_void_p, 1),
  2314.     ("type", ctypes.c_void_p, 1),
  2315.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  2316.     ctypes.c_void_p )
  2317.  
  2318. CTX_data_id_list_add = _c_external_function(        "CTX_data_id_list_add", [
  2319.     ("result", ctypes.c_void_p, 1),
  2320.     ("id", ctypes.c_void_p, 1),],
  2321.     ctypes.c_void_p )
  2322.  
  2323. CTX_data_list_add = _c_external_function(       "CTX_data_list_add", [
  2324.     ("result", ctypes.c_void_p, 1),
  2325.     ("id", ctypes.c_void_p, 1),
  2326.     ("type", ctypes.c_void_p, 1),
  2327.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  2328.     ctypes.c_void_p )
  2329.  
  2330. CTX_data_dir_set = _c_external_function(        "CTX_data_dir_set", [
  2331.     ("result", ctypes.c_void_p, 1),
  2332.     ("member", ctypes.POINTER( ctypes.c_char_p ), 1),],
  2333.     ctypes.c_void_p )
  2334.  
  2335. CTX_data_type_set = _c_external_function(       "CTX_data_type_set", [
  2336.     ("result", ctypes.c_void_p, 1),
  2337.     ("type", ctypes.c_short, 1),],
  2338.     ctypes.c_void_p )
  2339.  
  2340. CTX_data_type_get = _c_external_function(       "CTX_data_type_get", [
  2341.     ("result", ctypes.c_void_p, 1),],
  2342.     ctypes.c_short )
  2343.  
  2344. CTX_data_equals = _c_external_function(     "CTX_data_equals", [
  2345.     ("member", ctypes.c_char_p, 1),
  2346.     ("str", ctypes.c_char_p, 1),],
  2347.     ctypes.c_int )
  2348.  
  2349. CTX_data_dir = _c_external_function(        "CTX_data_dir", [
  2350.     ("member", ctypes.c_char_p, 1),],
  2351.     ctypes.c_int )
  2352.  
  2353. ctx_data_list_count = _c_external_function(     "ctx_data_list_count", [
  2354.     ("C", ctypes.c_void_p, 1),
  2355.     ("func", ctypes.c_void_p, 1),],
  2356.     ctypes.c_int )
  2357.  
  2358. CTX_data_main = _c_external_function(       "CTX_data_main", [
  2359.     ("C", ctypes.c_void_p, 1),],
  2360.     ctypes.c_void_p )
  2361.  
  2362. CTX_data_scene = _c_external_function(      "CTX_data_scene", [
  2363.     ("C", ctypes.c_void_p, 1),],
  2364.     ctypes.c_void_p )
  2365.  
  2366. CTX_data_tool_settings = _c_external_function(      "CTX_data_tool_settings", [
  2367.     ("C", ctypes.c_void_p, 1),],
  2368.     ctypes.c_void_p )
  2369.  
  2370. CTX_data_mode_string = _c_external_function(        "CTX_data_mode_string", [
  2371.     ("C", ctypes.c_void_p, 1),],
  2372.     ctypes.c_char )
  2373.  
  2374. CTX_data_mode_enum = _c_external_function(      "CTX_data_mode_enum", [
  2375.     ("C", ctypes.c_void_p, 1),],
  2376.     ctypes.c_int )
  2377.  
  2378. CTX_data_main_set = _c_external_function(       "CTX_data_main_set", [
  2379.     ("C", ctypes.c_void_p, 1),
  2380.     ("bmain", ctypes.c_void_p, 1),],
  2381.     ctypes.c_void_p )
  2382.  
  2383. CTX_data_scene_set = _c_external_function(      "CTX_data_scene_set", [
  2384.     ("C", ctypes.c_void_p, 1),
  2385.     ("bmain", ctypes.c_void_p, 1),],
  2386.     ctypes.c_void_p )
  2387.  
  2388. CTX_data_selected_editable_objects = _c_external_function(      "CTX_data_selected_editable_objects", [
  2389.     ("C", ctypes.c_void_p, 1),
  2390.     ("list", ctypes.c_void_p, 1),],
  2391.     ctypes.c_int )
  2392.  
  2393. CTX_data_selected_editable_bases = _c_external_function(        "CTX_data_selected_editable_bases", [
  2394.     ("C", ctypes.c_void_p, 1),
  2395.     ("list", ctypes.c_void_p, 1),],
  2396.     ctypes.c_int )
  2397.  
  2398. CTX_data_selected_objects = _c_external_function(       "CTX_data_selected_objects", [
  2399.     ("C", ctypes.c_void_p, 1),
  2400.     ("list", ctypes.c_void_p, 1),],
  2401.     ctypes.c_int )
  2402.  
  2403. CTX_data_selected_bases = _c_external_function(     "CTX_data_selected_bases", [
  2404.     ("C", ctypes.c_void_p, 1),
  2405.     ("list", ctypes.c_void_p, 1),],
  2406.     ctypes.c_int )
  2407.  
  2408. CTX_data_visible_objects = _c_external_function(        "CTX_data_visible_objects", [
  2409.     ("C", ctypes.c_void_p, 1),
  2410.     ("list", ctypes.c_void_p, 1),],
  2411.     ctypes.c_int )
  2412.  
  2413. CTX_data_visible_bases = _c_external_function(      "CTX_data_visible_bases", [
  2414.     ("C", ctypes.c_void_p, 1),
  2415.     ("list", ctypes.c_void_p, 1),],
  2416.     ctypes.c_int )
  2417.  
  2418. CTX_data_selectable_objects = _c_external_function(     "CTX_data_selectable_objects", [
  2419.     ("C", ctypes.c_void_p, 1),
  2420.     ("list", ctypes.c_void_p, 1),],
  2421.     ctypes.c_int )
  2422.  
  2423. CTX_data_selectable_bases = _c_external_function(       "CTX_data_selectable_bases", [
  2424.     ("C", ctypes.c_void_p, 1),
  2425.     ("list", ctypes.c_void_p, 1),],
  2426.     ctypes.c_int )
  2427.  
  2428. CTX_data_active_object = _c_external_function(      "CTX_data_active_object", [
  2429.     ("C", ctypes.c_void_p, 1),],
  2430.     ctypes.c_void_p )
  2431.  
  2432. CTX_data_active_base = _c_external_function(        "CTX_data_active_base", [
  2433.     ("C", ctypes.c_void_p, 1),],
  2434.     ctypes.c_void_p )
  2435.  
  2436. CTX_data_edit_object = _c_external_function(        "CTX_data_edit_object", [
  2437.     ("C", ctypes.c_void_p, 1),],
  2438.     ctypes.c_void_p )
  2439.  
  2440. CTX_data_edit_image = _c_external_function(     "CTX_data_edit_image", [
  2441.     ("C", ctypes.c_void_p, 1),],
  2442.     ctypes.c_void_p )
  2443.  
  2444. CTX_data_edit_text = _c_external_function(      "CTX_data_edit_text", [
  2445.     ("C", ctypes.c_void_p, 1),],
  2446.     ctypes.c_void_p )
  2447.  
  2448. CTX_data_selected_nodes = _c_external_function(     "CTX_data_selected_nodes", [
  2449.     ("C", ctypes.c_void_p, 1),
  2450.     ("list", ctypes.c_void_p, 1),],
  2451.     ctypes.c_int )
  2452.  
  2453. CTX_data_active_bone = _c_external_function(        "CTX_data_active_bone", [
  2454.     ("C", ctypes.c_void_p, 1),],
  2455.     ctypes.c_void_p )
  2456.  
  2457. CTX_data_selected_bones = _c_external_function(     "CTX_data_selected_bones", [
  2458.     ("C", ctypes.c_void_p, 1),
  2459.     ("list", ctypes.c_void_p, 1),],
  2460.     ctypes.c_int )
  2461.  
  2462. CTX_data_selected_editable_bones = _c_external_function(        "CTX_data_selected_editable_bones", [
  2463.     ("C", ctypes.c_void_p, 1),
  2464.     ("list", ctypes.c_void_p, 1),],
  2465.     ctypes.c_int )
  2466.  
  2467. CTX_data_visible_bones = _c_external_function(      "CTX_data_visible_bones", [
  2468.     ("C", ctypes.c_void_p, 1),
  2469.     ("list", ctypes.c_void_p, 1),],
  2470.     ctypes.c_int )
  2471.  
  2472. CTX_data_editable_bones = _c_external_function(     "CTX_data_editable_bones", [
  2473.     ("C", ctypes.c_void_p, 1),
  2474.     ("list", ctypes.c_void_p, 1),],
  2475.     ctypes.c_int )
  2476.  
  2477. CTX_data_active_pose_bone = _c_external_function(       "CTX_data_active_pose_bone", [
  2478.     ("C", ctypes.c_void_p, 1),],
  2479.     ctypes.c_void_p )
  2480.  
  2481. CTX_data_selected_pose_bones = _c_external_function(        "CTX_data_selected_pose_bones", [
  2482.     ("C", ctypes.c_void_p, 1),
  2483.     ("list", ctypes.c_void_p, 1),],
  2484.     ctypes.c_int )
  2485.  
  2486. CTX_data_visible_pose_bones = _c_external_function(     "CTX_data_visible_pose_bones", [
  2487.     ("C", ctypes.c_void_p, 1),
  2488.     ("list", ctypes.c_void_p, 1),],
  2489.     ctypes.c_int )
  2490.  
  2491. #class VFont(ctypes.Structure): pass        # typedef or forward reference #
  2492. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  2493. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  2494. #class Curve(ctypes.Structure): pass        # typedef or forward reference #
  2495. #class objfnt(ctypes.Structure): pass       # typedef or forward reference #
  2496. #class TmpFont(ctypes.Structure): pass      # typedef or forward reference #
  2497. #class CharInfo(ctypes.Structure): pass     # typedef or forward reference #
  2498. class chartrans(ctypes.Structure): _fields_=[
  2499.     ( "xof", ctypes.c_float ),
  2500.     ( "yof", ctypes.c_float ),
  2501.     ( "rot", ctypes.c_float ),
  2502.     ( "linenr", ctypes.c_short ),
  2503.     ( "charnr", ctypes.c_short ),
  2504.     ( "dobreak", ctypes.c_char ),]
  2505.  
  2506. class SelBox(ctypes.Structure): _fields_=[
  2507.     ( "x", ctypes.c_float ),
  2508.     ( "y", ctypes.c_float ),
  2509.     ( "w", ctypes.c_float ),
  2510.     ( "h", ctypes.c_float ),]
  2511.  
  2512. class EditFont(ctypes.Structure): _fields_=[
  2513.     ( "copybuf", ctypes.c_void_p ),
  2514.     ( "copybufinfo", ctypes.c_void_p ),
  2515.     ( "textbuf", ctypes.c_void_p ),
  2516.     ( "textbufinfo", ctypes.c_void_p ),
  2517.     ( "oldstr", ctypes.c_void_p ),
  2518.     ( "oldstrinfo", ctypes.c_void_p ),
  2519.     ( "textcurs", ctypes.c_float ),]
  2520.  
  2521. BKE_font_register_builtin = _c_external_function(       "BKE_font_register_builtin", [
  2522.     ("mem", ctypes.POINTER( ctypes.c_void_p ), 1),
  2523.     ("size", ctypes.c_int, 1),],
  2524.     ctypes.c_void_p )
  2525.  
  2526. free_vfont = _c_external_function(      "free_vfont", [
  2527.     ("sc", ctypes.c_void_p, 1),],
  2528.     ctypes.c_void_p )
  2529.  
  2530. free_ttfont = _c_external_function(     "free_ttfont", [],
  2531.     ctypes.c_void_p )
  2532.  
  2533. get_builtin_font = _c_external_function(        "get_builtin_font", [],
  2534.     ctypes.c_void_p )
  2535.  
  2536. load_vfont = _c_external_function(      "load_vfont", [
  2537.     ("name", ctypes.c_char_p, 1),],
  2538.     ctypes.c_void_p )
  2539.  
  2540. vfont_find_tmpfont = _c_external_function(      "vfont_find_tmpfont", [
  2541.     ("vfont", ctypes.c_void_p, 1),],
  2542.     ctypes.c_void_p )
  2543.  
  2544. BKE_text_to_curve = _c_external_function(       "BKE_text_to_curve", [
  2545.     ("scene", ctypes.c_void_p, 1),
  2546.     ("ob", ctypes.c_void_p, 1),
  2547.     ("mode", ctypes.c_int, 1),],
  2548.     ctypes.c_void_p )
  2549.  
  2550. BKE_font_getselection = _c_external_function(       "BKE_font_getselection", [
  2551.     ("ob", ctypes.c_void_p, 1),
  2552.     ("start", ctypes.POINTER( ctypes.c_int ), 1),
  2553.     ("end", ctypes.POINTER( ctypes.c_int ), 1),],
  2554.     ctypes.c_int )
  2555.  
  2556. chtoutf8 = _c_external_function(        "chtoutf8", [
  2557.     ("c", ctypes.c_long, 1),
  2558.     ("o", ctypes.c_char_p, 1),],
  2559.     ctypes.c_void_p )
  2560.  
  2561. wcs2utf8s = _c_external_function(       "wcs2utf8s", [
  2562.     ("dst", ctypes.c_char_p, 1),
  2563.     ("src", ctypes.c_void_p, 1),],
  2564.     ctypes.c_void_p )
  2565.  
  2566. wcsleninu8 = _c_external_function(      "wcsleninu8", [
  2567.     ("src", ctypes.c_void_p, 1),],
  2568.     ctypes.c_int )
  2569.  
  2570. utf8towchar = _c_external_function(     "utf8towchar", [
  2571.     ("w", ctypes.c_void_p, 1),
  2572.     ("c", ctypes.c_char_p, 1),],
  2573.     ctypes.c_int )
  2574.  
  2575. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  2576. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  2577. #class BME_Glob(ctypes.Structure): pass     # typedef or forward reference #
  2578. class Global(ctypes.Structure): _fields_=[
  2579.     ( "main", ctypes.c_void_p ),
  2580.     ( "ima", ctypes.c_char ),
  2581.     ( "sce", ctypes.c_char ),
  2582.     ( "lib", ctypes.c_char ),
  2583.     ( "relbase_valid", ctypes.c_int ),
  2584.     ( "recent_files", ctypes.c_void_p ),
  2585.     ( "afbreek", ctypes.c_short ),
  2586.     ( "moving", ctypes.c_short ),
  2587.     ( "file_loaded", ctypes.c_short ),
  2588.     ( "background", ctypes.c_short ),
  2589.     ( "winpos", ctypes.c_short ),
  2590.     ( "displaymode", ctypes.c_short ),
  2591.     ( "rendering", ctypes.c_short ),
  2592.     ( "rt", ctypes.c_short ),
  2593.     ( "f", ctypes.c_int ),
  2594.     ( "editBMesh", ctypes.c_void_p ),
  2595.     ( "save_over", ctypes.c_int ),
  2596.     ( "have_quicktime", ctypes.c_int ),
  2597.     ( "ui_international", ctypes.c_int ),
  2598.     ( "charstart", ctypes.c_int ),
  2599.     ( "charmin", ctypes.c_int ),
  2600.     ( "charmax", ctypes.c_int ),
  2601.     ( "selfont", ctypes.c_void_p ),
  2602.     ( "ttfdata", ctypes.c_void_p ),
  2603.     ( "fileflags", ctypes.c_int ),
  2604.     ( "windowstate", ctypes.c_int ),
  2605.     ( "ndofdevice", ctypes.c_int ),
  2606.     ( "flags", ctypes.c_int ),]
  2607.  
  2608. #ENDIAN_ORDER                           <TypeDecl=short>
  2609. #G                          <TypeDecl=Global>
  2610. #class Library(ctypes.Structure): pass      # typedef or forward reference #
  2611. class Main(ctypes.Structure): _fields_=[
  2612.     ( "next", ctypes.c_void_p ),
  2613.     ( "prev", ctypes.c_void_p ),
  2614.     ( "name", ctypes.c_char ),
  2615.     ( "versionfile", ctypes.c_short ),
  2616.     ( "subversionfile", ctypes.c_short ),
  2617.     ( "minversionfile", ctypes.c_short ),
  2618.     ( "minsubversionfile", ctypes.c_short ),
  2619.     ( "curlib", ctypes.c_void_p ),
  2620.     ( "scene", ctypes.c_void_p ),
  2621.     ( "library", ctypes.c_void_p ),
  2622.     ( "object", ctypes.c_void_p ),
  2623.     ( "mesh", ctypes.c_void_p ),
  2624.     ( "curve", ctypes.c_void_p ),
  2625.     ( "mball", ctypes.c_void_p ),
  2626.     ( "mat", ctypes.c_void_p ),
  2627.     ( "tex", ctypes.c_void_p ),
  2628.     ( "image", ctypes.c_void_p ),
  2629.     ( "latt", ctypes.c_void_p ),
  2630.     ( "lamp", ctypes.c_void_p ),
  2631.     ( "camera", ctypes.c_void_p ),
  2632.     ( "ipo", ctypes.c_void_p ),
  2633.     ( "key", ctypes.c_void_p ),
  2634.     ( "world", ctypes.c_void_p ),
  2635.     ( "screen", ctypes.c_void_p ),
  2636.     ( "script", ctypes.c_void_p ),
  2637.     ( "vfont", ctypes.c_void_p ),
  2638.     ( "text", ctypes.c_void_p ),
  2639.     ( "sound", ctypes.c_void_p ),
  2640.     ( "group", ctypes.c_void_p ),
  2641.     ( "armature", ctypes.c_void_p ),
  2642.     ( "action", ctypes.c_void_p ),
  2643.     ( "nodetree", ctypes.c_void_p ),
  2644.     ( "brush", ctypes.c_void_p ),
  2645.     ( "particle", ctypes.c_void_p ),
  2646.     ( "wm", ctypes.c_void_p ),
  2647.     ( "gpencil", ctypes.c_void_p ),]
  2648.  
  2649. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  2650. #class Material(ctypes.Structure): pass     # typedef or forward reference #
  2651. #class ID(ctypes.Structure): pass       # typedef or forward reference #
  2652. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  2653. init_def_material = _c_external_function(       "init_def_material", [],
  2654.     ctypes.c_void_p )
  2655.  
  2656. free_material = _c_external_function(       "free_material", [
  2657.     ("sc", ctypes.c_void_p, 1),],
  2658.     ctypes.c_void_p )
  2659.  
  2660. test_object_materials = _c_external_function(       "test_object_materials", [
  2661.     ("id", ctypes.c_void_p, 1),],
  2662.     ctypes.c_void_p )
  2663.  
  2664. init_material = _c_external_function(       "init_material", [
  2665.     ("ma", ctypes.c_void_p, 1),],
  2666.     ctypes.c_void_p )
  2667.  
  2668. add_material = _c_external_function(        "add_material", [
  2669.     ("name", ctypes.c_char_p, 1),],
  2670.     ctypes.c_void_p )
  2671.  
  2672. copy_material = _c_external_function(       "copy_material", [
  2673.     ("ma", ctypes.c_void_p, 1),],
  2674.     ctypes.c_void_p )
  2675.  
  2676. give_node_material = _c_external_function(      "give_node_material", [
  2677.     ("ma", ctypes.c_void_p, 1),],
  2678.     ctypes.c_void_p )
  2679.  
  2680. make_local_material = _c_external_function(     "make_local_material", [
  2681.     ("ma", ctypes.c_void_p, 1),],
  2682.     ctypes.c_void_p )
  2683.  
  2684. automatname = _c_external_function(     "automatname", [
  2685.     ("Material", ctypes.c_void_p, 1),],
  2686.     ctypes.c_void_p )
  2687.  
  2688. give_matarar = _c_external_function(        "give_matarar", [
  2689.     ("ob", ctypes.c_void_p, 1),],
  2690.     ctypes.c_void_p )
  2691.  
  2692. give_totcolp = _c_external_function(        "give_totcolp", [
  2693.     ("ob", ctypes.c_void_p, 1),],
  2694.     ctypes.c_short )
  2695.  
  2696. give_matarar_id = _c_external_function(     "give_matarar_id", [
  2697.     ("id", ctypes.c_void_p, 1),],
  2698.     ctypes.c_void_p )
  2699.  
  2700. give_totcolp_id = _c_external_function(     "give_totcolp_id", [
  2701.     ("id", ctypes.c_void_p, 1),],
  2702.     ctypes.c_short )
  2703.  
  2704. give_current_material = _c_external_function(       "give_current_material", [
  2705.     ("ob", ctypes.c_void_p, 1),
  2706.     ("act", ctypes.c_int, 1),],
  2707.     ctypes.c_void_p )
  2708.  
  2709. material_from = _c_external_function(       "material_from", [
  2710.     ("ob", ctypes.c_void_p, 1),
  2711.     ("act", ctypes.c_int, 1),],
  2712.     ctypes.c_void_p )
  2713.  
  2714. assign_material = _c_external_function(     "assign_material", [
  2715.     ("ob", ctypes.c_void_p, 1),
  2716.     ("ma", ctypes.c_void_p, 1),
  2717.     ("act", ctypes.c_int, 1),],
  2718.     ctypes.c_void_p )
  2719.  
  2720. assign_matarar = _c_external_function(      "assign_matarar", [
  2721.     ("ob", ctypes.c_void_p, 1),
  2722.     ("matar", ctypes.c_void_p, 1),
  2723.     ("totcol", ctypes.c_int, 1),],
  2724.     ctypes.c_void_p )
  2725.  
  2726. find_material_index = _c_external_function(     "find_material_index", [
  2727.     ("ob", ctypes.c_void_p, 1),
  2728.     ("ma", ctypes.c_void_p, 1),],
  2729.     ctypes.c_int )
  2730.  
  2731. object_add_material_slot = _c_external_function(        "object_add_material_slot", [
  2732.     ("ob", ctypes.c_void_p, 1),],
  2733.     ctypes.c_int )
  2734.  
  2735. object_remove_material_slot = _c_external_function(     "object_remove_material_slot", [
  2736.     ("ob", ctypes.c_void_p, 1),],
  2737.     ctypes.c_int )
  2738.  
  2739. material_append_id = _c_external_function(      "material_append_id", [
  2740.     ("id", ctypes.c_void_p, 1),
  2741.     ("ma", ctypes.c_void_p, 1),],
  2742.     ctypes.c_void_p )
  2743.  
  2744. material_pop_id = _c_external_function(     "material_pop_id", [
  2745.     ("id", ctypes.c_void_p, 1),
  2746.     ("index", ctypes.c_int, 1),],
  2747.     ctypes.c_void_p )
  2748.  
  2749. init_render_material = _c_external_function(        "init_render_material", [
  2750.     ("Material", ctypes.c_void_p, 1),
  2751.     ("None", ctypes.c_int, 1),
  2752.     ("None", ctypes.POINTER( ctypes.c_float ), 1),],
  2753.     ctypes.c_void_p )
  2754.  
  2755. init_render_materials = _c_external_function(       "init_render_materials", [
  2756.     ("Main", ctypes.c_void_p, 1),
  2757.     ("None", ctypes.c_int, 1),
  2758.     ("None", ctypes.POINTER( ctypes.c_float ), 1),],
  2759.     ctypes.c_void_p )
  2760.  
  2761. end_render_material = _c_external_function(     "end_render_material", [
  2762.     ("Material", ctypes.c_void_p, 1),],
  2763.     ctypes.c_void_p )
  2764.  
  2765. end_render_materials = _c_external_function(        "end_render_materials", [
  2766.     ("Main", ctypes.c_void_p, 1),],
  2767.     ctypes.c_void_p )
  2768.  
  2769. material_in_material = _c_external_function(        "material_in_material", [
  2770.     ("parmat", ctypes.c_void_p, 1),
  2771.     ("mat", ctypes.c_void_p, 1),],
  2772.     ctypes.c_int )
  2773.  
  2774. ramp_blend = _c_external_function(      "ramp_blend", [
  2775.     ("type", ctypes.c_int, 1),
  2776.     ("r", ctypes.POINTER( ctypes.c_float ), 1),
  2777.     ("g", ctypes.POINTER( ctypes.c_float ), 1),
  2778.     ("b", ctypes.POINTER( ctypes.c_float ), 1),
  2779.     ("fac", ctypes.c_float, 1),
  2780.     ("col", ctypes.POINTER( ctypes.c_float ), 1),],
  2781.     ctypes.c_void_p )
  2782.  
  2783. clear_matcopybuf = _c_external_function(        "clear_matcopybuf", [],
  2784.     ctypes.c_void_p )
  2785.  
  2786. free_matcopybuf = _c_external_function(     "free_matcopybuf", [],
  2787.     ctypes.c_void_p )
  2788.  
  2789. copy_matcopybuf = _c_external_function(     "copy_matcopybuf", [
  2790.     ("ma", ctypes.c_void_p, 1),],
  2791.     ctypes.c_void_p )
  2792.  
  2793. paste_matcopybuf = _c_external_function(        "paste_matcopybuf", [
  2794.     ("ma", ctypes.c_void_p, 1),],
  2795.     ctypes.c_void_p )
  2796.  
  2797. clear_mat_mtex_copybuf = _c_external_function(      "clear_mat_mtex_copybuf", [],
  2798.     ctypes.c_void_p )
  2799.  
  2800. copy_mat_mtex_copybuf = _c_external_function(       "copy_mat_mtex_copybuf", [
  2801.     ("id", ctypes.c_void_p, 1),],
  2802.     ctypes.c_void_p )
  2803.  
  2804. paste_mat_mtex_copybuf = _c_external_function(      "paste_mat_mtex_copybuf", [
  2805.     ("id", ctypes.c_void_p, 1),],
  2806.     ctypes.c_void_p )
  2807.  
  2808. #class bSound(ctypes.Structure): pass       # typedef or forward reference #
  2809. #class Image(ctypes.Structure): pass        # typedef or forward reference #
  2810. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  2811. #class PackedFile(ctypes.Structure): pass       # typedef or forward reference #
  2812. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  2813. #class VFont(ctypes.Structure): pass        # typedef or forward reference #
  2814. newPackedFile = _c_external_function(       "newPackedFile", [
  2815.     ("reports", ctypes.c_void_p, 1),
  2816.     ("filename", ctypes.c_char_p, 1),],
  2817.     ctypes.c_void_p )
  2818.  
  2819. newPackedFileMemory = _c_external_function(     "newPackedFileMemory", [
  2820.     ("mem", ctypes.POINTER( ctypes.c_void_p ), 1),
  2821.     ("memlen", ctypes.c_int, 1),],
  2822.     ctypes.c_void_p )
  2823.  
  2824. packAll = _c_external_function(     "packAll", [
  2825.     ("bmain", ctypes.c_void_p, 1),
  2826.     ("reports", ctypes.c_void_p, 1),],
  2827.     ctypes.c_void_p )
  2828.  
  2829. unpackFile = _c_external_function(      "unpackFile", [
  2830.     ("reports", ctypes.c_void_p, 1),
  2831.     ("abs_name", ctypes.c_char_p, 1),
  2832.     ("local_name", ctypes.c_char_p, 1),
  2833.     ("pf", ctypes.c_void_p, 1),
  2834.     ("how", ctypes.c_int, 1),],
  2835.     ctypes.c_char )
  2836.  
  2837. unpackVFont = _c_external_function(     "unpackVFont", [
  2838.     ("reports", ctypes.c_void_p, 1),
  2839.     ("vfont", ctypes.c_void_p, 1),
  2840.     ("how", ctypes.c_int, 1),],
  2841.     ctypes.c_int )
  2842.  
  2843. unpackSound = _c_external_function(     "unpackSound", [
  2844.     ("reports", ctypes.c_void_p, 1),
  2845.     ("sound", ctypes.c_void_p, 1),
  2846.     ("how", ctypes.c_int, 1),],
  2847.     ctypes.c_int )
  2848.  
  2849. unpackImage = _c_external_function(     "unpackImage", [
  2850.     ("reports", ctypes.c_void_p, 1),
  2851.     ("ima", ctypes.c_void_p, 1),
  2852.     ("how", ctypes.c_int, 1),],
  2853.     ctypes.c_int )
  2854.  
  2855. unpackAll = _c_external_function(       "unpackAll", [
  2856.     ("bmain", ctypes.c_void_p, 1),
  2857.     ("reports", ctypes.c_void_p, 1),
  2858.     ("how", ctypes.c_int, 1),],
  2859.     ctypes.c_void_p )
  2860.  
  2861. writePackedFile = _c_external_function(     "writePackedFile", [
  2862.     ("reports", ctypes.c_void_p, 1),
  2863.     ("filename", ctypes.c_char_p, 1),
  2864.     ("pf", ctypes.c_void_p, 1),
  2865.     ("guimode", ctypes.c_int, 1),],
  2866.     ctypes.c_int )
  2867.  
  2868. freePackedFile = _c_external_function(      "freePackedFile", [
  2869.     ("pf", ctypes.c_void_p, 1),],
  2870.     ctypes.c_void_p )
  2871.  
  2872. countPackedFiles = _c_external_function(        "countPackedFiles", [
  2873.     ("bmain", ctypes.c_void_p, 1),],
  2874.     ctypes.c_int )
  2875.  
  2876. checkPackedFile = _c_external_function(     "checkPackedFile", [
  2877.     ("filename", ctypes.c_char_p, 1),
  2878.     ("pf", ctypes.c_void_p, 1),],
  2879.     ctypes.c_int )
  2880.  
  2881. seekPackedFile = _c_external_function(      "seekPackedFile", [
  2882.     ("pf", ctypes.c_void_p, 1),
  2883.     ("offset", ctypes.c_int, 1),
  2884.     ("whence", ctypes.c_int, 1),],
  2885.     ctypes.c_int )
  2886.  
  2887. rewindPackedFile = _c_external_function(        "rewindPackedFile", [
  2888.     ("pf", ctypes.c_void_p, 1),],
  2889.     ctypes.c_void_p )
  2890.  
  2891. readPackedFile = _c_external_function(      "readPackedFile", [
  2892.     ("pf", ctypes.c_void_p, 1),
  2893.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),
  2894.     ("size", ctypes.c_int, 1),],
  2895.     ctypes.c_int )
  2896.  
  2897. #class AviCodecData(ctypes.Structure): pass     # typedef or forward reference #
  2898. #class Base(ctypes.Structure): pass     # typedef or forward reference #
  2899. #class bglMats(ctypes.Structure): pass      # typedef or forward reference #
  2900. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  2901. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  2902. #class QuicktimeCodecData(ctypes.Structure): pass       # typedef or forward reference #
  2903. #class RenderData(ctypes.Structure): pass       # typedef or forward reference #
  2904. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  2905. #class Text(ctypes.Structure): pass     # typedef or forward reference #
  2906. #class Text(ctypes.Structure): pass     # typedef or forward reference #
  2907. _setlooper_base_step = _c_external_function(        "_setlooper_base_step", [
  2908.     ("sce", ctypes.c_void_p, 1),
  2909.     ("base", ctypes.c_void_p, 1),],
  2910.     ctypes.c_void_p )
  2911.  
  2912. free_avicodecdata = _c_external_function(       "free_avicodecdata", [
  2913.     ("acd", ctypes.c_void_p, 1),],
  2914.     ctypes.c_void_p )
  2915.  
  2916. free_qtcodecdata = _c_external_function(        "free_qtcodecdata", [
  2917.     ("acd", ctypes.c_void_p, 1),],
  2918.     ctypes.c_void_p )
  2919.  
  2920. free_scene = _c_external_function(      "free_scene", [
  2921.     ("sce", ctypes.c_void_p, 1),],
  2922.     ctypes.c_void_p )
  2923.  
  2924. add_scene = _c_external_function(       "add_scene", [
  2925.     ("name", ctypes.c_char_p, 1),],
  2926.     ctypes.c_void_p )
  2927.  
  2928. object_in_scene = _c_external_function(     "object_in_scene", [
  2929.     ("ob", ctypes.c_void_p, 1),
  2930.     ("sce", ctypes.c_void_p, 1),],
  2931.     ctypes.c_void_p )
  2932.  
  2933. set_scene_bg = _c_external_function(        "set_scene_bg", [
  2934.     ("bmain", ctypes.c_void_p, 1),
  2935.     ("sce", ctypes.c_void_p, 1),],
  2936.     ctypes.c_void_p )
  2937.  
  2938. set_scene_name = _c_external_function(      "set_scene_name", [
  2939.     ("bmain", ctypes.c_void_p, 1),
  2940.     ("name", ctypes.c_char_p, 1),],
  2941.     ctypes.c_void_p )
  2942.  
  2943. copy_scene = _c_external_function(      "copy_scene", [
  2944.     ("bmain", ctypes.c_void_p, 1),
  2945.     ("sce", ctypes.c_void_p, 1),
  2946.     ("type", ctypes.c_int, 1),],
  2947.     ctypes.c_void_p )
  2948.  
  2949. unlink_scene = _c_external_function(        "unlink_scene", [
  2950.     ("bmain", ctypes.c_void_p, 1),
  2951.     ("sce", ctypes.c_void_p, 1),
  2952.     ("newsce", ctypes.c_void_p, 1),],
  2953.     ctypes.c_void_p )
  2954.  
  2955. next_object = _c_external_function(     "next_object", [
  2956.     ("scene", ctypes.c_void_p, 1),
  2957.     ("val", ctypes.c_int, 1),
  2958.     ("base", ctypes.c_void_p, 1),
  2959.     ("ob", ctypes.c_void_p, 1),],
  2960.     ctypes.c_int )
  2961.  
  2962. scene_find_camera = _c_external_function(       "scene_find_camera", [
  2963.     ("sc", ctypes.c_void_p, 1),],
  2964.     ctypes.c_void_p )
  2965.  
  2966. scene_camera_switch_find = _c_external_function(        "scene_camera_switch_find", [
  2967.     ("scene", ctypes.c_void_p, 1),],
  2968.     ctypes.c_void_p )
  2969.  
  2970. scene_camera_switch_update = _c_external_function(      "scene_camera_switch_update", [
  2971.     ("scene", ctypes.c_void_p, 1),],
  2972.     ctypes.c_int )
  2973.  
  2974. scene_find_marker_name = _c_external_function(      "scene_find_marker_name", [
  2975.     ("scene", ctypes.c_void_p, 1),
  2976.     ("frame", ctypes.c_int, 1),],
  2977.     ctypes.c_char )
  2978.  
  2979. scene_find_last_marker_name = _c_external_function(     "scene_find_last_marker_name", [
  2980.     ("scene", ctypes.c_void_p, 1),
  2981.     ("frame", ctypes.c_int, 1),],
  2982.     ctypes.c_char )
  2983.  
  2984. scene_marker_tfm_translate = _c_external_function(      "scene_marker_tfm_translate", [
  2985.     ("scene", ctypes.c_void_p, 1),
  2986.     ("delta", ctypes.c_int, 1),
  2987.     ("flag", ctypes.c_int, 1),],
  2988.     ctypes.c_int )
  2989.  
  2990. scene_marker_tfm_extend = _c_external_function(     "scene_marker_tfm_extend", [
  2991.     ("scene", ctypes.c_void_p, 1),
  2992.     ("delta", ctypes.c_int, 1),
  2993.     ("flag", ctypes.c_int, 1),
  2994.     ("frame", ctypes.c_int, 1),
  2995.     ("side", ctypes.c_char, 1),],
  2996.     ctypes.c_int )
  2997.  
  2998. scene_add_base = _c_external_function(      "scene_add_base", [
  2999.     ("sce", ctypes.c_void_p, 1),
  3000.     ("ob", ctypes.c_void_p, 1),],
  3001.     ctypes.c_void_p )
  3002.  
  3003. scene_deselect_all = _c_external_function(      "scene_deselect_all", [
  3004.     ("sce", ctypes.c_void_p, 1),],
  3005.     ctypes.c_void_p )
  3006.  
  3007. scene_select_base = _c_external_function(       "scene_select_base", [
  3008.     ("sce", ctypes.c_void_p, 1),
  3009.     ("selbase", ctypes.c_void_p, 1),],
  3010.     ctypes.c_void_p )
  3011.  
  3012. scene_check_setscene = _c_external_function(        "scene_check_setscene", [
  3013.     ("bmain", ctypes.c_void_p, 1),
  3014.     ("sce", ctypes.c_void_p, 1),],
  3015.     ctypes.c_int )
  3016.  
  3017. BKE_curframe = _c_external_function(        "BKE_curframe", [
  3018.     ("scene", ctypes.c_void_p, 1),],
  3019.     ctypes.c_float )
  3020.  
  3021. scene_update_tagged = _c_external_function(     "scene_update_tagged", [
  3022.     ("bmain", ctypes.c_void_p, 1),
  3023.     ("sce", ctypes.c_void_p, 1),],
  3024.     ctypes.c_void_p )
  3025.  
  3026. scene_update_for_newframe = _c_external_function(       "scene_update_for_newframe", [
  3027.     ("bmain", ctypes.c_void_p, 1),
  3028.     ("sce", ctypes.c_void_p, 1),
  3029.     ("lay", ctypes.c_int, 1),],
  3030.     ctypes.c_void_p )
  3031.  
  3032. scene_add_render_layer = _c_external_function(      "scene_add_render_layer", [
  3033.     ("sce", ctypes.c_void_p, 1),],
  3034.     ctypes.c_void_p )
  3035.  
  3036. get_render_subsurf_level = _c_external_function(        "get_render_subsurf_level", [
  3037.     ("r", ctypes.c_void_p, 1),
  3038.     ("level", ctypes.c_int, 1),],
  3039.     ctypes.c_int )
  3040.  
  3041. get_render_child_particle_number = _c_external_function(        "get_render_child_particle_number", [
  3042.     ("r", ctypes.c_void_p, 1),
  3043.     ("num", ctypes.c_int, 1),],
  3044.     ctypes.c_int )
  3045.  
  3046. get_render_shadow_samples = _c_external_function(       "get_render_shadow_samples", [
  3047.     ("r", ctypes.c_void_p, 1),
  3048.     ("samples", ctypes.c_int, 1),],
  3049.     ctypes.c_int )
  3050.  
  3051. get_render_aosss_error = _c_external_function(      "get_render_aosss_error", [
  3052.     ("r", ctypes.c_void_p, 1),
  3053.     ("error", ctypes.c_float, 1),],
  3054.     ctypes.c_float )
  3055.  
  3056. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  3057. #class bNode(ctypes.Structure): pass        # typedef or forward reference #
  3058. #class bNodeLink(ctypes.Structure): pass        # typedef or forward reference #
  3059. #class bNodeSocket(ctypes.Structure): pass      # typedef or forward reference #
  3060. #class bNodeStack(ctypes.Structure): pass       # typedef or forward reference #
  3061. #class bNodeTree(ctypes.Structure): pass        # typedef or forward reference #
  3062. #class GPUMaterial(ctypes.Structure): pass      # typedef or forward reference #
  3063. #class GPUNode(ctypes.Structure): pass      # typedef or forward reference #
  3064. #class GPUNodeStack(ctypes.Structure): pass     # typedef or forward reference #
  3065. #class ID(ctypes.Structure): pass       # typedef or forward reference #
  3066. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  3067. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  3068. #class MTex(ctypes.Structure): pass     # typedef or forward reference #
  3069. #class PointerRNA(ctypes.Structure): pass       # typedef or forward reference #
  3070. #class rctf(ctypes.Structure): pass     # typedef or forward reference #
  3071. #class RenderData(ctypes.Structure): pass       # typedef or forward reference #
  3072. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  3073. #class Tex(ctypes.Structure): pass      # typedef or forward reference #
  3074. #class uiLayout(ctypes.Structure): pass     # typedef or forward reference #
  3075. class bNodeSocketType(ctypes.Structure): _fields_=[
  3076.     ( "type", ctypes.c_int ),
  3077.     ( "limit", ctypes.c_int ),
  3078.     ( "name", ctypes.c_char_p ),
  3079.     ( "val1", ctypes.c_float ),
  3080.     ( "val2", ctypes.c_float ),
  3081.     ( "val3", ctypes.c_float ),
  3082.     ( "val4", ctypes.c_float ),
  3083.     ( "min", ctypes.c_float ),
  3084.     ( "max", ctypes.c_float ),
  3085.     ( "sock", ctypes.c_void_p ),
  3086.     ( "internsock", ctypes.c_void_p ),
  3087.     ( "own_index", ctypes.c_int ),]
  3088.  
  3089. class bNodeType(ctypes.Structure): _fields_=[
  3090.     ( "next", ctypes.POINTER( ctypes.c_void_p ) ),
  3091.     ( "prev", ctypes.POINTER( ctypes.c_void_p ) ),
  3092.     ( "type", ctypes.c_int ),
  3093.     ( "name", ctypes.c_char_p ),
  3094.     ( "width", ctypes.c_float ),
  3095.     ( "minwidth", ctypes.c_float ),
  3096.     ( "maxwidth", ctypes.c_float ),
  3097.     ( "nclass", ctypes.c_short ),
  3098.     ( "flag", ctypes.c_short ),
  3099.     ( "inputs", ctypes.c_void_p ),
  3100.     ( "outputs", ctypes.c_void_p ),
  3101.     ( "storagename", ctypes.c_char ),
  3102.     ( "execfunc", ctypes.c_void_p ),
  3103.     ( "uifunc", ctypes.c_void_p ),
  3104.     ( "initfunc", ctypes.c_void_p ),
  3105.     ( "freestoragefunc", ctypes.c_void_p ),
  3106.     ( "copystoragefunc", ctypes.c_void_p ),
  3107.     ( "id", ctypes.c_void_p ),
  3108.     ( "pynode", ctypes.POINTER( ctypes.c_void_p ) ),
  3109.     ( "pydict", ctypes.POINTER( ctypes.c_void_p ) ),
  3110.     ( "gpufunc", ctypes.c_void_p ),]
  3111.  
  3112. ntreeVerifyTypes = _c_external_function(        "ntreeVerifyTypes", [
  3113.     ("ntree", ctypes.c_void_p, 1),],
  3114.     ctypes.c_void_p )
  3115.  
  3116. ntreeAddTree = _c_external_function(        "ntreeAddTree", [
  3117.     ("type", ctypes.c_int, 1),],
  3118.     ctypes.c_void_p )
  3119.  
  3120. ntreeInitTypes = _c_external_function(      "ntreeInitTypes", [
  3121.     ("ntree", ctypes.c_void_p, 1),],
  3122.     ctypes.c_void_p )
  3123.  
  3124. ntreeMakeOwnType = _c_external_function(        "ntreeMakeOwnType", [
  3125.     ("ntree", ctypes.c_void_p, 1),],
  3126.     ctypes.c_void_p )
  3127.  
  3128. ntreeUpdateType = _c_external_function(     "ntreeUpdateType", [
  3129.     ("ntree", ctypes.c_void_p, 1),
  3130.     ("ntype", ctypes.c_void_p, 1),],
  3131.     ctypes.c_void_p )
  3132.  
  3133. ntreeFreeTree = _c_external_function(       "ntreeFreeTree", [
  3134.     ("ntree", ctypes.c_void_p, 1),],
  3135.     ctypes.c_void_p )
  3136.  
  3137. ntreeCopyTree = _c_external_function(       "ntreeCopyTree", [
  3138.     ("ntree", ctypes.c_void_p, 1),
  3139.     ("internal_select", ctypes.c_int, 1),],
  3140.     ctypes.c_void_p )
  3141.  
  3142. ntreeSwitchID = _c_external_function(       "ntreeSwitchID", [
  3143.     ("ntree", ctypes.c_void_p, 1),
  3144.     ("sce_from", ctypes.c_void_p, 1),
  3145.     ("sce_to", ctypes.c_void_p, 1),],
  3146.     ctypes.c_void_p )
  3147.  
  3148. ntreeMakeLocal = _c_external_function(      "ntreeMakeLocal", [
  3149.     ("ntree", ctypes.c_void_p, 1),],
  3150.     ctypes.c_void_p )
  3151.  
  3152. ntreeSocketUseFlags = _c_external_function(     "ntreeSocketUseFlags", [
  3153.     ("ntree", ctypes.c_void_p, 1),],
  3154.     ctypes.c_void_p )
  3155.  
  3156. ntreeSolveOrder = _c_external_function(     "ntreeSolveOrder", [
  3157.     ("ntree", ctypes.c_void_p, 1),],
  3158.     ctypes.c_void_p )
  3159.  
  3160. ntreeBeginExecTree = _c_external_function(      "ntreeBeginExecTree", [
  3161.     ("ntree", ctypes.c_void_p, 1),],
  3162.     ctypes.c_void_p )
  3163.  
  3164. ntreeExecTree = _c_external_function(       "ntreeExecTree", [
  3165.     ("ntree", ctypes.c_void_p, 1),
  3166.     ("callerdata", ctypes.POINTER( ctypes.c_void_p ), 1),
  3167.     ("thread", ctypes.c_int, 1),],
  3168.     ctypes.c_void_p )
  3169.  
  3170. ntreeCompositExecTree = _c_external_function(       "ntreeCompositExecTree", [
  3171.     ("ntree", ctypes.c_void_p, 1),
  3172.     ("rd", ctypes.c_void_p, 1),
  3173.     ("do_previews", ctypes.c_int, 1),],
  3174.     ctypes.c_void_p )
  3175.  
  3176. ntreeEndExecTree = _c_external_function(        "ntreeEndExecTree", [
  3177.     ("ntree", ctypes.c_void_p, 1),],
  3178.     ctypes.c_void_p )
  3179.  
  3180. ntreeInitPreview = _c_external_function(        "ntreeInitPreview", [
  3181.     ("bNodeTree", ctypes.c_void_p, 1),
  3182.     ("xsize", ctypes.c_int, 1),
  3183.     ("ysize", ctypes.c_int, 1),],
  3184.     ctypes.c_void_p )
  3185.  
  3186. ntreeClearPreview = _c_external_function(       "ntreeClearPreview", [
  3187.     ("ntree", ctypes.c_void_p, 1),],
  3188.     ctypes.c_void_p )
  3189.  
  3190. ntreeFreeCache = _c_external_function(      "ntreeFreeCache", [
  3191.     ("ntree", ctypes.c_void_p, 1),],
  3192.     ctypes.c_void_p )
  3193.  
  3194. ntreeLocalize = _c_external_function(       "ntreeLocalize", [
  3195.     ("ntree", ctypes.c_void_p, 1),],
  3196.     ctypes.c_void_p )
  3197.  
  3198. ntreeLocalSync = _c_external_function(      "ntreeLocalSync", [
  3199.     ("localtree", ctypes.c_void_p, 1),
  3200.     ("ntree", ctypes.c_void_p, 1),],
  3201.     ctypes.c_void_p )
  3202.  
  3203. ntreeLocalMerge = _c_external_function(     "ntreeLocalMerge", [
  3204.     ("localtree", ctypes.c_void_p, 1),
  3205.     ("ntree", ctypes.c_void_p, 1),],
  3206.     ctypes.c_void_p )
  3207.  
  3208. nodeVerifyType = _c_external_function(      "nodeVerifyType", [
  3209.     ("ntree", ctypes.c_void_p, 1),
  3210.     ("node", ctypes.c_void_p, 1),],
  3211.     ctypes.c_void_p )
  3212.  
  3213. nodeAddToPreview = _c_external_function(        "nodeAddToPreview", [
  3214.     ("bNode", ctypes.c_void_p, 1),
  3215.     ("None", ctypes.POINTER( ctypes.c_float ), 1),
  3216.     ("None", ctypes.c_int, 1),
  3217.     ("None", ctypes.c_int, 1),],
  3218.     ctypes.c_void_p )
  3219.  
  3220. nodeUnlinkNode = _c_external_function(      "nodeUnlinkNode", [
  3221.     ("ntree", ctypes.c_void_p, 1),
  3222.     ("node", ctypes.c_void_p, 1),],
  3223.     ctypes.c_void_p )
  3224.  
  3225. nodeUniqueName = _c_external_function(      "nodeUniqueName", [
  3226.     ("ntree", ctypes.c_void_p, 1),
  3227.     ("node", ctypes.c_void_p, 1),],
  3228.     ctypes.c_void_p )
  3229.  
  3230. nodeAddSockets = _c_external_function(      "nodeAddSockets", [
  3231.     ("node", ctypes.c_void_p, 1),
  3232.     ("ntype", ctypes.c_void_p, 1),],
  3233.     ctypes.c_void_p )
  3234.  
  3235. nodeAddNodeType = _c_external_function(     "nodeAddNodeType", [
  3236.     ("ntree", ctypes.c_void_p, 1),
  3237.     ("type", ctypes.c_int, 1),
  3238.     ("ngroup", ctypes.c_void_p, 1),
  3239.     ("id", ctypes.c_void_p, 1),],
  3240.     ctypes.c_void_p )
  3241.  
  3242. nodeRegisterType = _c_external_function(        "nodeRegisterType", [
  3243.     ("typelist", ctypes.c_void_p, 1),
  3244.     ("ntype", ctypes.c_void_p, 1),],
  3245.     ctypes.c_void_p )
  3246.  
  3247. nodeUpdateType = _c_external_function(      "nodeUpdateType", [
  3248.     ("ntree", ctypes.c_void_p, 1),
  3249.     ("node", ctypes.c_void_p, 1),
  3250.     ("ntype", ctypes.c_void_p, 1),],
  3251.     ctypes.c_void_p )
  3252.  
  3253. nodeMakeDynamicType = _c_external_function(     "nodeMakeDynamicType", [
  3254.     ("node", ctypes.c_void_p, 1),],
  3255.     ctypes.c_void_p )
  3256.  
  3257. nodeDynamicUnlinkText = _c_external_function(       "nodeDynamicUnlinkText", [
  3258.     ("txtid", ctypes.c_void_p, 1),],
  3259.     ctypes.c_int )
  3260.  
  3261. nodeFreeNode = _c_external_function(        "nodeFreeNode", [
  3262.     ("ntree", ctypes.c_void_p, 1),
  3263.     ("node", ctypes.c_void_p, 1),],
  3264.     ctypes.c_void_p )
  3265.  
  3266. nodeCopyNode = _c_external_function(        "nodeCopyNode", [
  3267.     ("ntree", ctypes.c_void_p, 1),
  3268.     ("node", ctypes.c_void_p, 1),
  3269.     ("internal", ctypes.c_int, 1),],
  3270.     ctypes.c_void_p )
  3271.  
  3272. nodeAddLink = _c_external_function(     "nodeAddLink", [
  3273.     ("ntree", ctypes.c_void_p, 1),
  3274.     ("fromnode", ctypes.c_void_p, 1),
  3275.     ("fromsock", ctypes.c_void_p, 1),
  3276.     ("tonode", ctypes.c_void_p, 1),
  3277.     ("tosock", ctypes.c_void_p, 1),],
  3278.     ctypes.c_void_p )
  3279.  
  3280. nodeRemLink = _c_external_function(     "nodeRemLink", [
  3281.     ("ntree", ctypes.c_void_p, 1),
  3282.     ("link", ctypes.c_void_p, 1),],
  3283.     ctypes.c_void_p )
  3284.  
  3285. nodeRemSocketLinks = _c_external_function(      "nodeRemSocketLinks", [
  3286.     ("ntree", ctypes.c_void_p, 1),
  3287.     ("sock", ctypes.c_void_p, 1),],
  3288.     ctypes.c_void_p )
  3289.  
  3290. nodeFindNodebyName = _c_external_function(      "nodeFindNodebyName", [
  3291.     ("ntree", ctypes.c_void_p, 1),
  3292.     ("name", ctypes.c_char_p, 1),],
  3293.     ctypes.c_void_p )
  3294.  
  3295. nodeFindNode = _c_external_function(        "nodeFindNode", [
  3296.     ("ntree", ctypes.c_void_p, 1),
  3297.     ("sock", ctypes.c_void_p, 1),
  3298.     ("nodep", ctypes.c_void_p, 1),
  3299.     ("sockindex", ctypes.POINTER( ctypes.c_int ), 1),],
  3300.     ctypes.c_int )
  3301.  
  3302. nodeFindLink = _c_external_function(        "nodeFindLink", [
  3303.     ("ntree", ctypes.c_void_p, 1),
  3304.     ("from", ctypes.c_void_p, 1),
  3305.     ("to", ctypes.c_void_p, 1),],
  3306.     ctypes.c_void_p )
  3307.  
  3308. nodeCountSocketLinks = _c_external_function(        "nodeCountSocketLinks", [
  3309.     ("ntree", ctypes.c_void_p, 1),
  3310.     ("sock", ctypes.c_void_p, 1),],
  3311.     ctypes.c_int )
  3312.  
  3313. nodeSetActive = _c_external_function(       "nodeSetActive", [
  3314.     ("ntree", ctypes.c_void_p, 1),
  3315.     ("node", ctypes.c_void_p, 1),],
  3316.     ctypes.c_void_p )
  3317.  
  3318. nodeGetActive = _c_external_function(       "nodeGetActive", [
  3319.     ("ntree", ctypes.c_void_p, 1),],
  3320.     ctypes.c_void_p )
  3321.  
  3322. nodeGetActiveID = _c_external_function(     "nodeGetActiveID", [
  3323.     ("ntree", ctypes.c_void_p, 1),
  3324.     ("idtype", ctypes.c_short, 1),],
  3325.     ctypes.c_void_p )
  3326.  
  3327. nodeSetActiveID = _c_external_function(     "nodeSetActiveID", [
  3328.     ("ntree", ctypes.c_void_p, 1),
  3329.     ("idtype", ctypes.c_short, 1),
  3330.     ("id", ctypes.c_void_p, 1),],
  3331.     ctypes.c_int )
  3332.  
  3333. nodeClearActiveID = _c_external_function(       "nodeClearActiveID", [
  3334.     ("ntree", ctypes.c_void_p, 1),
  3335.     ("idtype", ctypes.c_short, 1),],
  3336.     ctypes.c_void_p )
  3337.  
  3338. NodeTagChanged = _c_external_function(      "NodeTagChanged", [
  3339.     ("ntree", ctypes.c_void_p, 1),
  3340.     ("node", ctypes.c_void_p, 1),],
  3341.     ctypes.c_void_p )
  3342.  
  3343. NodeTagIDChanged = _c_external_function(        "NodeTagIDChanged", [
  3344.     ("ntree", ctypes.c_void_p, 1),
  3345.     ("id", ctypes.c_void_p, 1),],
  3346.     ctypes.c_int )
  3347.  
  3348. nodeMakeGroupFromSelected = _c_external_function(       "nodeMakeGroupFromSelected", [
  3349.     ("ntree", ctypes.c_void_p, 1),],
  3350.     ctypes.c_void_p )
  3351.  
  3352. nodeGroupUnGroup = _c_external_function(        "nodeGroupUnGroup", [
  3353.     ("ntree", ctypes.c_void_p, 1),
  3354.     ("gnode", ctypes.c_void_p, 1),],
  3355.     ctypes.c_int )
  3356.  
  3357. nodeVerifyGroup = _c_external_function(     "nodeVerifyGroup", [
  3358.     ("ngroup", ctypes.c_void_p, 1),],
  3359.     ctypes.c_void_p )
  3360.  
  3361. nodeGroupSocketUseFlags = _c_external_function(     "nodeGroupSocketUseFlags", [
  3362.     ("ngroup", ctypes.c_void_p, 1),],
  3363.     ctypes.c_void_p )
  3364.  
  3365. nodeCopyGroup = _c_external_function(       "nodeCopyGroup", [
  3366.     ("gnode", ctypes.c_void_p, 1),],
  3367.     ctypes.c_void_p )
  3368.  
  3369. #node_group_typeinfo                            <TypeDecl=bNodeType>
  3370. #class ShadeInput(ctypes.Structure): pass       # typedef or forward reference #
  3371. #class ShadeResult(ctypes.Structure): pass      # typedef or forward reference #
  3372. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  3373. ntreeShaderExecTree = _c_external_function(     "ntreeShaderExecTree", [
  3374.     ("ntree", ctypes.c_void_p, 1),
  3375.     ("shi", ctypes.c_void_p, 1),
  3376.     ("shr", ctypes.c_void_p, 1),],
  3377.     ctypes.c_void_p )
  3378.  
  3379. ntreeShaderGetTexcoMode = _c_external_function(     "ntreeShaderGetTexcoMode", [
  3380.     ("ntree", ctypes.c_void_p, 1),
  3381.     ("osa", ctypes.c_int, 1),
  3382.     ("texco", ctypes.POINTER( ctypes.c_short ), 1),
  3383.     ("mode", ctypes.POINTER( ctypes.c_int ), 1),],
  3384.     ctypes.c_void_p )
  3385.  
  3386. nodeShaderSynchronizeID = _c_external_function(     "nodeShaderSynchronizeID", [
  3387.     ("node", ctypes.c_void_p, 1),
  3388.     ("copyto", ctypes.c_int, 1),],
  3389.     ctypes.c_void_p )
  3390.  
  3391. node_shader_lamp_loop = _c_external_function(       "node_shader_lamp_loop", [
  3392.     ("ShadeInput", ctypes.c_void_p, 1),
  3393.     ("ShadeResult", ctypes.c_void_p, 1),],
  3394.     ctypes.c_void_p )
  3395.  
  3396. set_node_shader_lamp_loop = _c_external_function(       "set_node_shader_lamp_loop", [
  3397.     ("lamp_loop_func", ctypes.c_void_p, 1),],
  3398.     ctypes.c_void_p )
  3399.  
  3400. ntreeGPUMaterialNodes = _c_external_function(       "ntreeGPUMaterialNodes", [
  3401.     ("ntree", ctypes.c_void_p, 1),
  3402.     ("mat", ctypes.c_void_p, 1),],
  3403.     ctypes.c_void_p )
  3404.  
  3405. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  3406. #class CompBuf(ctypes.Structure): pass      # typedef or forward reference #
  3407. ntreeCompositTagRender = _c_external_function(      "ntreeCompositTagRender", [
  3408.     ("sce", ctypes.c_void_p, 1),],
  3409.     ctypes.c_void_p )
  3410.  
  3411. ntreeCompositTagAnimated = _c_external_function(        "ntreeCompositTagAnimated", [
  3412.     ("ntree", ctypes.c_void_p, 1),],
  3413.     ctypes.c_int )
  3414.  
  3415. ntreeCompositTagGenerators = _c_external_function(      "ntreeCompositTagGenerators", [
  3416.     ("ntree", ctypes.c_void_p, 1),],
  3417.     ctypes.c_void_p )
  3418.  
  3419. ntreeCompositForceHidden = _c_external_function(        "ntreeCompositForceHidden", [
  3420.     ("ntree", ctypes.c_void_p, 1),
  3421.     ("scene", ctypes.c_void_p, 1),],
  3422.     ctypes.c_void_p )
  3423.  
  3424. free_compbuf = _c_external_function(        "free_compbuf", [
  3425.     ("cbuf", ctypes.c_void_p, 1),],
  3426.     ctypes.c_void_p )
  3427.  
  3428. #class TexResult(ctypes.Structure): pass        # typedef or forward reference #
  3429. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  3430. ntreeTexTagAnimated = _c_external_function(     "ntreeTexTagAnimated", [
  3431.     ("ntree", ctypes.c_void_p, 1),],
  3432.     ctypes.c_int )
  3433.  
  3434. ntreeTexSetPreviewFlag = _c_external_function(      "ntreeTexSetPreviewFlag", [
  3435.     ("None", ctypes.c_int, 1),],
  3436.     ctypes.c_void_p )
  3437.  
  3438. ntreeTexExecTree = _c_external_function(        "ntreeTexExecTree", [
  3439.     ("ntree", ctypes.c_void_p, 1),
  3440.     ("target", ctypes.c_void_p, 1),
  3441.     ("coord", ctypes.POINTER( ctypes.c_float ), 1),
  3442.     ("dxt", ctypes.POINTER( ctypes.c_float ), 1),
  3443.     ("dyt", ctypes.POINTER( ctypes.c_float ), 1),
  3444.     ("osatex", ctypes.c_int, 1),
  3445.     ("thread", ctypes.c_short, 1),
  3446.     ("tex", ctypes.c_void_p, 1),
  3447.     ("which_output", ctypes.c_short, 1),
  3448.     ("cfra", ctypes.c_int, 1),
  3449.     ("preview", ctypes.c_int, 1),
  3450.     ("shi", ctypes.c_void_p, 1),
  3451.     ("mtex", ctypes.c_void_p, 1),],
  3452.     ctypes.c_int )
  3453.  
  3454. ntreeTexCheckCyclics = _c_external_function(        "ntreeTexCheckCyclics", [
  3455.     ("ntree", ctypes.c_void_p, 1),],
  3456.     ctypes.c_void_p )
  3457.  
  3458. ntreeTexOutputMenu = _c_external_function(      "ntreeTexOutputMenu", [
  3459.     ("ntree", ctypes.c_void_p, 1),],
  3460.     ctypes.c_char )
  3461.  
  3462. init_nodesystem = _c_external_function(     "init_nodesystem", [],
  3463.     ctypes.c_void_p )
  3464.  
  3465. free_nodesystem = _c_external_function(     "free_nodesystem", [],
  3466.     ctypes.c_void_p )
  3467.  
  3468. clear_scene_in_nodes = _c_external_function(        "clear_scene_in_nodes", [
  3469.     ("bmain", ctypes.c_void_p, 1),
  3470.     ("sce", ctypes.c_void_p, 1),],
  3471.     ctypes.c_void_p )
  3472.  
  3473. #class wmWindowManager(ctypes.Structure): pass      # typedef or forward reference #
  3474. #class wmWindow(ctypes.Structure): pass     # typedef or forward reference #
  3475. #class wmEvent(ctypes.Structure): pass      # typedef or forward reference #
  3476. #class wmGesture(ctypes.Structure): pass        # typedef or forward reference #
  3477. #class wmOperatorType(ctypes.Structure): pass       # typedef or forward reference #
  3478. #class wmOperator(ctypes.Structure): pass       # typedef or forward reference #
  3479. #class wmKeyMap(ctypes.Structure): pass     # typedef or forward reference #
  3480. #class wmKeyConfig(ctypes.Structure): pass      # typedef or forward reference #
  3481. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  3482. #class wmLocal(ctypes.Structure): pass      # typedef or forward reference #
  3483. #class bScreen(ctypes.Structure): pass      # typedef or forward reference #
  3484. #class uiBlock(ctypes.Structure): pass      # typedef or forward reference #
  3485. #class wmSubWindow(ctypes.Structure): pass      # typedef or forward reference #
  3486. #class wmTimer(ctypes.Structure): pass      # typedef or forward reference #
  3487. #class StructRNA(ctypes.Structure): pass        # typedef or forward reference #
  3488. #class PointerRNA(ctypes.Structure): pass       # typedef or forward reference #
  3489. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  3490. #class Report(ctypes.Structure): pass       # typedef or forward reference #
  3491. #class uiLayout(ctypes.Structure): pass     # typedef or forward reference #
  3492. ReportType = {
  3493.     "RPT_DEBUG" : 1,
  3494.     "RPT_INFO" : 2,
  3495.     "RPT_OPERATOR" : 4,
  3496.     "RPT_WARNING" : 8,
  3497.     "RPT_ERROR" : 16,
  3498.     "RPT_ERROR_INVALID_INPUT" : 32,
  3499.     "RPT_ERROR_INVALID_CONTEXT" : 64,
  3500.     "RPT_ERROR_OUT_OF_MEMORY" : 128,
  3501. }
  3502.  
  3503. ReportListFlags = {
  3504.     "RPT_PRINT" : 1,
  3505.     "RPT_STORE" : 2,
  3506.     "RPT_FREE" : 4,
  3507. }
  3508.  
  3509. class Report(ctypes.Structure): _fields_=[
  3510.     ( "next", ctypes.c_void_p ),
  3511.     ( "prev", ctypes.c_void_p ),
  3512.     ( "type", ctypes.c_short ),
  3513.     ( "flag", ctypes.c_short ),
  3514.     ( "len", ctypes.c_int ),
  3515.     ( "typestr", ctypes.c_char_p ),
  3516.     ( "message", ctypes.c_char_p ),]
  3517.  
  3518. class ReportList(ctypes.Structure): _fields_=[
  3519.     ( "list", ctypes.c_void_p ),
  3520.     ( "printlevel", ctypes.c_int ),
  3521.     ( "storelevel", ctypes.c_int ),
  3522.     ( "flag", ctypes.c_int ),
  3523.     ( "pad", ctypes.c_int ),
  3524.     ( "reporttimer", ctypes.c_void_p ),]
  3525.  
  3526. class ReportTimerInfo(ctypes.Structure): _fields_=[
  3527.     ( "col", ctypes.c_float ),
  3528.     ( "greyscale", ctypes.c_float ),
  3529.     ( "widthfac", ctypes.c_float ),]
  3530.  
  3531. class wmWindowManager(ctypes.Structure): _fields_=[
  3532.     ( "id", ctypes.c_void_p ),
  3533.     ( "windrawable", ctypes.c_void_p ),
  3534.     ( "winactive", ctypes.c_void_p ),
  3535.     ( "windows", ctypes.c_void_p ),
  3536.     ( "initialized", ctypes.c_int ),
  3537.     ( "file_saved", ctypes.c_short ),
  3538.     ( "op_undo_depth", ctypes.c_short ),
  3539.     ( "operators", ctypes.c_void_p ),
  3540.     ( "queue", ctypes.c_void_p ),
  3541.     ( "reports", ctypes.c_void_p ),
  3542.     ( "jobs", ctypes.c_void_p ),
  3543.     ( "paintcursors", ctypes.c_void_p ),
  3544.     ( "drags", ctypes.c_void_p ),
  3545.     ( "keyconfigs", ctypes.c_void_p ),
  3546.     ( "defaultconf", ctypes.c_void_p ),
  3547.     ( "timers", ctypes.c_void_p ),
  3548.     ( "autosavetimer", ctypes.c_void_p ),]
  3549.  
  3550. class wmWindow(ctypes.Structure): _fields_=[
  3551.     ( "next", ctypes.c_void_p ),
  3552.     ( "prev", ctypes.c_void_p ),
  3553.     ( "ghostwin", ctypes.POINTER( ctypes.c_void_p ) ),
  3554.     ( "winid", ctypes.c_int ),
  3555.     ( "grabcursor", ctypes.c_short ),
  3556.     ( "pad", ctypes.c_short ),
  3557.     ( "screen", ctypes.c_void_p ),
  3558.     ( "newscreen", ctypes.c_void_p ),
  3559.     ( "screenname", ctypes.c_char ),
  3560.     ( "posx", ctypes.c_short ),
  3561.     ( "posy", ctypes.c_short ),
  3562.     ( "sizex", ctypes.c_short ),
  3563.     ( "sizey", ctypes.c_short ),
  3564.     ( "windowstate", ctypes.c_short ),
  3565.     ( "monitor", ctypes.c_short ),
  3566.     ( "active", ctypes.c_short ),
  3567.     ( "cursor", ctypes.c_short ),
  3568.     ( "lastcursor", ctypes.c_short ),
  3569.     ( "addmousemove", ctypes.c_short ),
  3570.     ( "pad2", ctypes.c_short ),
  3571.     ( "eventstate", ctypes.c_void_p ),
  3572.     ( "curswin", ctypes.c_void_p ),
  3573.     ( "tweak", ctypes.c_void_p ),
  3574.     ( "drawmethod", ctypes.c_int ),
  3575.     ( "drawfail", ctypes.c_int ),
  3576.     ( "drawdata", ctypes.POINTER( ctypes.c_void_p ) ),
  3577.     ( "queue", ctypes.c_void_p ),
  3578.     ( "handlers", ctypes.c_void_p ),
  3579.     ( "modalhandlers", ctypes.c_void_p ),
  3580.     ( "subwindows", ctypes.c_void_p ),
  3581.     ( "gesture", ctypes.c_void_p ),]
  3582.  
  3583. class wmOperatorTypeMacro(ctypes.Structure): _fields_=[
  3584.     ( "next", ctypes.c_void_p ),
  3585.     ( "prev", ctypes.c_void_p ),
  3586.     ( "idname", ctypes.c_char ),
  3587.     ( "properties", ctypes.c_void_p ),
  3588.     ( "ptr", ctypes.c_void_p ),]
  3589.  
  3590. class wmKeyMapItem(ctypes.Structure): _fields_=[
  3591.     ( "next", ctypes.c_void_p ),
  3592.     ( "prev", ctypes.c_void_p ),
  3593.     ( "idname", ctypes.c_char ),
  3594.     ( "properties", ctypes.c_void_p ),
  3595.     ( "propvalue", ctypes.c_short ),
  3596.     ( "type", ctypes.c_short ),
  3597.     ( "val", ctypes.c_short ),
  3598.     ( "shift", ctypes.c_short ),
  3599.     ( "ctrl", ctypes.c_short ),
  3600.     ( "alt", ctypes.c_short ),
  3601.     ( "oskey", ctypes.c_short ),
  3602.     ( "keymodifier", ctypes.c_short ),
  3603.     ( "flag", ctypes.c_short ),
  3604.     ( "maptype", ctypes.c_short ),
  3605.     ( "id", ctypes.c_short ),
  3606.     ( "pad", ctypes.c_short ),
  3607.     ( "ptr", ctypes.c_void_p ),]
  3608.  
  3609. class wmKeyMap(ctypes.Structure): _fields_=[
  3610.     ( "next", ctypes.c_void_p ),
  3611.     ( "prev", ctypes.c_void_p ),
  3612.     ( "items", ctypes.c_void_p ),
  3613.     ( "idname", ctypes.c_char ),
  3614.     ( "spaceid", ctypes.c_short ),
  3615.     ( "regionid", ctypes.c_short ),
  3616.     ( "flag", ctypes.c_short ),
  3617.     ( "kmi_id", ctypes.c_short ),
  3618.     ( "poll", ctypes.c_void_p ),
  3619.     ( "modal_items", ctypes.POINTER( ctypes.c_void_p ) ),]
  3620.  
  3621. class wmKeyConfig(ctypes.Structure): _fields_=[
  3622.     ( "next", ctypes.c_void_p ),
  3623.     ( "prev", ctypes.c_void_p ),
  3624.     ( "idname", ctypes.c_char ),
  3625.     ( "basename", ctypes.c_char ),
  3626.     ( "keymaps", ctypes.c_void_p ),
  3627.     ( "actkeymap", ctypes.c_int ),
  3628.     ( "flag", ctypes.c_int ),]
  3629.  
  3630. class wmOperator(ctypes.Structure): _fields_=[
  3631.     ( "next", ctypes.c_void_p ),
  3632.     ( "prev", ctypes.c_void_p ),
  3633.     ( "idname", ctypes.c_char ),
  3634.     ( "properties", ctypes.c_void_p ),
  3635.     ( "type", ctypes.c_void_p ),
  3636.     ( "customdata", ctypes.POINTER( ctypes.c_void_p ) ),
  3637.     ( "py_instance", ctypes.POINTER( ctypes.c_void_p ) ),
  3638.     ( "ptr", ctypes.c_void_p ),
  3639.     ( "reports", ctypes.c_void_p ),
  3640.     ( "macro", ctypes.c_void_p ),
  3641.     ( "opm", ctypes.c_void_p ),
  3642.     ( "layout", ctypes.c_void_p ),
  3643.     ( "flag", ctypes.c_short ),
  3644.     ( "pad", ctypes.c_short ),]
  3645.  
  3646. wmRadialControlMode = {
  3647.     "WM_RADIALCONTROL_SIZE" : 0,
  3648.     "WM_RADIALCONTROL_STRENGTH" : 1,
  3649.     "WM_RADIALCONTROL_ANGLE" : 2,
  3650. }
  3651.  
  3652. BKE_reports_init = _c_external_function(        "BKE_reports_init", [
  3653.     ("reports", ctypes.c_void_p, 1),
  3654.     ("flag", ctypes.c_int, 1),],
  3655.     ctypes.c_void_p )
  3656.  
  3657. BKE_reports_clear = _c_external_function(       "BKE_reports_clear", [
  3658.     ("reports", ctypes.c_void_p, 1),],
  3659.     ctypes.c_void_p )
  3660.  
  3661. BKE_report = _c_external_function(      "BKE_report", [
  3662.     ("reports", ctypes.c_void_p, 1),
  3663.     ("type", ctypes.c_void_p, 1),
  3664.     ("message", ctypes.c_char_p, 1),],
  3665.     ctypes.c_void_p )
  3666.  
  3667. BKE_reportf = _c_external_function(     "BKE_reportf", [
  3668.     ("reports", ctypes.c_void_p, 1),
  3669.     ("type", ctypes.c_void_p, 1),
  3670.     ("format", ctypes.c_char_p, 1),],
  3671.     ctypes.c_void_p )
  3672.  
  3673. BKE_reports_prepend = _c_external_function(     "BKE_reports_prepend", [
  3674.     ("reports", ctypes.c_void_p, 1),
  3675.     ("prepend", ctypes.c_char_p, 1),],
  3676.     ctypes.c_void_p )
  3677.  
  3678. BKE_reports_prependf = _c_external_function(        "BKE_reports_prependf", [
  3679.     ("reports", ctypes.c_void_p, 1),
  3680.     ("prepend", ctypes.c_char_p, 1),],
  3681.     ctypes.c_void_p )
  3682.  
  3683. BKE_report_print_level = _c_external_function(      "BKE_report_print_level", [
  3684.     ("reports", ctypes.c_void_p, 1),],
  3685.     ctypes.c_void_p )
  3686.  
  3687. BKE_report_print_level_set = _c_external_function(      "BKE_report_print_level_set", [
  3688.     ("reports", ctypes.c_void_p, 1),
  3689.     ("level", ctypes.c_void_p, 1),],
  3690.     ctypes.c_void_p )
  3691.  
  3692. BKE_report_store_level = _c_external_function(      "BKE_report_store_level", [
  3693.     ("reports", ctypes.c_void_p, 1),],
  3694.     ctypes.c_void_p )
  3695.  
  3696. BKE_report_store_level_set = _c_external_function(      "BKE_report_store_level_set", [
  3697.     ("reports", ctypes.c_void_p, 1),
  3698.     ("level", ctypes.c_void_p, 1),],
  3699.     ctypes.c_void_p )
  3700.  
  3701. BKE_reports_string = _c_external_function(      "BKE_reports_string", [
  3702.     ("reports", ctypes.c_void_p, 1),
  3703.     ("level", ctypes.c_void_p, 1),],
  3704.     ctypes.c_char )
  3705.  
  3706. BKE_reports_print = _c_external_function(       "BKE_reports_print", [
  3707.     ("reports", ctypes.c_void_p, 1),
  3708.     ("level", ctypes.c_void_p, 1),],
  3709.     ctypes.c_void_p )
  3710.  
  3711. BKE_reports_last_displayable = _c_external_function(        "BKE_reports_last_displayable", [
  3712.     ("reports", ctypes.c_void_p, 1),],
  3713.     ctypes.c_void_p )
  3714.  
  3715. #class PackedFile(ctypes.Structure): pass       # typedef or forward reference #
  3716. #class bSound(ctypes.Structure): pass       # typedef or forward reference #
  3717. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  3718. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  3719. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  3720. #class Sequence(ctypes.Structure): pass     # typedef or forward reference #
  3721. sound_init_once = _c_external_function(     "sound_init_once", [],
  3722.     ctypes.c_void_p )
  3723.  
  3724. sound_init = _c_external_function(      "sound_init", [
  3725.     ("main", ctypes.c_void_p, 1),],
  3726.     ctypes.c_void_p )
  3727.  
  3728. sound_exit = _c_external_function(      "sound_exit", [],
  3729.     ctypes.c_void_p )
  3730.  
  3731. sound_force_device = _c_external_function(      "sound_force_device", [
  3732.     ("device", ctypes.c_int, 1),],
  3733.     ctypes.c_void_p )
  3734.  
  3735. sound_define_from_str = _c_external_function(       "sound_define_from_str", [
  3736.     ("str", ctypes.c_char_p, 1),],
  3737.     ctypes.c_int )
  3738.  
  3739. sound_new_file = _c_external_function(      "sound_new_file", [
  3740.     ("main", ctypes.c_void_p, 1),
  3741.     ("filename", ctypes.c_char_p, 1),],
  3742.     ctypes.c_void_p )
  3743.  
  3744. sound_delete = _c_external_function(        "sound_delete", [
  3745.     ("C", ctypes.c_void_p, 1),
  3746.     ("sound", ctypes.c_void_p, 1),],
  3747.     ctypes.c_void_p )
  3748.  
  3749. sound_cache = _c_external_function(     "sound_cache", [
  3750.     ("sound", ctypes.c_void_p, 1),
  3751.     ("ignore", ctypes.c_int, 1),],
  3752.     ctypes.c_void_p )
  3753.  
  3754. sound_delete_cache = _c_external_function(      "sound_delete_cache", [
  3755.     ("sound", ctypes.c_void_p, 1),],
  3756.     ctypes.c_void_p )
  3757.  
  3758. sound_load = _c_external_function(      "sound_load", [
  3759.     ("main", ctypes.c_void_p, 1),
  3760.     ("sound", ctypes.c_void_p, 1),],
  3761.     ctypes.c_void_p )
  3762.  
  3763. sound_free = _c_external_function(      "sound_free", [
  3764.     ("sound", ctypes.c_void_p, 1),],
  3765.     ctypes.c_void_p )
  3766.  
  3767. sound_create_scene = _c_external_function(      "sound_create_scene", [
  3768.     ("scene", ctypes.c_void_p, 1),],
  3769.     ctypes.c_void_p )
  3770.  
  3771. sound_destroy_scene = _c_external_function(     "sound_destroy_scene", [
  3772.     ("scene", ctypes.c_void_p, 1),],
  3773.     ctypes.c_void_p )
  3774.  
  3775. sound_scene_add_scene_sound = _c_external_function(     "sound_scene_add_scene_sound", [
  3776.     ("scene", ctypes.c_void_p, 1),
  3777.     ("sequence", ctypes.c_void_p, 1),
  3778.     ("startframe", ctypes.c_int, 1),
  3779.     ("endframe", ctypes.c_int, 1),
  3780.     ("frameskip", ctypes.c_int, 1),],
  3781.     ctypes.c_void_p )
  3782.  
  3783. sound_add_scene_sound = _c_external_function(       "sound_add_scene_sound", [
  3784.     ("scene", ctypes.c_void_p, 1),
  3785.     ("sequence", ctypes.c_void_p, 1),
  3786.     ("startframe", ctypes.c_int, 1),
  3787.     ("endframe", ctypes.c_int, 1),
  3788.     ("frameskip", ctypes.c_int, 1),],
  3789.     ctypes.c_void_p )
  3790.  
  3791. sound_remove_scene_sound = _c_external_function(        "sound_remove_scene_sound", [
  3792.     ("scene", ctypes.c_void_p, 1),
  3793.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),],
  3794.     ctypes.c_void_p )
  3795.  
  3796. sound_mute_scene_sound = _c_external_function(      "sound_mute_scene_sound", [
  3797.     ("scene", ctypes.c_void_p, 1),
  3798.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  3799.     ("mute", ctypes.c_char, 1),],
  3800.     ctypes.c_void_p )
  3801.  
  3802. sound_move_scene_sound = _c_external_function(      "sound_move_scene_sound", [
  3803.     ("scene", ctypes.c_void_p, 1),
  3804.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  3805.     ("startframe", ctypes.c_int, 1),
  3806.     ("endframe", ctypes.c_int, 1),
  3807.     ("frameskip", ctypes.c_int, 1),],
  3808.     ctypes.c_void_p )
  3809.  
  3810. sound_play_scene = _c_external_function(        "sound_play_scene", [
  3811.     ("scene", ctypes.c_void_p, 1),],
  3812.     ctypes.c_void_p )
  3813.  
  3814. sound_stop_scene = _c_external_function(        "sound_stop_scene", [
  3815.     ("scene", ctypes.c_void_p, 1),],
  3816.     ctypes.c_void_p )
  3817.  
  3818. sound_seek_scene = _c_external_function(        "sound_seek_scene", [
  3819.     ("C", ctypes.c_void_p, 1),],
  3820.     ctypes.c_void_p )
  3821.  
  3822. sound_sync_scene = _c_external_function(        "sound_sync_scene", [
  3823.     ("scene", ctypes.c_void_p, 1),],
  3824.     ctypes.c_float )
  3825.  
  3826. sound_scene_playing = _c_external_function(     "sound_scene_playing", [
  3827.     ("scene", ctypes.c_void_p, 1),],
  3828.     ctypes.c_int )
  3829.  
  3830. sound_read_sound_buffer = _c_external_function(     "sound_read_sound_buffer", [
  3831.     ("sound", ctypes.c_void_p, 1),
  3832.     ("buffer", ctypes.POINTER( ctypes.c_float ), 1),
  3833.     ("length", ctypes.c_int, 1),
  3834.     ("start", ctypes.c_float, 1),
  3835.     ("end", ctypes.c_float, 1),],
  3836.     ctypes.c_int )
  3837.  
  3838. #class ImBuf(ctypes.Structure): pass        # typedef or forward reference #
  3839. #class anim(ctypes.Structure): pass     # typedef or forward reference #
  3840. IMB_init = _c_external_function(        "IMB_init", [],
  3841.     ctypes.c_void_p )
  3842.  
  3843. IMB_exit = _c_external_function(        "IMB_exit", [],
  3844.     ctypes.c_void_p )
  3845.  
  3846. IMB_ibImageFromMemory = _c_external_function(       "IMB_ibImageFromMemory", [
  3847.     ("mem", ctypes.c_char_p, 1),
  3848.     ("size", ctypes.c_size_t, 1),
  3849.     ("flags", ctypes.c_int, 1),],
  3850.     ctypes.c_void_p )
  3851.  
  3852. IMB_testiffname = _c_external_function(     "IMB_testiffname", [
  3853.     ("naam", ctypes.c_char_p, 1),
  3854.     ("flags", ctypes.c_int, 1),],
  3855.     ctypes.c_void_p )
  3856.  
  3857. IMB_loadiffname = _c_external_function(     "IMB_loadiffname", [
  3858.     ("naam", ctypes.c_char_p, 1),
  3859.     ("flags", ctypes.c_int, 1),],
  3860.     ctypes.c_void_p )
  3861.  
  3862. IMB_freeImBuf = _c_external_function(       "IMB_freeImBuf", [
  3863.     ("ibuf", ctypes.c_void_p, 1),],
  3864.     ctypes.c_void_p )
  3865.  
  3866. IMB_allocImBuf = _c_external_function(      "IMB_allocImBuf", [
  3867.     ("x", ctypes.c_short, 1),
  3868.     ("y", ctypes.c_short, 1),
  3869.     ("d", ctypes.c_char, 1),
  3870.     ("flags", ctypes.c_int, 1),
  3871.     ("bitmap", ctypes.c_char, 1),],
  3872.     ctypes.c_void_p )
  3873.  
  3874. IMB_refImBuf = _c_external_function(        "IMB_refImBuf", [
  3875.     ("ibuf", ctypes.c_void_p, 1),],
  3876.     ctypes.c_void_p )
  3877.  
  3878. IMB_cache_limiter_insert = _c_external_function(        "IMB_cache_limiter_insert", [
  3879.     ("i", ctypes.c_void_p, 1),],
  3880.     ctypes.c_void_p )
  3881.  
  3882. IMB_cache_limiter_unmanage = _c_external_function(      "IMB_cache_limiter_unmanage", [
  3883.     ("i", ctypes.c_void_p, 1),],
  3884.     ctypes.c_void_p )
  3885.  
  3886. IMB_cache_limiter_touch = _c_external_function(     "IMB_cache_limiter_touch", [
  3887.     ("i", ctypes.c_void_p, 1),],
  3888.     ctypes.c_void_p )
  3889.  
  3890. IMB_cache_limiter_ref = _c_external_function(       "IMB_cache_limiter_ref", [
  3891.     ("i", ctypes.c_void_p, 1),],
  3892.     ctypes.c_void_p )
  3893.  
  3894. IMB_cache_limiter_unref = _c_external_function(     "IMB_cache_limiter_unref", [
  3895.     ("i", ctypes.c_void_p, 1),],
  3896.     ctypes.c_void_p )
  3897.  
  3898. IMB_cache_limiter_get_refcount = _c_external_function(      "IMB_cache_limiter_get_refcount", [
  3899.     ("i", ctypes.c_void_p, 1),],
  3900.     ctypes.c_int )
  3901.  
  3902. IMB_free_cache_limiter = _c_external_function(      "IMB_free_cache_limiter", [],
  3903.     ctypes.c_void_p )
  3904.  
  3905. IMB_dupImBuf = _c_external_function(        "IMB_dupImBuf", [
  3906.     ("ibuf1", ctypes.c_void_p, 1),],
  3907.     ctypes.c_void_p )
  3908.  
  3909. addzbufImBuf = _c_external_function(        "addzbufImBuf", [
  3910.     ("ibuf", ctypes.c_void_p, 1),],
  3911.     ctypes.c_short )
  3912.  
  3913. addzbuffloatImBuf = _c_external_function(       "addzbuffloatImBuf", [
  3914.     ("ibuf", ctypes.c_void_p, 1),],
  3915.     ctypes.c_short )
  3916.  
  3917. IMB_BlendMode = {
  3918.     "IMB_BLEND_MIX" : 0,
  3919.     "IMB_BLEND_ADD" : 1,
  3920.     "IMB_BLEND_SUB" : 2,
  3921.     "IMB_BLEND_MUL" : 3,
  3922.     "IMB_BLEND_LIGHTEN" : 4,
  3923.     "IMB_BLEND_DARKEN" : 5,
  3924.     "IMB_BLEND_ERASE_ALPHA" : 6,
  3925.     "IMB_BLEND_ADD_ALPHA" : 7,
  3926.     "IMB_BLEND_COPY" : 4096,
  3927.     "IMB_BLEND_COPY_RGB" : 4097,
  3928.     "IMB_BLEND_COPY_ALPHA" : 4098,
  3929. }
  3930.  
  3931. IMB_blend_color = _c_external_function(     "IMB_blend_color", [
  3932.     ("src1", ctypes.c_int, 1),
  3933.     ("src2", ctypes.c_int, 1),
  3934.     ("fac", ctypes.c_int, 1),
  3935.     ("mode", ctypes.c_void_p, 1),],
  3936.     ctypes.c_int )
  3937.  
  3938. IMB_blend_color_float = _c_external_function(       "IMB_blend_color_float", [
  3939.     ("dst", ctypes.POINTER( ctypes.c_float ), 1),
  3940.     ("src1", ctypes.POINTER( ctypes.c_float ), 1),
  3941.     ("src2", ctypes.POINTER( ctypes.c_float ), 1),
  3942.     ("fac", ctypes.c_float, 1),
  3943.     ("mode", ctypes.c_void_p, 1),],
  3944.     ctypes.c_void_p )
  3945.  
  3946. IMB_rectclip = _c_external_function(        "IMB_rectclip", [
  3947.     ("dbuf", ctypes.c_void_p, 1),
  3948.     ("sbuf", ctypes.c_void_p, 1),
  3949.     ("destx", ctypes.POINTER( ctypes.c_int ), 1),
  3950.     ("desty", ctypes.POINTER( ctypes.c_int ), 1),
  3951.     ("srcx", ctypes.POINTER( ctypes.c_int ), 1),
  3952.     ("srcy", ctypes.POINTER( ctypes.c_int ), 1),
  3953.     ("width", ctypes.POINTER( ctypes.c_int ), 1),
  3954.     ("height", ctypes.POINTER( ctypes.c_int ), 1),],
  3955.     ctypes.c_void_p )
  3956.  
  3957. IMB_rectcpy = _c_external_function(     "IMB_rectcpy", [
  3958.     ("drect", ctypes.c_void_p, 1),
  3959.     ("srect", ctypes.c_void_p, 1),
  3960.     ("destx", ctypes.c_int, 1),
  3961.     ("desty", ctypes.c_int, 1),
  3962.     ("srcx", ctypes.c_int, 1),
  3963.     ("srcy", ctypes.c_int, 1),
  3964.     ("width", ctypes.c_int, 1),
  3965.     ("height", ctypes.c_int, 1),],
  3966.     ctypes.c_void_p )
  3967.  
  3968. IMB_rectblend = _c_external_function(       "IMB_rectblend", [
  3969.     ("dbuf", ctypes.c_void_p, 1),
  3970.     ("sbuf", ctypes.c_void_p, 1),
  3971.     ("destx", ctypes.c_int, 1),
  3972.     ("desty", ctypes.c_int, 1),
  3973.     ("srcx", ctypes.c_int, 1),
  3974.     ("srcy", ctypes.c_int, 1),
  3975.     ("width", ctypes.c_int, 1),
  3976.     ("height", ctypes.c_int, 1),
  3977.     ("mode", ctypes.c_void_p, 1),],
  3978.     ctypes.c_void_p )
  3979.  
  3980. IMB_anim_get_duration = _c_external_function(       "IMB_anim_get_duration", [
  3981.     ("anim", ctypes.c_void_p, 1),],
  3982.     ctypes.c_int )
  3983.  
  3984. IMB_open_anim = _c_external_function(       "IMB_open_anim", [
  3985.     ("name", ctypes.c_char_p, 1),
  3986.     ("ib_flags", ctypes.c_int, 1),],
  3987.     ctypes.c_void_p )
  3988.  
  3989. IMB_close_anim = _c_external_function(      "IMB_close_anim", [
  3990.     ("anim", ctypes.c_void_p, 1),],
  3991.     ctypes.c_void_p )
  3992.  
  3993. ismovie = _c_external_function(     "ismovie", [
  3994.     ("name", ctypes.c_char_p, 1),],
  3995.     ctypes.c_int )
  3996.  
  3997. IMB_anim_set_preseek = _c_external_function(        "IMB_anim_set_preseek", [
  3998.     ("anim", ctypes.c_void_p, 1),
  3999.     ("preseek", ctypes.c_int, 1),],
  4000.     ctypes.c_void_p )
  4001.  
  4002. IMB_anim_get_preseek = _c_external_function(        "IMB_anim_get_preseek", [
  4003.     ("anim", ctypes.c_void_p, 1),],
  4004.     ctypes.c_int )
  4005.  
  4006. IMB_anim_absolute = _c_external_function(       "IMB_anim_absolute", [
  4007.     ("anim", ctypes.c_void_p, 1),
  4008.     ("position", ctypes.c_int, 1),],
  4009.     ctypes.c_void_p )
  4010.  
  4011. IMB_anim_previewframe = _c_external_function(       "IMB_anim_previewframe", [
  4012.     ("anim", ctypes.c_void_p, 1),],
  4013.     ctypes.c_void_p )
  4014.  
  4015. IMB_free_anim_ibuf = _c_external_function(      "IMB_free_anim_ibuf", [
  4016.     ("anim", ctypes.c_void_p, 1),],
  4017.     ctypes.c_void_p )
  4018.  
  4019. IMB_free_anim = _c_external_function(       "IMB_free_anim", [
  4020.     ("anim", ctypes.c_void_p, 1),],
  4021.     ctypes.c_void_p )
  4022.  
  4023. IMB_filter = _c_external_function(      "IMB_filter", [
  4024.     ("ibuf", ctypes.c_void_p, 1),],
  4025.     ctypes.c_void_p )
  4026.  
  4027. IMB_filterN = _c_external_function(     "IMB_filterN", [
  4028.     ("out", ctypes.c_void_p, 1),
  4029.     ("in", ctypes.c_void_p, 1),],
  4030.     ctypes.c_void_p )
  4031.  
  4032. IMB_filter_extend = _c_external_function(       "IMB_filter_extend", [
  4033.     ("ibuf", ctypes.c_void_p, 1),
  4034.     ("mask", ctypes.c_char_p, 1),],
  4035.     ctypes.c_void_p )
  4036.  
  4037. IMB_makemipmap = _c_external_function(      "IMB_makemipmap", [
  4038.     ("ibuf", ctypes.c_void_p, 1),
  4039.     ("use_filter", ctypes.c_int, 1),],
  4040.     ctypes.c_void_p )
  4041.  
  4042. IMB_getmipmap = _c_external_function(       "IMB_getmipmap", [
  4043.     ("ibuf", ctypes.c_void_p, 1),
  4044.     ("level", ctypes.c_int, 1),],
  4045.     ctypes.c_void_p )
  4046.  
  4047. IMB_tile_cache_params = _c_external_function(       "IMB_tile_cache_params", [
  4048.     ("totthread", ctypes.c_int, 1),
  4049.     ("maxmem", ctypes.c_int, 1),],
  4050.     ctypes.c_void_p )
  4051.  
  4052. IMB_gettile = _c_external_function(     "IMB_gettile", [
  4053.     ("ibuf", ctypes.c_void_p, 1),
  4054.     ("tx", ctypes.c_int, 1),
  4055.     ("ty", ctypes.c_int, 1),
  4056.     ("thread", ctypes.c_int, 1),],
  4057.     ctypes.c_int )
  4058.  
  4059. IMB_tiles_to_rect = _c_external_function(       "IMB_tiles_to_rect", [
  4060.     ("ibuf", ctypes.c_void_p, 1),],
  4061.     ctypes.c_void_p )
  4062.  
  4063. IMB_filtery = _c_external_function(     "IMB_filtery", [
  4064.     ("ibuf", ctypes.c_void_p, 1),],
  4065.     ctypes.c_void_p )
  4066.  
  4067. IMB_onehalf = _c_external_function(     "IMB_onehalf", [
  4068.     ("ibuf1", ctypes.c_void_p, 1),],
  4069.     ctypes.c_void_p )
  4070.  
  4071. IMB_scaleImBuf = _c_external_function(      "IMB_scaleImBuf", [
  4072.     ("ibuf", ctypes.c_void_p, 1),
  4073.     ("newx", ctypes.c_short, 1),
  4074.     ("newy", ctypes.c_short, 1),],
  4075.     ctypes.c_void_p )
  4076.  
  4077. IMB_scalefastImBuf = _c_external_function(      "IMB_scalefastImBuf", [
  4078.     ("ibuf", ctypes.c_void_p, 1),
  4079.     ("newx", ctypes.c_short, 1),
  4080.     ("newy", ctypes.c_short, 1),],
  4081.     ctypes.c_void_p )
  4082.  
  4083. IMB_saveiff = _c_external_function(     "IMB_saveiff", [
  4084.     ("ibuf", ctypes.c_void_p, 1),
  4085.     ("naam", ctypes.c_char_p, 1),
  4086.     ("flags", ctypes.c_int, 1),],
  4087.     ctypes.c_short )
  4088.  
  4089. IMB_png_encode = _c_external_function(      "IMB_png_encode", [
  4090.     ("ibuf", ctypes.c_void_p, 1),
  4091.     ("file", ctypes.c_int, 1),
  4092.     ("flags", ctypes.c_int, 1),],
  4093.     ctypes.c_short )
  4094.  
  4095. IMB_ispic = _c_external_function(       "IMB_ispic", [
  4096.     ("name", ctypes.c_char_p, 1),],
  4097.     ctypes.c_int )
  4098.  
  4099. IMB_isanim = _c_external_function(      "IMB_isanim", [
  4100.     ("name", ctypes.c_char_p, 1),],
  4101.     ctypes.c_int )
  4102.  
  4103. imb_get_anim_type = _c_external_function(       "imb_get_anim_type", [
  4104.     ("name", ctypes.c_char_p, 1),],
  4105.     ctypes.c_int )
  4106.  
  4107. IMB_de_interlace = _c_external_function(        "IMB_de_interlace", [
  4108.     ("ibuf", ctypes.c_void_p, 1),],
  4109.     ctypes.c_void_p )
  4110.  
  4111. IMB_interlace = _c_external_function(       "IMB_interlace", [
  4112.     ("ibuf", ctypes.c_void_p, 1),],
  4113.     ctypes.c_void_p )
  4114.  
  4115. IMB_rect_from_float = _c_external_function(     "IMB_rect_from_float", [
  4116.     ("ibuf", ctypes.c_void_p, 1),],
  4117.     ctypes.c_void_p )
  4118.  
  4119. IMB_float_from_rect = _c_external_function(     "IMB_float_from_rect", [
  4120.     ("ibuf", ctypes.c_void_p, 1),],
  4121.     ctypes.c_void_p )
  4122.  
  4123. IMB_float_from_rect_simple = _c_external_function(      "IMB_float_from_rect_simple", [
  4124.     ("ibuf", ctypes.c_void_p, 1),],
  4125.     ctypes.c_void_p )
  4126.  
  4127. IMB_convert_profile = _c_external_function(     "IMB_convert_profile", [
  4128.     ("ibuf", ctypes.c_void_p, 1),
  4129.     ("profile", ctypes.c_int, 1),],
  4130.     ctypes.c_void_p )
  4131.  
  4132. IMB_convert_rgba_to_abgr = _c_external_function(        "IMB_convert_rgba_to_abgr", [
  4133.     ("ibuf", ctypes.c_void_p, 1),],
  4134.     ctypes.c_void_p )
  4135.  
  4136. IMB_convert_bgra_to_rgba = _c_external_function(        "IMB_convert_bgra_to_rgba", [
  4137.     ("size", ctypes.c_int, 1),
  4138.     ("rect", ctypes.POINTER( ctypes.c_int ), 1),],
  4139.     ctypes.c_void_p )
  4140.  
  4141. bicubic_interpolation = _c_external_function(       "bicubic_interpolation", [
  4142.     ("in", ctypes.c_void_p, 1),
  4143.     ("out", ctypes.c_void_p, 1),
  4144.     ("u", ctypes.c_float, 1),
  4145.     ("v", ctypes.c_float, 1),
  4146.     ("xout", ctypes.c_int, 1),
  4147.     ("yout", ctypes.c_int, 1),],
  4148.     ctypes.c_void_p )
  4149.  
  4150. neareast_interpolation = _c_external_function(      "neareast_interpolation", [
  4151.     ("in", ctypes.c_void_p, 1),
  4152.     ("out", ctypes.c_void_p, 1),
  4153.     ("u", ctypes.c_float, 1),
  4154.     ("v", ctypes.c_float, 1),
  4155.     ("xout", ctypes.c_int, 1),
  4156.     ("yout", ctypes.c_int, 1),],
  4157.     ctypes.c_void_p )
  4158.  
  4159. bilinear_interpolation = _c_external_function(      "bilinear_interpolation", [
  4160.     ("in", ctypes.c_void_p, 1),
  4161.     ("out", ctypes.c_void_p, 1),
  4162.     ("u", ctypes.c_float, 1),
  4163.     ("v", ctypes.c_float, 1),
  4164.     ("xout", ctypes.c_int, 1),
  4165.     ("yout", ctypes.c_int, 1),],
  4166.     ctypes.c_void_p )
  4167.  
  4168. bicubic_interpolation_color = _c_external_function(     "bicubic_interpolation_color", [
  4169.     ("in", ctypes.c_void_p, 1),
  4170.     ("col", ctypes.c_char_p, 1),
  4171.     ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4172.     ("u", ctypes.c_float, 1),
  4173.     ("v", ctypes.c_float, 1),],
  4174.     ctypes.c_void_p )
  4175.  
  4176. neareast_interpolation_color = _c_external_function(        "neareast_interpolation_color", [
  4177.     ("in", ctypes.c_void_p, 1),
  4178.     ("col", ctypes.c_char_p, 1),
  4179.     ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4180.     ("u", ctypes.c_float, 1),
  4181.     ("v", ctypes.c_float, 1),],
  4182.     ctypes.c_void_p )
  4183.  
  4184. bilinear_interpolation_color = _c_external_function(        "bilinear_interpolation_color", [
  4185.     ("in", ctypes.c_void_p, 1),
  4186.     ("col", ctypes.c_char_p, 1),
  4187.     ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4188.     ("u", ctypes.c_float, 1),
  4189.     ("v", ctypes.c_float, 1),],
  4190.     ctypes.c_void_p )
  4191.  
  4192. bilinear_interpolation_color_wrap = _c_external_function(       "bilinear_interpolation_color_wrap", [
  4193.     ("in", ctypes.c_void_p, 1),
  4194.     ("col", ctypes.c_char_p, 1),
  4195.     ("col_float", ctypes.POINTER( ctypes.c_float ), 1),
  4196.     ("u", ctypes.c_float, 1),
  4197.     ("v", ctypes.c_float, 1),],
  4198.     ctypes.c_void_p )
  4199.  
  4200. IMB_loadiffmem = _c_external_function(      "IMB_loadiffmem", [
  4201.     ("mem", ctypes.POINTER( ctypes.c_int ), 1),
  4202.     ("flags", ctypes.c_int, 1),],
  4203.     ctypes.c_void_p )
  4204.  
  4205. IMB_loadifffile = _c_external_function(     "IMB_loadifffile", [
  4206.     ("file", ctypes.c_int, 1),
  4207.     ("flags", ctypes.c_int, 1),],
  4208.     ctypes.c_void_p )
  4209.  
  4210. IMB_half_x = _c_external_function(      "IMB_half_x", [
  4211.     ("ibuf1", ctypes.c_void_p, 1),],
  4212.     ctypes.c_void_p )
  4213.  
  4214. IMB_double_fast_x = _c_external_function(       "IMB_double_fast_x", [
  4215.     ("ibuf1", ctypes.c_void_p, 1),],
  4216.     ctypes.c_void_p )
  4217.  
  4218. IMB_double_x = _c_external_function(        "IMB_double_x", [
  4219.     ("ibuf1", ctypes.c_void_p, 1),],
  4220.     ctypes.c_void_p )
  4221.  
  4222. IMB_half_y = _c_external_function(      "IMB_half_y", [
  4223.     ("ibuf1", ctypes.c_void_p, 1),],
  4224.     ctypes.c_void_p )
  4225.  
  4226. IMB_double_fast_y = _c_external_function(       "IMB_double_fast_y", [
  4227.     ("ibuf1", ctypes.c_void_p, 1),],
  4228.     ctypes.c_void_p )
  4229.  
  4230. IMB_double_y = _c_external_function(        "IMB_double_y", [
  4231.     ("ibuf1", ctypes.c_void_p, 1),],
  4232.     ctypes.c_void_p )
  4233.  
  4234. IMB_flipx = _c_external_function(       "IMB_flipx", [
  4235.     ("ibuf", ctypes.c_void_p, 1),],
  4236.     ctypes.c_void_p )
  4237.  
  4238. IMB_flipy = _c_external_function(       "IMB_flipy", [
  4239.     ("ibuf", ctypes.c_void_p, 1),],
  4240.     ctypes.c_void_p )
  4241.  
  4242. IMB_premultiply_alpha = _c_external_function(       "IMB_premultiply_alpha", [
  4243.     ("ibuf", ctypes.c_void_p, 1),],
  4244.     ctypes.c_void_p )
  4245.  
  4246. IMB_freezbufImBuf = _c_external_function(       "IMB_freezbufImBuf", [
  4247.     ("ibuf", ctypes.c_void_p, 1),],
  4248.     ctypes.c_void_p )
  4249.  
  4250. IMB_freezbuffloatImBuf = _c_external_function(      "IMB_freezbuffloatImBuf", [
  4251.     ("ibuf", ctypes.c_void_p, 1),],
  4252.     ctypes.c_void_p )
  4253.  
  4254. IMB_rectfill = _c_external_function(        "IMB_rectfill", [
  4255.     ("drect", ctypes.c_void_p, 1),
  4256.     ("col", ctypes.c_float, 1),],
  4257.     ctypes.c_void_p )
  4258.  
  4259. IMB_rectfill_area = _c_external_function(       "IMB_rectfill_area", [
  4260.     ("ibuf", ctypes.c_void_p, 1),
  4261.     ("col", ctypes.POINTER( ctypes.c_float ), 1),
  4262.     ("x1", ctypes.c_int, 1),
  4263.     ("y1", ctypes.c_int, 1),
  4264.     ("x2", ctypes.c_int, 1),
  4265.     ("y2", ctypes.c_int, 1),],
  4266.     ctypes.c_void_p )
  4267.  
  4268. buf_rectfill_area = _c_external_function(       "buf_rectfill_area", [
  4269.     ("rect", ctypes.c_char_p, 1),
  4270.     ("rectf", ctypes.POINTER( ctypes.c_float ), 1),
  4271.     ("width", ctypes.c_int, 1),
  4272.     ("height", ctypes.c_int, 1),
  4273.     ("col", ctypes.POINTER( ctypes.c_float ), 1),
  4274.     ("x1", ctypes.c_int, 1),
  4275.     ("y1", ctypes.c_int, 1),
  4276.     ("x2", ctypes.c_int, 1),
  4277.     ("y2", ctypes.c_int, 1),],
  4278.     ctypes.c_void_p )
  4279.  
  4280. IMB_metadata_change_field = _c_external_function(       "IMB_metadata_change_field", [
  4281.     ("img", ctypes.c_void_p, 1),
  4282.     ("key", ctypes.c_char_p, 1),
  4283.     ("field", ctypes.c_char_p, 1),],
  4284.     ctypes.c_int )
  4285.  
  4286. imb_addrectImBuf = _c_external_function(        "imb_addrectImBuf", [
  4287.     ("ibuf", ctypes.c_void_p, 1),],
  4288.     ctypes.c_short )
  4289.  
  4290. imb_freerectImBuf = _c_external_function(       "imb_freerectImBuf", [
  4291.     ("ibuf", ctypes.c_void_p, 1),],
  4292.     ctypes.c_void_p )
  4293.  
  4294. imb_addrectfloatImBuf = _c_external_function(       "imb_addrectfloatImBuf", [
  4295.     ("ibuf", ctypes.c_void_p, 1),],
  4296.     ctypes.c_short )
  4297.  
  4298. imb_freerectfloatImBuf = _c_external_function(      "imb_freerectfloatImBuf", [
  4299.     ("ibuf", ctypes.c_void_p, 1),],
  4300.     ctypes.c_void_p )
  4301.  
  4302. imb_freemipmapImBuf = _c_external_function(     "imb_freemipmapImBuf", [
  4303.     ("ibuf", ctypes.c_void_p, 1),],
  4304.     ctypes.c_void_p )
  4305.  
  4306. imb_addtilesImBuf = _c_external_function(       "imb_addtilesImBuf", [
  4307.     ("ibuf", ctypes.c_void_p, 1),],
  4308.     ctypes.c_short )
  4309.  
  4310. imb_freetilesImBuf = _c_external_function(      "imb_freetilesImBuf", [
  4311.     ("ibuf", ctypes.c_void_p, 1),],
  4312.     ctypes.c_void_p )
  4313.  
  4314. #bprogname                          <TypeDecl=char>
  4315. #btempdir                           <TypeDecl=char>
  4316. #class Text(ctypes.Structure): pass     # typedef or forward reference #
  4317. #class ID(ctypes.Structure): pass       # typedef or forward reference #
  4318. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  4319. #class ChannelDriver(ctypes.Structure): pass        # typedef or forward reference #
  4320. #class ListBase(ctypes.Structure): pass     # typedef or forward reference #
  4321. #class SpaceText(ctypes.Structure): pass        # typedef or forward reference #
  4322. #class SpaceScript(ctypes.Structure): pass      # typedef or forward reference #
  4323. #class ScrArea(ctypes.Structure): pass      # typedef or forward reference #
  4324. #class bScreen(ctypes.Structure): pass      # typedef or forward reference #
  4325. #class bConstraint(ctypes.Structure): pass      # typedef or forward reference #
  4326. #class bPythonConstraint(ctypes.Structure): pass        # typedef or forward reference #
  4327. #class bConstraintOb(ctypes.Structure): pass        # typedef or forward reference #
  4328. #class bConstraintTarget(ctypes.Structure): pass        # typedef or forward reference #
  4329. #class Script(ctypes.Structure): pass       # typedef or forward reference #
  4330. #class BPyMenu(ctypes.Structure): pass      # typedef or forward reference #
  4331. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  4332. #class bContextDataResult(ctypes.Structure): pass       # typedef or forward reference #
  4333. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  4334. BPY_pyconstraint_eval = _c_external_function(       "BPY_pyconstraint_eval", [
  4335.     ("con", ctypes.c_void_p, 1),
  4336.     ("cob", ctypes.c_void_p, 1),
  4337.     ("targets", ctypes.c_void_p, 1),],
  4338.     ctypes.c_void_p )
  4339.  
  4340. BPY_pyconstraint_target = _c_external_function(     "BPY_pyconstraint_target", [
  4341.     ("con", ctypes.c_void_p, 1),
  4342.     ("ct", ctypes.c_void_p, 1),],
  4343.     ctypes.c_void_p )
  4344.  
  4345. BPY_pyconstraint_update = _c_external_function(     "BPY_pyconstraint_update", [
  4346.     ("owner", ctypes.c_void_p, 1),
  4347.     ("con", ctypes.c_void_p, 1),],
  4348.     ctypes.c_void_p )
  4349.  
  4350. BPY_is_pyconstraint = _c_external_function(     "BPY_is_pyconstraint", [
  4351.     ("text", ctypes.c_void_p, 1),],
  4352.     ctypes.c_int )
  4353.  
  4354. BPY_start_python = _c_external_function(        "BPY_start_python", [
  4355.     ("argc", ctypes.c_int, 1),
  4356.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),],
  4357.     ctypes.c_void_p )
  4358.  
  4359. BPY_end_python = _c_external_function(      "BPY_end_python", [],
  4360.     ctypes.c_void_p )
  4361.  
  4362. BPY_run_python_script = _c_external_function(       "BPY_run_python_script", [
  4363.     ("C", ctypes.c_void_p, 1),
  4364.     ("filename", ctypes.c_char_p, 1),
  4365.     ("text", ctypes.c_void_p, 1),
  4366.     ("reports", ctypes.c_void_p, 1),],
  4367.     ctypes.c_int )
  4368.  
  4369. BPY_run_script_space_draw = _c_external_function(       "BPY_run_script_space_draw", [
  4370.     ("C", ctypes.c_void_p, 1),
  4371.     ("sc", ctypes.c_void_p, 1),],
  4372.     ctypes.c_int )
  4373.  
  4374. BPY_update_modules = _c_external_function(      "BPY_update_modules", [],
  4375.     ctypes.c_void_p )
  4376.  
  4377. BPY_context_get = _c_external_function(     "BPY_context_get", [
  4378.     ("C", ctypes.c_void_p, 1),
  4379.     ("member", ctypes.c_char_p, 1),
  4380.     ("result", ctypes.c_void_p, 1),],
  4381.     ctypes.c_int )
  4382.  
  4383. BPY_free_compiled_text = _c_external_function(      "BPY_free_compiled_text", [
  4384.     ("text", ctypes.c_void_p, 1),],
  4385.     ctypes.c_void_p )
  4386.  
  4387. BPY_eval_driver = _c_external_function(     "BPY_eval_driver", [
  4388.     ("driver", ctypes.c_void_p, 1),],
  4389.     ctypes.c_float )
  4390.  
  4391. BPY_eval_button = _c_external_function(     "BPY_eval_button", [
  4392.     ("C", ctypes.c_void_p, 1),
  4393.     ("expr", ctypes.c_char_p, 1),
  4394.     ("value", ctypes.POINTER( ctypes.c_double ), 1),],
  4395.     ctypes.c_int )
  4396.  
  4397. BPY_eval_string = _c_external_function(     "BPY_eval_string", [
  4398.     ("C", ctypes.c_void_p, 1),
  4399.     ("expr", ctypes.c_char_p, 1),],
  4400.     ctypes.c_int )
  4401.  
  4402. BPY_call_importloader = _c_external_function(       "BPY_call_importloader", [
  4403.     ("name", ctypes.c_char_p, 1),],
  4404.     ctypes.c_int )
  4405.  
  4406. BPY_DECREF = _c_external_function(      "BPY_DECREF", [],
  4407.     ctypes.c_void_p )
  4408.  
  4409. BPY_set_context = _c_external_function(     "BPY_set_context", [
  4410.     ("C", ctypes.c_void_p, 1),],
  4411.     ctypes.c_void_p )
  4412.  
  4413. BPY_load_user_modules = _c_external_function(       "BPY_load_user_modules", [
  4414.     ("C", ctypes.c_void_p, 1),],
  4415.     ctypes.c_void_p )
  4416.  
  4417. #class bNodeTree(ctypes.Structure): pass        # typedef or forward reference #
  4418. #class Image(ctypes.Structure): pass        # typedef or forward reference #
  4419. #class Main(ctypes.Structure): pass     # typedef or forward reference #
  4420. #class NodeBlurData(ctypes.Structure): pass     # typedef or forward reference #
  4421. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  4422. #class RenderData(ctypes.Structure): pass       # typedef or forward reference #
  4423. #class RenderEngine(ctypes.Structure): pass     # typedef or forward reference #
  4424. #class RenderEngineType(ctypes.Structure): pass     # typedef or forward reference #
  4425. #class RenderResult(ctypes.Structure): pass     # typedef or forward reference #
  4426. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  4427. #class ReportList(ctypes.Structure): pass       # typedef or forward reference #
  4428. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  4429. #class SceneRenderLayer(ctypes.Structure): pass     # typedef or forward reference #
  4430. #class Render(ctypes.Structure): pass       # typedef or forward reference #
  4431. class RenderPass(ctypes.Structure): _fields_=[
  4432.     ( "next", ctypes.c_void_p ),
  4433.     ( "prev", ctypes.c_void_p ),
  4434.     ( "passtype", ctypes.c_int ),
  4435.     ( "channels", ctypes.c_int ),
  4436.     ( "name", ctypes.c_char ),
  4437.     ( "chan_id", ctypes.c_char ),
  4438.     ( "rect", ctypes.POINTER( ctypes.c_float ) ),
  4439.     ( "rectx", ctypes.c_int ),
  4440.     ( "recty", ctypes.c_int ),]
  4441.  
  4442. class RenderLayer(ctypes.Structure): _fields_=[
  4443.     ( "next", ctypes.c_void_p ),
  4444.     ( "prev", ctypes.c_void_p ),
  4445.     ( "name", ctypes.c_char ),
  4446.     ( "lay", ctypes.c_int ),
  4447.     ( "lay_zmask", ctypes.c_int ),
  4448.     ( "layflag", ctypes.c_int ),
  4449.     ( "passflag", ctypes.c_int ),
  4450.     ( "pass_xor", ctypes.c_int ),
  4451.     ( "mat_override", ctypes.c_void_p ),
  4452.     ( "light_override", ctypes.c_void_p ),
  4453.     ( "rectf", ctypes.POINTER( ctypes.c_float ) ),
  4454.     ( "acolrect", ctypes.POINTER( ctypes.c_float ) ),
  4455.     ( "scolrect", ctypes.POINTER( ctypes.c_float ) ),
  4456.     ( "rectx", ctypes.c_int ),
  4457.     ( "recty", ctypes.c_int ),
  4458.     ( "passes", ctypes.c_void_p ),]
  4459.  
  4460. class RenderResult(ctypes.Structure): _fields_=[
  4461.     ( "next", ctypes.c_void_p ),
  4462.     ( "prev", ctypes.c_void_p ),
  4463.     ( "rectx", ctypes.c_int ),
  4464.     ( "recty", ctypes.c_int ),
  4465.     ( "crop", ctypes.c_short ),
  4466.     ( "sample_nr", ctypes.c_short ),
  4467.     ( "rect32", ctypes.POINTER( ctypes.c_int ) ),
  4468.     ( "rectf", ctypes.POINTER( ctypes.c_float ) ),
  4469.     ( "rectz", ctypes.POINTER( ctypes.c_float ) ),
  4470.     ( "tilerect", ctypes.c_void_p ),
  4471.     ( "xof", ctypes.c_int ),
  4472.     ( "yof", ctypes.c_int ),
  4473.     ( "layers", ctypes.c_void_p ),
  4474.     ( "renrect", ctypes.c_void_p ),
  4475.     ( "renlay", ctypes.c_void_p ),
  4476.     ( "exrhandle", ctypes.POINTER( ctypes.c_void_p ) ),
  4477.     ( "framenr", ctypes.c_int ),
  4478.     ( "have_combined", ctypes.c_int ),
  4479.     ( "text", ctypes.c_char_p ),]
  4480.  
  4481. class RenderStats(ctypes.Structure): _fields_=[
  4482.     ( "cfra", ctypes.c_int ),
  4483.     ( "totface", ctypes.c_int ),
  4484.     ( "totvert", ctypes.c_int ),
  4485.     ( "totstrand", ctypes.c_int ),
  4486.     ( "tothalo", ctypes.c_int ),
  4487.     ( "totlamp", ctypes.c_int ),
  4488.     ( "totpart", ctypes.c_int ),
  4489.     ( "curfield", ctypes.c_short ),
  4490.     ( "curblur", ctypes.c_short ),
  4491.     ( "curpart", ctypes.c_short ),
  4492.     ( "partsdone", ctypes.c_short ),
  4493.     ( "convertdone", ctypes.c_short ),
  4494.     ( "starttime", ctypes.c_double ),
  4495.     ( "lastframetime", ctypes.c_double ),
  4496.     ( "infostr", ctypes.c_char_p ),
  4497.     ( "statstr", ctypes.c_char_p ),
  4498.     ( "scenename", ctypes.c_char ),]
  4499.  
  4500. RE_NewRender = _c_external_function(        "RE_NewRender", [
  4501.     ("name", ctypes.c_char_p, 1),],
  4502.     ctypes.c_void_p )
  4503.  
  4504. RE_GetRender = _c_external_function(        "RE_GetRender", [
  4505.     ("name", ctypes.c_char_p, 1),],
  4506.     ctypes.c_void_p )
  4507.  
  4508. RE_RenderInProgress = _c_external_function(     "RE_RenderInProgress", [
  4509.     ("re", ctypes.c_void_p, 1),],
  4510.     ctypes.c_int )
  4511.  
  4512. RE_FreeRender = _c_external_function(       "RE_FreeRender", [
  4513.     ("re", ctypes.c_void_p, 1),],
  4514.     ctypes.c_void_p )
  4515.  
  4516. RE_FreeAllRender = _c_external_function(        "RE_FreeAllRender", [],
  4517.     ctypes.c_void_p )
  4518.  
  4519. RE_FreeRenderResult = _c_external_function(     "RE_FreeRenderResult", [
  4520.     ("rr", ctypes.c_void_p, 1),],
  4521.     ctypes.c_void_p )
  4522.  
  4523. RE_AcquireResultRead = _c_external_function(        "RE_AcquireResultRead", [
  4524.     ("re", ctypes.c_void_p, 1),],
  4525.     ctypes.c_void_p )
  4526.  
  4527. RE_AcquireResultWrite = _c_external_function(       "RE_AcquireResultWrite", [
  4528.     ("re", ctypes.c_void_p, 1),],
  4529.     ctypes.c_void_p )
  4530.  
  4531. RE_ReleaseResult = _c_external_function(        "RE_ReleaseResult", [
  4532.     ("re", ctypes.c_void_p, 1),],
  4533.     ctypes.c_void_p )
  4534.  
  4535. RE_AcquireResultImage = _c_external_function(       "RE_AcquireResultImage", [
  4536.     ("re", ctypes.c_void_p, 1),
  4537.     ("rr", ctypes.c_void_p, 1),],
  4538.     ctypes.c_void_p )
  4539.  
  4540. RE_ReleaseResultImage = _c_external_function(       "RE_ReleaseResultImage", [
  4541.     ("re", ctypes.c_void_p, 1),],
  4542.     ctypes.c_void_p )
  4543.  
  4544. RE_SwapResult = _c_external_function(       "RE_SwapResult", [
  4545.     ("re", ctypes.c_void_p, 1),
  4546.     ("rr", ctypes.c_void_p, 1),],
  4547.     ctypes.c_void_p )
  4548.  
  4549. RE_GetStats = _c_external_function(     "RE_GetStats", [
  4550.     ("re", ctypes.c_void_p, 1),],
  4551.     ctypes.c_void_p )
  4552.  
  4553. RE_ResultGet32 = _c_external_function(      "RE_ResultGet32", [
  4554.     ("re", ctypes.c_void_p, 1),
  4555.     ("rect", ctypes.POINTER( ctypes.c_int ), 1),],
  4556.     ctypes.c_void_p )
  4557.  
  4558. RE_GetRenderLayer = _c_external_function(       "RE_GetRenderLayer", [
  4559.     ("rr", ctypes.c_void_p, 1),
  4560.     ("name", ctypes.c_char_p, 1),],
  4561.     ctypes.c_void_p )
  4562.  
  4563. RE_RenderLayerGetPass = _c_external_function(       "RE_RenderLayerGetPass", [
  4564.     ("rl", ctypes.c_void_p, 1),
  4565.     ("passtype", ctypes.c_int, 1),],
  4566.     ctypes.c_float )
  4567.  
  4568. RE_InitState = _c_external_function(        "RE_InitState", [
  4569.     ("re", ctypes.c_void_p, 1),
  4570.     ("source", ctypes.c_void_p, 1),
  4571.     ("rd", ctypes.c_void_p, 1),
  4572.     ("srl", ctypes.c_void_p, 1),
  4573.     ("winx", ctypes.c_int, 1),
  4574.     ("winy", ctypes.c_int, 1),
  4575.     ("disprect", ctypes.c_void_p, 1),],
  4576.     ctypes.c_void_p )
  4577.  
  4578. RE_SetDispRect = _c_external_function(      "RE_SetDispRect", [
  4579.     ("re", ctypes.c_void_p, 1),
  4580.     ("disprect", ctypes.c_void_p, 1),],
  4581.     ctypes.c_void_p )
  4582.  
  4583. RE_SetCamera = _c_external_function(        "RE_SetCamera", [
  4584.     ("re", ctypes.c_void_p, 1),
  4585.     ("camera", ctypes.c_void_p, 1),],
  4586.     ctypes.c_void_p )
  4587.  
  4588. RE_SetWindow = _c_external_function(        "RE_SetWindow", [
  4589.     ("re", ctypes.c_void_p, 1),
  4590.     ("viewplane", ctypes.c_void_p, 1),
  4591.     ("clipsta", ctypes.c_float, 1),
  4592.     ("clipend", ctypes.c_float, 1),],
  4593.     ctypes.c_void_p )
  4594.  
  4595. RE_SetOrtho = _c_external_function(     "RE_SetOrtho", [
  4596.     ("re", ctypes.c_void_p, 1),
  4597.     ("viewplane", ctypes.c_void_p, 1),
  4598.     ("clipsta", ctypes.c_float, 1),
  4599.     ("clipend", ctypes.c_float, 1),],
  4600.     ctypes.c_void_p )
  4601.  
  4602. RE_SetPixelSize = _c_external_function(     "RE_SetPixelSize", [
  4603.     ("re", ctypes.c_void_p, 1),
  4604.     ("pixsize", ctypes.c_float, 1),],
  4605.     ctypes.c_void_p )
  4606.  
  4607. RE_SetView = _c_external_function(      "RE_SetView", [
  4608.     ("re", ctypes.c_void_p, 1),
  4609.     ("mat", ctypes.c_float, 1),],
  4610.     ctypes.c_void_p )
  4611.  
  4612. RE_Database_FromScene = _c_external_function(       "RE_Database_FromScene", [
  4613.     ("re", ctypes.c_void_p, 1),
  4614.     ("bmain", ctypes.c_void_p, 1),
  4615.     ("scene", ctypes.c_void_p, 1),
  4616.     ("lay", ctypes.c_int, 1),
  4617.     ("use_camera_view", ctypes.c_int, 1),],
  4618.     ctypes.c_void_p )
  4619.  
  4620. RE_Database_Free = _c_external_function(        "RE_Database_Free", [
  4621.     ("re", ctypes.c_void_p, 1),],
  4622.     ctypes.c_void_p )
  4623.  
  4624. RE_DataBase_ApplyWindow = _c_external_function(     "RE_DataBase_ApplyWindow", [
  4625.     ("re", ctypes.c_void_p, 1),],
  4626.     ctypes.c_void_p )
  4627.  
  4628. RE_set_max_threads = _c_external_function(      "RE_set_max_threads", [
  4629.     ("threads", ctypes.c_int, 1),],
  4630.     ctypes.c_void_p )
  4631.  
  4632. RE_init_threadcount = _c_external_function(     "RE_init_threadcount", [
  4633.     ("re", ctypes.c_void_p, 1),],
  4634.     ctypes.c_void_p )
  4635.  
  4636. RE_TileProcessor = _c_external_function(        "RE_TileProcessor", [
  4637.     ("re", ctypes.c_void_p, 1),],
  4638.     ctypes.c_void_p )
  4639.  
  4640. RE_BlenderFrame = _c_external_function(     "RE_BlenderFrame", [
  4641.     ("re", ctypes.c_void_p, 1),
  4642.     ("bmain", ctypes.c_void_p, 1),
  4643.     ("scene", ctypes.c_void_p, 1),
  4644.     ("srl", ctypes.c_void_p, 1),
  4645.     ("lay", ctypes.c_int, 1),
  4646.     ("frame", ctypes.c_int, 1),],
  4647.     ctypes.c_void_p )
  4648.  
  4649. RE_BlenderAnim = _c_external_function(      "RE_BlenderAnim", [
  4650.     ("re", ctypes.c_void_p, 1),
  4651.     ("bmain", ctypes.c_void_p, 1),
  4652.     ("scene", ctypes.c_void_p, 1),
  4653.     ("lay", ctypes.c_int, 1),
  4654.     ("sfra", ctypes.c_int, 1),
  4655.     ("efra", ctypes.c_int, 1),
  4656.     ("tfra", ctypes.c_int, 1),
  4657.     ("reports", ctypes.c_void_p, 1),],
  4658.     ctypes.c_void_p )
  4659.  
  4660. RE_PreviewRender = _c_external_function(        "RE_PreviewRender", [
  4661.     ("re", ctypes.c_void_p, 1),
  4662.     ("bmain", ctypes.c_void_p, 1),
  4663.     ("scene", ctypes.c_void_p, 1),],
  4664.     ctypes.c_void_p )
  4665.  
  4666. RE_ReadRenderResult = _c_external_function(     "RE_ReadRenderResult", [
  4667.     ("scene", ctypes.c_void_p, 1),
  4668.     ("scenode", ctypes.c_void_p, 1),],
  4669.     ctypes.c_void_p )
  4670.  
  4671. RE_WriteRenderResult = _c_external_function(        "RE_WriteRenderResult", [
  4672.     ("rr", ctypes.c_void_p, 1),
  4673.     ("filename", ctypes.c_char_p, 1),
  4674.     ("compress", ctypes.c_int, 1),],
  4675.     ctypes.c_void_p )
  4676.  
  4677. RE_MultilayerConvert = _c_external_function(        "RE_MultilayerConvert", [
  4678.     ("exrhandle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4679.     ("rectx", ctypes.c_int, 1),
  4680.     ("recty", ctypes.c_int, 1),],
  4681.     ctypes.c_void_p )
  4682.  
  4683. RE_MergeFullSample = _c_external_function(      "RE_MergeFullSample", [
  4684.     ("re", ctypes.c_void_p, 1),
  4685.     ("sce", ctypes.c_void_p, 1),
  4686.     ("ntree", ctypes.c_void_p, 1),],
  4687.     ctypes.c_void_p )
  4688.  
  4689. RE_make_stars = _c_external_function(       "RE_make_stars", [
  4690.     ("re", ctypes.c_void_p, 1),
  4691.     ("scenev3d", ctypes.c_void_p, 1),
  4692.     ("initfunc", ctypes.c_void_p, 1),
  4693.     ("vertexfunc", ctypes.c_void_p, 1),
  4694.     ("termfunc", ctypes.c_void_p, 1),],
  4695.     ctypes.c_void_p )
  4696.  
  4697. RE_display_init_cb = _c_external_function(      "RE_display_init_cb", [
  4698.     ("re", ctypes.c_void_p, 1),
  4699.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4700.     ("f", ctypes.c_void_p, 1),],
  4701.     ctypes.c_void_p )
  4702.  
  4703. RE_display_clear_cb = _c_external_function(     "RE_display_clear_cb", [
  4704.     ("re", ctypes.c_void_p, 1),
  4705.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4706.     ("f", ctypes.c_void_p, 1),],
  4707.     ctypes.c_void_p )
  4708.  
  4709. RE_display_draw_cb = _c_external_function(      "RE_display_draw_cb", [
  4710.     ("re", ctypes.c_void_p, 1),
  4711.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4712.     ("f", ctypes.c_void_p, 1),],
  4713.     ctypes.c_void_p )
  4714.  
  4715. RE_stats_draw_cb = _c_external_function(        "RE_stats_draw_cb", [
  4716.     ("re", ctypes.c_void_p, 1),
  4717.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4718.     ("f", ctypes.c_void_p, 1),],
  4719.     ctypes.c_void_p )
  4720.  
  4721. RE_progress_cb = _c_external_function(      "RE_progress_cb", [
  4722.     ("re", ctypes.c_void_p, 1),
  4723.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4724.     ("f", ctypes.c_void_p, 1),],
  4725.     ctypes.c_void_p )
  4726.  
  4727. RE_test_break_cb = _c_external_function(        "RE_test_break_cb", [
  4728.     ("re", ctypes.c_void_p, 1),
  4729.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4730.     ("f", ctypes.c_void_p, 1),],
  4731.     ctypes.c_void_p )
  4732.  
  4733. RE_error_cb = _c_external_function(     "RE_error_cb", [
  4734.     ("re", ctypes.c_void_p, 1),
  4735.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),
  4736.     ("f", ctypes.c_void_p, 1),],
  4737.     ctypes.c_void_p )
  4738.  
  4739. RE_filter_value = _c_external_function(     "RE_filter_value", [
  4740.     ("type", ctypes.c_int, 1),
  4741.     ("x", ctypes.c_float, 1),],
  4742.     ctypes.c_float )
  4743.  
  4744. RE_zbuf_accumulate_vecblur = _c_external_function(      "RE_zbuf_accumulate_vecblur", [
  4745.     ("nbd", ctypes.c_void_p, 1),
  4746.     ("xsize", ctypes.c_int, 1),
  4747.     ("ysize", ctypes.c_int, 1),
  4748.     ("newrect", ctypes.POINTER( ctypes.c_float ), 1),
  4749.     ("imgrect", ctypes.POINTER( ctypes.c_float ), 1),
  4750.     ("vecbufrect", ctypes.POINTER( ctypes.c_float ), 1),
  4751.     ("zbufrect", ctypes.POINTER( ctypes.c_float ), 1),],
  4752.     ctypes.c_void_p )
  4753.  
  4754. RE_Database_Baking = _c_external_function(      "RE_Database_Baking", [
  4755.     ("re", ctypes.c_void_p, 1),
  4756.     ("bmain", ctypes.c_void_p, 1),
  4757.     ("scene", ctypes.c_void_p, 1),
  4758.     ("lay", ctypes.c_int, 1),
  4759.     ("type", ctypes.c_int, 1),
  4760.     ("actob", ctypes.c_void_p, 1),],
  4761.     ctypes.c_void_p )
  4762.  
  4763. RE_DataBase_GetView = _c_external_function(     "RE_DataBase_GetView", [
  4764.     ("re", ctypes.c_void_p, 1),
  4765.     ("mat", ctypes.c_float, 1),],
  4766.     ctypes.c_void_p )
  4767.  
  4768. RE_GetCameraWindow = _c_external_function(      "RE_GetCameraWindow", [
  4769.     ("re", ctypes.c_void_p, 1),
  4770.     ("camera", ctypes.c_void_p, 1),
  4771.     ("frame", ctypes.c_int, 1),
  4772.     ("mat", ctypes.c_float, 1),],
  4773.     ctypes.c_void_p )
  4774.  
  4775. RE_GetScene = _c_external_function(     "RE_GetScene", [
  4776.     ("re", ctypes.c_void_p, 1),],
  4777.     ctypes.c_void_p )
  4778.  
  4779. #R_engines                          <TypeDecl=ListBase>
  4780. class RenderEngineType(ctypes.Structure): _fields_=[
  4781.     ( "next", ctypes.c_void_p ),
  4782.     ( "prev", ctypes.c_void_p ),
  4783.     ( "idname", ctypes.c_char ),
  4784.     ( "name", ctypes.c_char ),
  4785.     ( "flag", ctypes.c_int ),
  4786.     ( "render", ctypes.c_void_p ),
  4787.     ( "ext", ctypes.c_void_p ),]
  4788.  
  4789. class RenderEngine(ctypes.Structure): _fields_=[
  4790.     ( "type", ctypes.c_void_p ),
  4791.     ( "re", ctypes.c_void_p ),
  4792.     ( "fullresult", ctypes.c_void_p ),]
  4793.  
  4794. RE_layer_load_from_file = _c_external_function(     "RE_layer_load_from_file", [
  4795.     ("layer", ctypes.c_void_p, 1),
  4796.     ("reports", ctypes.c_void_p, 1),
  4797.     ("filename", ctypes.c_char_p, 1),],
  4798.     ctypes.c_void_p )
  4799.  
  4800. RE_result_load_from_file = _c_external_function(        "RE_result_load_from_file", [
  4801.     ("result", ctypes.c_void_p, 1),
  4802.     ("reports", ctypes.c_void_p, 1),
  4803.     ("filename", ctypes.c_char_p, 1),],
  4804.     ctypes.c_void_p )
  4805.  
  4806. RE_engine_begin_result = _c_external_function(      "RE_engine_begin_result", [
  4807.     ("engine", ctypes.c_void_p, 1),
  4808.     ("x", ctypes.c_int, 1),
  4809.     ("y", ctypes.c_int, 1),
  4810.     ("w", ctypes.c_int, 1),
  4811.     ("h", ctypes.c_int, 1),],
  4812.     ctypes.c_void_p )
  4813.  
  4814. RE_engine_update_result = _c_external_function(     "RE_engine_update_result", [
  4815.     ("engine", ctypes.c_void_p, 1),
  4816.     ("result", ctypes.c_void_p, 1),],
  4817.     ctypes.c_void_p )
  4818.  
  4819. RE_engine_end_result = _c_external_function(        "RE_engine_end_result", [
  4820.     ("engine", ctypes.c_void_p, 1),
  4821.     ("result", ctypes.c_void_p, 1),],
  4822.     ctypes.c_void_p )
  4823.  
  4824. RE_engine_test_break = _c_external_function(        "RE_engine_test_break", [
  4825.     ("engine", ctypes.c_void_p, 1),],
  4826.     ctypes.c_int )
  4827.  
  4828. RE_engine_update_stats = _c_external_function(      "RE_engine_update_stats", [
  4829.     ("engine", ctypes.c_void_p, 1),
  4830.     ("stats", ctypes.c_char_p, 1),
  4831.     ("info", ctypes.c_char_p, 1),],
  4832.     ctypes.c_void_p )
  4833.  
  4834. RE_engines_init = _c_external_function(     "RE_engines_init", [],
  4835.     ctypes.c_void_p )
  4836.  
  4837. RE_engines_exit = _c_external_function(     "RE_engines_exit", [],
  4838.     ctypes.c_void_p )
  4839.  
  4840. #datatoc_startup_blend_size                         <TypeDecl=int>
  4841. #datatoc_startup_blend                          <TypeDecl=char>
  4842. #datatoc_blenderbuttons_size                            <TypeDecl=int>
  4843. #datatoc_blenderbuttons                         <TypeDecl=char>
  4844. #datatoc_prvicons_size                          <TypeDecl=int>
  4845. #datatoc_prvicons                           <TypeDecl=char>
  4846. #datatoc_splash_png_size                            <TypeDecl=int>
  4847. #datatoc_splash_png                         <TypeDecl=char>
  4848. #datatoc_Bfont_size                         <TypeDecl=int>
  4849. #datatoc_Bfont                          <TypeDecl=char>
  4850. #datatoc_bfont_ttf_size                         <TypeDecl=int>
  4851. #datatoc_bfont_ttf                          <TypeDecl=char>
  4852. #datatoc_bmonofont_ttf_size                         <TypeDecl=int>
  4853. #datatoc_bmonofont_ttf                          <TypeDecl=char>
  4854. #datatoc_add_png_size                           <TypeDecl=int>
  4855. #datatoc_add_png                            <TypeDecl=char>
  4856. #datatoc_blob_png_size                          <TypeDecl=int>
  4857. #datatoc_blob_png                           <TypeDecl=char>
  4858. #datatoc_blur_png_size                          <TypeDecl=int>
  4859. #datatoc_blur_png                           <TypeDecl=char>
  4860. #datatoc_clay_png_size                          <TypeDecl=int>
  4861. #datatoc_clay_png                           <TypeDecl=char>
  4862. #datatoc_clone_png_size                         <TypeDecl=int>
  4863. #datatoc_clone_png                          <TypeDecl=char>
  4864. #datatoc_crease_png_size                            <TypeDecl=int>
  4865. #datatoc_crease_png                         <TypeDecl=char>
  4866. #datatoc_darken_png_size                            <TypeDecl=int>
  4867. #datatoc_darken_png                         <TypeDecl=char>
  4868. #datatoc_draw_png_size                          <TypeDecl=int>
  4869. #datatoc_draw_png                           <TypeDecl=char>
  4870. #datatoc_fill_png_size                          <TypeDecl=int>
  4871. #datatoc_fill_png                           <TypeDecl=char>
  4872. #datatoc_flatten_png_size                           <TypeDecl=int>
  4873. #datatoc_flatten_png                            <TypeDecl=char>
  4874. #datatoc_grab_png_size                          <TypeDecl=int>
  4875. #datatoc_grab_png                           <TypeDecl=char>
  4876. #datatoc_inflate_png_size                           <TypeDecl=int>
  4877. #datatoc_inflate_png                            <TypeDecl=char>
  4878. #datatoc_layer_png_size                         <TypeDecl=int>
  4879. #datatoc_layer_png                          <TypeDecl=char>
  4880. #datatoc_lighten_png_size                           <TypeDecl=int>
  4881. #datatoc_lighten_png                            <TypeDecl=char>
  4882. #datatoc_mix_png_size                           <TypeDecl=int>
  4883. #datatoc_mix_png                            <TypeDecl=char>
  4884. #datatoc_multiply_png_size                          <TypeDecl=int>
  4885. #datatoc_multiply_png                           <TypeDecl=char>
  4886. #datatoc_nudge_png_size                         <TypeDecl=int>
  4887. #datatoc_nudge_png                          <TypeDecl=char>
  4888. #datatoc_pinch_png_size                         <TypeDecl=int>
  4889. #datatoc_pinch_png                          <TypeDecl=char>
  4890. #datatoc_scrape_png_size                            <TypeDecl=int>
  4891. #datatoc_scrape_png                         <TypeDecl=char>
  4892. #datatoc_smear_png_size                         <TypeDecl=int>
  4893. #datatoc_smear_png                          <TypeDecl=char>
  4894. #datatoc_smooth_png_size                            <TypeDecl=int>
  4895. #datatoc_smooth_png                         <TypeDecl=char>
  4896. #datatoc_snake_hook_png_size                            <TypeDecl=int>
  4897. #datatoc_snake_hook_png                         <TypeDecl=char>
  4898. #datatoc_soften_png_size                            <TypeDecl=int>
  4899. #datatoc_soften_png                         <TypeDecl=char>
  4900. #datatoc_subtract_png_size                          <TypeDecl=int>
  4901. #datatoc_subtract_png                           <TypeDecl=char>
  4902. #datatoc_texdraw_png_size                           <TypeDecl=int>
  4903. #datatoc_texdraw_png                            <TypeDecl=char>
  4904. #datatoc_thumb_png_size                         <TypeDecl=int>
  4905. #datatoc_thumb_png                          <TypeDecl=char>
  4906. #datatoc_twist_png_size                         <TypeDecl=int>
  4907. #datatoc_twist_png                          <TypeDecl=char>
  4908. #datatoc_vertexdraw_png_size                            <TypeDecl=int>
  4909. #datatoc_vertexdraw_png                         <TypeDecl=char>
  4910. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  4911. #class IDProperty(ctypes.Structure): pass       # typedef or forward reference #
  4912. #class wmEvent(ctypes.Structure): pass      # typedef or forward reference #
  4913. #class wmEventHandler(ctypes.Structure): pass       # typedef or forward reference #
  4914. #class wmGesture(ctypes.Structure): pass        # typedef or forward reference #
  4915. #class wmJob(ctypes.Structure): pass        # typedef or forward reference #
  4916. #class wmNotifier(ctypes.Structure): pass       # typedef or forward reference #
  4917. #class wmOperatorType(ctypes.Structure): pass       # typedef or forward reference #
  4918. #class wmOperator(ctypes.Structure): pass       # typedef or forward reference #
  4919. #class rcti(ctypes.Structure): pass     # typedef or forward reference #
  4920. #class PointerRNA(ctypes.Structure): pass       # typedef or forward reference #
  4921. #class EnumPropertyItem(ctypes.Structure): pass     # typedef or forward reference #
  4922. #class MenuType(ctypes.Structure): pass     # typedef or forward reference #
  4923. #class wmDropBox(ctypes.Structure): pass        # typedef or forward reference #
  4924. #class wmDrag(ctypes.Structure): pass       # typedef or forward reference #
  4925. #class ImBuf(ctypes.Structure): pass        # typedef or forward reference #
  4926. #class wmJob(ctypes.Structure): pass        # typedef or forward reference #
  4927. WM_setprefsize = _c_external_function(      "WM_setprefsize", [
  4928.     ("stax", ctypes.c_int, 1),
  4929.     ("stay", ctypes.c_int, 1),
  4930.     ("sizx", ctypes.c_int, 1),
  4931.     ("sizy", ctypes.c_int, 1),],
  4932.     ctypes.c_void_p )
  4933.  
  4934. WM_setinitialstate_fullscreen = _c_external_function(       "WM_setinitialstate_fullscreen", [],
  4935.     ctypes.c_void_p )
  4936.  
  4937. WM_setinitialstate_normal = _c_external_function(       "WM_setinitialstate_normal", [],
  4938.     ctypes.c_void_p )
  4939.  
  4940. WM_init = _c_external_function(     "WM_init", [
  4941.     ("C", ctypes.c_void_p, 1),
  4942.     ("argc", ctypes.c_int, 1),
  4943.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),],
  4944.     ctypes.c_void_p )
  4945.  
  4946. WM_exit = _c_external_function(     "WM_exit", [
  4947.     ("C", ctypes.c_void_p, 1),],
  4948.     ctypes.c_void_p )
  4949.  
  4950. WM_main = _c_external_function(     "WM_main", [
  4951.     ("C", ctypes.c_void_p, 1),],
  4952.     ctypes.c_void_p )
  4953.  
  4954. WM_init_game = _c_external_function(        "WM_init_game", [
  4955.     ("C", ctypes.c_void_p, 1),],
  4956.     ctypes.c_int )
  4957.  
  4958. WM_init_splash = _c_external_function(      "WM_init_splash", [
  4959.     ("C", ctypes.c_void_p, 1),],
  4960.     ctypes.c_void_p )
  4961.  
  4962. WM_check = _c_external_function(        "WM_check", [
  4963.     ("C", ctypes.c_void_p, 1),],
  4964.     ctypes.c_void_p )
  4965.  
  4966. WM_window_open = _c_external_function(      "WM_window_open", [
  4967.     ("C", ctypes.c_void_p, 1),
  4968.     ("rect", ctypes.c_void_p, 1),],
  4969.     ctypes.c_void_p )
  4970.  
  4971. WM_window_open_temp = _c_external_function(     "WM_window_open_temp", [
  4972.     ("C", ctypes.c_void_p, 1),
  4973.     ("position", ctypes.c_void_p, 1),
  4974.     ("type", ctypes.c_int, 1),],
  4975.     ctypes.c_void_p )
  4976.  
  4977. WM_read_homefile = _c_external_function(        "WM_read_homefile", [
  4978.     ("C", ctypes.c_void_p, 1),
  4979.     ("op", ctypes.c_void_p, 1),],
  4980.     ctypes.c_int )
  4981.  
  4982. WM_write_homefile = _c_external_function(       "WM_write_homefile", [
  4983.     ("C", ctypes.c_void_p, 1),
  4984.     ("op", ctypes.c_void_p, 1),],
  4985.     ctypes.c_int )
  4986.  
  4987. WM_read_file = _c_external_function(        "WM_read_file", [
  4988.     ("C", ctypes.c_void_p, 1),
  4989.     ("name", ctypes.c_char_p, 1),
  4990.     ("reports", ctypes.c_void_p, 1),],
  4991.     ctypes.c_void_p )
  4992.  
  4993. WM_write_file = _c_external_function(       "WM_write_file", [
  4994.     ("C", ctypes.c_void_p, 1),
  4995.     ("target", ctypes.c_char_p, 1),
  4996.     ("fileflags", ctypes.c_int, 1),
  4997.     ("reports", ctypes.c_void_p, 1),
  4998.     ("copy", ctypes.c_int, 1),],
  4999.     ctypes.c_int )
  5000.  
  5001. WM_read_autosavefile = _c_external_function(        "WM_read_autosavefile", [
  5002.     ("C", ctypes.c_void_p, 1),],
  5003.     ctypes.c_void_p )
  5004.  
  5005. WM_autosave_init = _c_external_function(        "WM_autosave_init", [
  5006.     ("wm", ctypes.c_void_p, 1),],
  5007.     ctypes.c_void_p )
  5008.  
  5009. WM_cursor_set = _c_external_function(       "WM_cursor_set", [
  5010.     ("win", ctypes.c_void_p, 1),
  5011.     ("curs", ctypes.c_int, 1),],
  5012.     ctypes.c_void_p )
  5013.  
  5014. WM_cursor_modal = _c_external_function(     "WM_cursor_modal", [
  5015.     ("win", ctypes.c_void_p, 1),
  5016.     ("curs", ctypes.c_int, 1),],
  5017.     ctypes.c_void_p )
  5018.  
  5019. WM_cursor_restore = _c_external_function(       "WM_cursor_restore", [
  5020.     ("win", ctypes.c_void_p, 1),],
  5021.     ctypes.c_void_p )
  5022.  
  5023. WM_cursor_wait = _c_external_function(      "WM_cursor_wait", [
  5024.     ("val", ctypes.c_int, 1),],
  5025.     ctypes.c_void_p )
  5026.  
  5027. WM_cursor_grab = _c_external_function(      "WM_cursor_grab", [
  5028.     ("win", ctypes.c_void_p, 1),
  5029.     ("wrap", ctypes.c_int, 1),
  5030.     ("hide", ctypes.c_int, 1),
  5031.     ("bounds", ctypes.POINTER( ctypes.c_int ), 1),],
  5032.     ctypes.c_void_p )
  5033.  
  5034. WM_cursor_ungrab = _c_external_function(        "WM_cursor_ungrab", [
  5035.     ("win", ctypes.c_void_p, 1),],
  5036.     ctypes.c_void_p )
  5037.  
  5038. WM_timecursor = _c_external_function(       "WM_timecursor", [
  5039.     ("win", ctypes.c_void_p, 1),
  5040.     ("nr", ctypes.c_int, 1),],
  5041.     ctypes.c_void_p )
  5042.  
  5043. WM_paint_cursor_activate = _c_external_function(        "WM_paint_cursor_activate", [
  5044.     ("wm", ctypes.c_void_p, 1),
  5045.     ("poll", ctypes.c_void_p, 1),
  5046.     ("draw", ctypes.c_void_p, 1),
  5047.     ("customdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5048.     ctypes.c_void_p )
  5049.  
  5050. WM_paint_cursor_end = _c_external_function(     "WM_paint_cursor_end", [
  5051.     ("wm", ctypes.c_void_p, 1),
  5052.     ("handle", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5053.     ctypes.c_void_p )
  5054.  
  5055. WM_cursor_warp = _c_external_function(      "WM_cursor_warp", [
  5056.     ("win", ctypes.c_void_p, 1),
  5057.     ("x", ctypes.c_int, 1),
  5058.     ("y", ctypes.c_int, 1),],
  5059.     ctypes.c_void_p )
  5060.  
  5061. WM_keyconfig_new = _c_external_function(        "WM_keyconfig_new", [
  5062.     ("wm", ctypes.c_void_p, 1),
  5063.     ("idname", ctypes.c_char_p, 1),],
  5064.     ctypes.c_void_p )
  5065.  
  5066. WM_keyconfig_new_user = _c_external_function(       "WM_keyconfig_new_user", [
  5067.     ("wm", ctypes.c_void_p, 1),
  5068.     ("idname", ctypes.c_char_p, 1),],
  5069.     ctypes.c_void_p )
  5070.  
  5071. WM_keyconfig_remove = _c_external_function(     "WM_keyconfig_remove", [
  5072.     ("wm", ctypes.c_void_p, 1),
  5073.     ("keyconf", ctypes.c_void_p, 1),],
  5074.     ctypes.c_void_p )
  5075.  
  5076. WM_keyconfig_free = _c_external_function(       "WM_keyconfig_free", [
  5077.     ("keyconf", ctypes.c_void_p, 1),],
  5078.     ctypes.c_void_p )
  5079.  
  5080. WM_keyconfig_userdef = _c_external_function(        "WM_keyconfig_userdef", [
  5081.     ("wm", ctypes.c_void_p, 1),],
  5082.     ctypes.c_void_p )
  5083.  
  5084. WM_keymap_init = _c_external_function(      "WM_keymap_init", [
  5085.     ("C", ctypes.c_void_p, 1),],
  5086.     ctypes.c_void_p )
  5087.  
  5088. WM_keymap_free = _c_external_function(      "WM_keymap_free", [
  5089.     ("keymap", ctypes.c_void_p, 1),],
  5090.     ctypes.c_void_p )
  5091.  
  5092. WM_keymap_verify_item = _c_external_function(       "WM_keymap_verify_item", [
  5093.     ("keymap", ctypes.c_void_p, 1),
  5094.     ("idname", ctypes.c_char_p, 1),
  5095.     ("type", ctypes.c_int, 1),
  5096.     ("val", ctypes.c_int, 1),
  5097.     ("modifier", ctypes.c_int, 1),
  5098.     ("keymodifier", ctypes.c_int, 1),],
  5099.     ctypes.c_void_p )
  5100.  
  5101. WM_keymap_add_item = _c_external_function(      "WM_keymap_add_item", [
  5102.     ("keymap", ctypes.c_void_p, 1),
  5103.     ("idname", ctypes.c_char_p, 1),
  5104.     ("type", ctypes.c_int, 1),
  5105.     ("val", ctypes.c_int, 1),
  5106.     ("modifier", ctypes.c_int, 1),
  5107.     ("keymodifier", ctypes.c_int, 1),],
  5108.     ctypes.c_void_p )
  5109.  
  5110. WM_keymap_add_menu = _c_external_function(      "WM_keymap_add_menu", [
  5111.     ("keymap", ctypes.c_void_p, 1),
  5112.     ("idname", ctypes.c_char_p, 1),
  5113.     ("type", ctypes.c_int, 1),
  5114.     ("val", ctypes.c_int, 1),
  5115.     ("modifier", ctypes.c_int, 1),
  5116.     ("keymodifier", ctypes.c_int, 1),],
  5117.     ctypes.c_void_p )
  5118.  
  5119. WM_keymap_remove_item = _c_external_function(       "WM_keymap_remove_item", [
  5120.     ("keymap", ctypes.c_void_p, 1),
  5121.     ("kmi", ctypes.c_void_p, 1),],
  5122.     ctypes.c_void_p )
  5123.  
  5124. WM_keymap_item_to_string = _c_external_function(        "WM_keymap_item_to_string", [
  5125.     ("kmi", ctypes.c_void_p, 1),
  5126.     ("str", ctypes.c_char_p, 1),
  5127.     ("len", ctypes.c_int, 1),],
  5128.     ctypes.c_char )
  5129.  
  5130. WM_keymap_list_find = _c_external_function(     "WM_keymap_list_find", [
  5131.     ("lb", ctypes.c_void_p, 1),
  5132.     ("idname", ctypes.c_char_p, 1),
  5133.     ("spaceid", ctypes.c_int, 1),
  5134.     ("regionid", ctypes.c_int, 1),],
  5135.     ctypes.c_void_p )
  5136.  
  5137. WM_keymap_find = _c_external_function(      "WM_keymap_find", [
  5138.     ("keyconf", ctypes.c_void_p, 1),
  5139.     ("idname", ctypes.c_char_p, 1),
  5140.     ("spaceid", ctypes.c_int, 1),
  5141.     ("regionid", ctypes.c_int, 1),],
  5142.     ctypes.c_void_p )
  5143.  
  5144. WM_keymap_find_all = _c_external_function(      "WM_keymap_find_all", [
  5145.     ("C", ctypes.c_void_p, 1),
  5146.     ("idname", ctypes.c_char_p, 1),
  5147.     ("spaceid", ctypes.c_int, 1),
  5148.     ("regionid", ctypes.c_int, 1),],
  5149.     ctypes.c_void_p )
  5150.  
  5151. WM_keymap_active = _c_external_function(        "WM_keymap_active", [
  5152.     ("wm", ctypes.c_void_p, 1),
  5153.     ("keymap", ctypes.c_void_p, 1),],
  5154.     ctypes.c_void_p )
  5155.  
  5156. WM_keymap_guess_opname = _c_external_function(      "WM_keymap_guess_opname", [
  5157.     ("C", ctypes.c_void_p, 1),
  5158.     ("opname", ctypes.c_char_p, 1),],
  5159.     ctypes.c_void_p )
  5160.  
  5161. WM_keymap_user_init = _c_external_function(     "WM_keymap_user_init", [
  5162.     ("wm", ctypes.c_void_p, 1),
  5163.     ("keymap", ctypes.c_void_p, 1),],
  5164.     ctypes.c_int )
  5165.  
  5166. WM_keymap_copy_to_user = _c_external_function(      "WM_keymap_copy_to_user", [
  5167.     ("keymap", ctypes.c_void_p, 1),],
  5168.     ctypes.c_void_p )
  5169.  
  5170. WM_keymap_restore_to_default = _c_external_function(        "WM_keymap_restore_to_default", [
  5171.     ("keymap", ctypes.c_void_p, 1),],
  5172.     ctypes.c_void_p )
  5173.  
  5174. WM_keymap_properties_reset = _c_external_function(      "WM_keymap_properties_reset", [
  5175.     ("kmi", ctypes.c_void_p, 1),],
  5176.     ctypes.c_void_p )
  5177.  
  5178. WM_keymap_restore_item_to_default = _c_external_function(       "WM_keymap_restore_item_to_default", [
  5179.     ("C", ctypes.c_void_p, 1),
  5180.     ("keymap", ctypes.c_void_p, 1),
  5181.     ("kmi", ctypes.c_void_p, 1),],
  5182.     ctypes.c_void_p )
  5183.  
  5184. WM_keymap_item_find_id = _c_external_function(      "WM_keymap_item_find_id", [
  5185.     ("keymap", ctypes.c_void_p, 1),
  5186.     ("id", ctypes.c_int, 1),],
  5187.     ctypes.c_void_p )
  5188.  
  5189. WM_keymap_item_compare = _c_external_function(      "WM_keymap_item_compare", [
  5190.     ("k1", ctypes.c_void_p, 1),
  5191.     ("k2", ctypes.c_void_p, 1),],
  5192.     ctypes.c_int )
  5193.  
  5194. WM_userdef_event_map = _c_external_function(        "WM_userdef_event_map", [
  5195.     ("kmitype", ctypes.c_int, 1),],
  5196.     ctypes.c_int )
  5197.  
  5198. WM_modalkeymap_add = _c_external_function(      "WM_modalkeymap_add", [
  5199.     ("keyconf", ctypes.c_void_p, 1),
  5200.     ("idname", ctypes.c_char_p, 1),
  5201.     ("items", ctypes.c_void_p, 1),],
  5202.     ctypes.c_void_p )
  5203.  
  5204. WM_modalkeymap_get = _c_external_function(      "WM_modalkeymap_get", [
  5205.     ("keyconf", ctypes.c_void_p, 1),
  5206.     ("idname", ctypes.c_char_p, 1),],
  5207.     ctypes.c_void_p )
  5208.  
  5209. WM_modalkeymap_add_item = _c_external_function(     "WM_modalkeymap_add_item", [
  5210.     ("km", ctypes.c_void_p, 1),
  5211.     ("type", ctypes.c_int, 1),
  5212.     ("val", ctypes.c_int, 1),
  5213.     ("modifier", ctypes.c_int, 1),
  5214.     ("keymodifier", ctypes.c_int, 1),
  5215.     ("value", ctypes.c_int, 1),],
  5216.     ctypes.c_void_p )
  5217.  
  5218. WM_modalkeymap_assign = _c_external_function(       "WM_modalkeymap_assign", [
  5219.     ("km", ctypes.c_void_p, 1),
  5220.     ("opname", ctypes.c_char_p, 1),],
  5221.     ctypes.c_void_p )
  5222.  
  5223. WM_key_event_string = _c_external_function(     "WM_key_event_string", [
  5224.     ("type", ctypes.c_short, 1),],
  5225.     ctypes.c_char )
  5226.  
  5227. WM_key_event_operator_id = _c_external_function(        "WM_key_event_operator_id", [
  5228.     ("C", ctypes.c_void_p, 1),
  5229.     ("opname", ctypes.c_char_p, 1),
  5230.     ("opcontext", ctypes.c_int, 1),
  5231.     ("properties", ctypes.c_void_p, 1),
  5232.     ("hotkey", ctypes.c_int, 1),
  5233.     ("keymap_r", ctypes.c_void_p, 1),],
  5234.     ctypes.c_int )
  5235.  
  5236. WM_key_event_operator_string = _c_external_function(        "WM_key_event_operator_string", [
  5237.     ("C", ctypes.c_void_p, 1),
  5238.     ("opname", ctypes.c_char_p, 1),
  5239.     ("opcontext", ctypes.c_int, 1),
  5240.     ("properties", ctypes.c_void_p, 1),
  5241.     ("str", ctypes.c_char_p, 1),
  5242.     ("len", ctypes.c_int, 1),],
  5243.     ctypes.c_char )
  5244.  
  5245. WM_event_add_keymap_handler = _c_external_function(     "WM_event_add_keymap_handler", [
  5246.     ("handlers", ctypes.c_void_p, 1),
  5247.     ("keymap", ctypes.c_void_p, 1),],
  5248.     ctypes.c_void_p )
  5249.  
  5250. WM_event_add_keymap_handler_bb = _c_external_function(      "WM_event_add_keymap_handler_bb", [
  5251.     ("handlers", ctypes.c_void_p, 1),
  5252.     ("keymap", ctypes.c_void_p, 1),
  5253.     ("bb", ctypes.c_void_p, 1),
  5254.     ("swinbb", ctypes.c_void_p, 1),],
  5255.     ctypes.c_void_p )
  5256.  
  5257. WM_event_add_keymap_handler_priority = _c_external_function(        "WM_event_add_keymap_handler_priority", [
  5258.     ("handlers", ctypes.c_void_p, 1),
  5259.     ("keymap", ctypes.c_void_p, 1),
  5260.     ("priority", ctypes.c_int, 1),],
  5261.     ctypes.c_void_p )
  5262.  
  5263. WM_event_remove_keymap_handler = _c_external_function(      "WM_event_remove_keymap_handler", [
  5264.     ("handlers", ctypes.c_void_p, 1),
  5265.     ("keymap", ctypes.c_void_p, 1),],
  5266.     ctypes.c_void_p )
  5267.  
  5268. WM_event_add_ui_handler = _c_external_function(     "WM_event_add_ui_handler", [
  5269.     ("C", ctypes.c_void_p, 1),
  5270.     ("handlers", ctypes.c_void_p, 1),
  5271.     ("func", ctypes.c_void_p, 1),
  5272.     ("remove", ctypes.c_void_p, 1),
  5273.     ("userdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5274.     ctypes.c_void_p )
  5275.  
  5276. WM_event_remove_ui_handler = _c_external_function(      "WM_event_remove_ui_handler", [
  5277.     ("handlers", ctypes.c_void_p, 1),
  5278.     ("func", ctypes.c_void_p, 1),
  5279.     ("remove", ctypes.c_void_p, 1),
  5280.     ("userdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5281.     ctypes.c_void_p )
  5282.  
  5283. WM_event_remove_area_handler = _c_external_function(        "WM_event_remove_area_handler", [
  5284.     ("handlers", ctypes.c_void_p, 1),
  5285.     ("area", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5286.     ctypes.c_void_p )
  5287.  
  5288. WM_event_add_modal_handler = _c_external_function(      "WM_event_add_modal_handler", [
  5289.     ("C", ctypes.c_void_p, 1),
  5290.     ("op", ctypes.c_void_p, 1),],
  5291.     ctypes.c_void_p )
  5292.  
  5293. WM_event_remove_handlers = _c_external_function(        "WM_event_remove_handlers", [
  5294.     ("C", ctypes.c_void_p, 1),
  5295.     ("handlers", ctypes.c_void_p, 1),],
  5296.     ctypes.c_void_p )
  5297.  
  5298. WM_event_add_dropbox_handler = _c_external_function(        "WM_event_add_dropbox_handler", [
  5299.     ("handlers", ctypes.c_void_p, 1),
  5300.     ("dropboxes", ctypes.c_void_p, 1),],
  5301.     ctypes.c_void_p )
  5302.  
  5303. WM_event_add_mousemove = _c_external_function(      "WM_event_add_mousemove", [
  5304.     ("C", ctypes.c_void_p, 1),],
  5305.     ctypes.c_void_p )
  5306.  
  5307. WM_modal_tweak_exit = _c_external_function(     "WM_modal_tweak_exit", [
  5308.     ("evt", ctypes.c_void_p, 1),
  5309.     ("tweak_event", ctypes.c_int, 1),],
  5310.     ctypes.c_int )
  5311.  
  5312. WM_event_add_notifier = _c_external_function(       "WM_event_add_notifier", [
  5313.     ("C", ctypes.c_void_p, 1),
  5314.     ("type", ctypes.c_int, 1),
  5315.     ("reference", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5316.     ctypes.c_void_p )
  5317.  
  5318. WM_main_add_notifier = _c_external_function(        "WM_main_add_notifier", [
  5319.     ("type", ctypes.c_int, 1),
  5320.     ("reference", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5321.     ctypes.c_void_p )
  5322.  
  5323. wm_event_add = _c_external_function(        "wm_event_add", [
  5324.     ("win", ctypes.c_void_p, 1),
  5325.     ("event_to_add", ctypes.c_void_p, 1),],
  5326.     ctypes.c_void_p )
  5327.  
  5328. WM_event_add_timer = _c_external_function(      "WM_event_add_timer", [
  5329.     ("wm", ctypes.c_void_p, 1),
  5330.     ("win", ctypes.c_void_p, 1),
  5331.     ("event_type", ctypes.c_int, 1),
  5332.     ("timestep", ctypes.c_double, 1),],
  5333.     ctypes.c_void_p )
  5334.  
  5335. WM_event_remove_timer = _c_external_function(       "WM_event_remove_timer", [
  5336.     ("wm", ctypes.c_void_p, 1),
  5337.     ("win", ctypes.c_void_p, 1),
  5338.     ("timer", ctypes.c_void_p, 1),],
  5339.     ctypes.c_void_p )
  5340.  
  5341. WM_event_timer_sleep = _c_external_function(        "WM_event_timer_sleep", [
  5342.     ("wm", ctypes.c_void_p, 1),
  5343.     ("win", ctypes.c_void_p, 1),
  5344.     ("timer", ctypes.c_void_p, 1),
  5345.     ("dosleep", ctypes.c_int, 1),],
  5346.     ctypes.c_void_p )
  5347.  
  5348. WM_menu_invoke = _c_external_function(      "WM_menu_invoke", [
  5349.     ("C", ctypes.c_void_p, 1),
  5350.     ("op", ctypes.c_void_p, 1),
  5351.     ("event", ctypes.c_void_p, 1),],
  5352.     ctypes.c_int )
  5353.  
  5354. WM_enum_search_invoke = _c_external_function(       "WM_enum_search_invoke", [
  5355.     ("C", ctypes.c_void_p, 1),
  5356.     ("op", ctypes.c_void_p, 1),
  5357.     ("event", ctypes.c_void_p, 1),],
  5358.     ctypes.c_int )
  5359.  
  5360. WM_operator_confirm = _c_external_function(     "WM_operator_confirm", [
  5361.     ("C", ctypes.c_void_p, 1),
  5362.     ("op", ctypes.c_void_p, 1),
  5363.     ("event", ctypes.c_void_p, 1),],
  5364.     ctypes.c_int )
  5365.  
  5366. WM_operator_filesel = _c_external_function(     "WM_operator_filesel", [
  5367.     ("C", ctypes.c_void_p, 1),
  5368.     ("op", ctypes.c_void_p, 1),
  5369.     ("event", ctypes.c_void_p, 1),],
  5370.     ctypes.c_int )
  5371.  
  5372. WM_operator_winactive = _c_external_function(       "WM_operator_winactive", [
  5373.     ("C", ctypes.c_void_p, 1),],
  5374.     ctypes.c_int )
  5375.  
  5376. WM_operator_props_popup = _c_external_function(     "WM_operator_props_popup", [
  5377.     ("C", ctypes.c_void_p, 1),
  5378.     ("op", ctypes.c_void_p, 1),
  5379.     ("event", ctypes.c_void_p, 1),],
  5380.     ctypes.c_int )
  5381.  
  5382. WM_operator_props_dialog_popup = _c_external_function(      "WM_operator_props_dialog_popup", [
  5383.     ("C", ctypes.c_void_p, 1),
  5384.     ("op", ctypes.c_void_p, 1),
  5385.     ("width", ctypes.c_int, 1),
  5386.     ("height", ctypes.c_int, 1),],
  5387.     ctypes.c_int )
  5388.  
  5389. WM_operator_redo_popup = _c_external_function(      "WM_operator_redo_popup", [
  5390.     ("C", ctypes.c_void_p, 1),
  5391.     ("op", ctypes.c_void_p, 1),],
  5392.     ctypes.c_int )
  5393.  
  5394. WM_operator_ui_popup = _c_external_function(        "WM_operator_ui_popup", [
  5395.     ("C", ctypes.c_void_p, 1),
  5396.     ("op", ctypes.c_void_p, 1),
  5397.     ("width", ctypes.c_int, 1),
  5398.     ("height", ctypes.c_int, 1),],
  5399.     ctypes.c_int )
  5400.  
  5401. WM_operator_confirm_message = _c_external_function(     "WM_operator_confirm_message", [
  5402.     ("C", ctypes.c_void_p, 1),
  5403.     ("op", ctypes.c_void_p, 1),
  5404.     ("message", ctypes.c_char_p, 1),],
  5405.     ctypes.c_int )
  5406.  
  5407. WM_operator_free = _c_external_function(        "WM_operator_free", [
  5408.     ("op", ctypes.c_void_p, 1),],
  5409.     ctypes.c_void_p )
  5410.  
  5411. WM_operator_stack_clear = _c_external_function(     "WM_operator_stack_clear", [
  5412.     ("C", ctypes.c_void_p, 1),],
  5413.     ctypes.c_void_p )
  5414.  
  5415. WM_operatortype_find = _c_external_function(        "WM_operatortype_find", [
  5416.     ("idnamem", ctypes.c_char_p, 1),
  5417.     ("quiet", ctypes.c_int, 1),],
  5418.     ctypes.c_void_p )
  5419.  
  5420. WM_operatortype_first = _c_external_function(       "WM_operatortype_first", [],
  5421.     ctypes.c_void_p )
  5422.  
  5423. WM_operatortype_append = _c_external_function(      "WM_operatortype_append", [
  5424.     ("opfunc", ctypes.c_void_p, 1),],
  5425.     ctypes.c_void_p )
  5426.  
  5427. WM_operatortype_append_ptr = _c_external_function(      "WM_operatortype_append_ptr", [
  5428.     ("opfunc", ctypes.c_void_p, 1),
  5429.     ("userdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5430.     ctypes.c_void_p )
  5431.  
  5432. WM_operatortype_append_macro_ptr = _c_external_function(        "WM_operatortype_append_macro_ptr", [
  5433.     ("opfunc", ctypes.c_void_p, 1),
  5434.     ("userdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5435.     ctypes.c_void_p )
  5436.  
  5437. WM_operatortype_remove = _c_external_function(      "WM_operatortype_remove", [
  5438.     ("idname", ctypes.c_char_p, 1),],
  5439.     ctypes.c_int )
  5440.  
  5441. WM_operatortype_append_macro = _c_external_function(        "WM_operatortype_append_macro", [
  5442.     ("idname", ctypes.c_char_p, 1),
  5443.     ("name", ctypes.c_char_p, 1),
  5444.     ("flag", ctypes.c_int, 1),],
  5445.     ctypes.c_void_p )
  5446.  
  5447. WM_operatortype_macro_define = _c_external_function(        "WM_operatortype_macro_define", [
  5448.     ("ot", ctypes.c_void_p, 1),
  5449.     ("idname", ctypes.c_char_p, 1),],
  5450.     ctypes.c_void_p )
  5451.  
  5452. WM_operator_poll = _c_external_function(        "WM_operator_poll", [
  5453.     ("C", ctypes.c_void_p, 1),
  5454.     ("ot", ctypes.c_void_p, 1),],
  5455.     ctypes.c_int )
  5456.  
  5457. WM_operator_call = _c_external_function(        "WM_operator_call", [
  5458.     ("C", ctypes.c_void_p, 1),
  5459.     ("op", ctypes.c_void_p, 1),],
  5460.     ctypes.c_int )
  5461.  
  5462. WM_operator_repeat = _c_external_function(      "WM_operator_repeat", [
  5463.     ("C", ctypes.c_void_p, 1),
  5464.     ("op", ctypes.c_void_p, 1),],
  5465.     ctypes.c_int )
  5466.  
  5467. WM_operator_name_call = _c_external_function(       "WM_operator_name_call", [
  5468.     ("C", ctypes.c_void_p, 1),
  5469.     ("opstring", ctypes.c_char_p, 1),
  5470.     ("context", ctypes.c_int, 1),
  5471.     ("properties", ctypes.c_void_p, 1),],
  5472.     ctypes.c_int )
  5473.  
  5474. WM_operator_call_py = _c_external_function(     "WM_operator_call_py", [
  5475.     ("C", ctypes.c_void_p, 1),
  5476.     ("ot", ctypes.c_void_p, 1),
  5477.     ("context", ctypes.c_int, 1),
  5478.     ("properties", ctypes.c_void_p, 1),
  5479.     ("reports", ctypes.c_void_p, 1),],
  5480.     ctypes.c_int )
  5481.  
  5482. WM_operator_properties_alloc = _c_external_function(        "WM_operator_properties_alloc", [
  5483.     ("ptr", ctypes.c_void_p, 1),
  5484.     ("properties", ctypes.c_void_p, 1),
  5485.     ("opstring", ctypes.c_char_p, 1),],
  5486.     ctypes.c_void_p )
  5487.  
  5488. WM_operator_properties_sanitize = _c_external_function(     "WM_operator_properties_sanitize", [
  5489.     ("ptr", ctypes.c_void_p, 1),
  5490.     ("val", ctypes.c_int, 1),],
  5491.     ctypes.c_void_p )
  5492.  
  5493. WM_operator_properties_create = _c_external_function(       "WM_operator_properties_create", [
  5494.     ("ptr", ctypes.c_void_p, 1),
  5495.     ("opstring", ctypes.c_char_p, 1),],
  5496.     ctypes.c_void_p )
  5497.  
  5498. WM_operator_properties_create_ptr = _c_external_function(       "WM_operator_properties_create_ptr", [
  5499.     ("ptr", ctypes.c_void_p, 1),
  5500.     ("ot", ctypes.c_void_p, 1),],
  5501.     ctypes.c_void_p )
  5502.  
  5503. WM_operator_properties_free = _c_external_function(     "WM_operator_properties_free", [
  5504.     ("ptr", ctypes.c_void_p, 1),],
  5505.     ctypes.c_void_p )
  5506.  
  5507. WM_operator_properties_filesel = _c_external_function(      "WM_operator_properties_filesel", [
  5508.     ("ot", ctypes.c_void_p, 1),
  5509.     ("filter", ctypes.c_int, 1),
  5510.     ("type", ctypes.c_short, 1),
  5511.     ("action", ctypes.c_short, 1),
  5512.     ("flag", ctypes.c_short, 1),],
  5513.     ctypes.c_void_p )
  5514.  
  5515. WM_operator_properties_gesture_border = _c_external_function(       "WM_operator_properties_gesture_border", [
  5516.     ("ot", ctypes.c_void_p, 1),
  5517.     ("extend", ctypes.c_int, 1),],
  5518.     ctypes.c_void_p )
  5519.  
  5520. WM_operator_properties_gesture_straightline = _c_external_function(     "WM_operator_properties_gesture_straightline", [
  5521.     ("ot", ctypes.c_void_p, 1),
  5522.     ("cursor", ctypes.c_int, 1),],
  5523.     ctypes.c_void_p )
  5524.  
  5525. WM_operator_properties_select_all = _c_external_function(       "WM_operator_properties_select_all", [
  5526.     ("ot", ctypes.c_void_p, 1),],
  5527.     ctypes.c_void_p )
  5528.  
  5529. WM_operator_pystring = _c_external_function(        "WM_operator_pystring", [
  5530.     ("C", ctypes.c_void_p, 1),
  5531.     ("ot", ctypes.c_void_p, 1),
  5532.     ("opptr", ctypes.c_void_p, 1),
  5533.     ("all_args", ctypes.c_int, 1),],
  5534.     ctypes.c_char )
  5535.  
  5536. WM_operator_bl_idname = _c_external_function(       "WM_operator_bl_idname", [
  5537.     ("to", ctypes.c_char_p, 1),
  5538.     ("from", ctypes.c_char_p, 1),],
  5539.     ctypes.c_void_p )
  5540.  
  5541. WM_operator_py_idname = _c_external_function(       "WM_operator_py_idname", [
  5542.     ("to", ctypes.c_char_p, 1),
  5543.     ("from", ctypes.c_char_p, 1),],
  5544.     ctypes.c_void_p )
  5545.  
  5546. WM_menutype_find = _c_external_function(        "WM_menutype_find", [
  5547.     ("idname", ctypes.c_char_p, 1),
  5548.     ("quiet", ctypes.c_int, 1),],
  5549.     ctypes.c_void_p )
  5550.  
  5551. WM_menutype_add = _c_external_function(     "WM_menutype_add", [
  5552.     ("mt", ctypes.c_void_p, 1),],
  5553.     ctypes.c_int )
  5554.  
  5555. WM_menutype_freelink = _c_external_function(        "WM_menutype_freelink", [
  5556.     ("mt", ctypes.c_void_p, 1),],
  5557.     ctypes.c_void_p )
  5558.  
  5559. WM_menutype_free = _c_external_function(        "WM_menutype_free", [],
  5560.     ctypes.c_void_p )
  5561.  
  5562. WM_border_select_invoke = _c_external_function(     "WM_border_select_invoke", [
  5563.     ("C", ctypes.c_void_p, 1),
  5564.     ("op", ctypes.c_void_p, 1),
  5565.     ("event", ctypes.c_void_p, 1),],
  5566.     ctypes.c_int )
  5567.  
  5568. WM_border_select_modal = _c_external_function(      "WM_border_select_modal", [
  5569.     ("C", ctypes.c_void_p, 1),
  5570.     ("op", ctypes.c_void_p, 1),
  5571.     ("event", ctypes.c_void_p, 1),],
  5572.     ctypes.c_int )
  5573.  
  5574. WM_gesture_circle_invoke = _c_external_function(        "WM_gesture_circle_invoke", [
  5575.     ("C", ctypes.c_void_p, 1),
  5576.     ("op", ctypes.c_void_p, 1),
  5577.     ("event", ctypes.c_void_p, 1),],
  5578.     ctypes.c_int )
  5579.  
  5580. WM_gesture_circle_modal = _c_external_function(     "WM_gesture_circle_modal", [
  5581.     ("C", ctypes.c_void_p, 1),
  5582.     ("op", ctypes.c_void_p, 1),
  5583.     ("event", ctypes.c_void_p, 1),],
  5584.     ctypes.c_int )
  5585.  
  5586. WM_gesture_lines_invoke = _c_external_function(     "WM_gesture_lines_invoke", [
  5587.     ("C", ctypes.c_void_p, 1),
  5588.     ("op", ctypes.c_void_p, 1),
  5589.     ("event", ctypes.c_void_p, 1),],
  5590.     ctypes.c_int )
  5591.  
  5592. WM_gesture_lines_modal = _c_external_function(      "WM_gesture_lines_modal", [
  5593.     ("C", ctypes.c_void_p, 1),
  5594.     ("op", ctypes.c_void_p, 1),
  5595.     ("event", ctypes.c_void_p, 1),],
  5596.     ctypes.c_int )
  5597.  
  5598. WM_gesture_lasso_invoke = _c_external_function(     "WM_gesture_lasso_invoke", [
  5599.     ("C", ctypes.c_void_p, 1),
  5600.     ("op", ctypes.c_void_p, 1),
  5601.     ("event", ctypes.c_void_p, 1),],
  5602.     ctypes.c_int )
  5603.  
  5604. WM_gesture_lasso_modal = _c_external_function(      "WM_gesture_lasso_modal", [
  5605.     ("C", ctypes.c_void_p, 1),
  5606.     ("op", ctypes.c_void_p, 1),
  5607.     ("event", ctypes.c_void_p, 1),],
  5608.     ctypes.c_int )
  5609.  
  5610. WM_gesture_straightline_invoke = _c_external_function(      "WM_gesture_straightline_invoke", [
  5611.     ("C", ctypes.c_void_p, 1),
  5612.     ("op", ctypes.c_void_p, 1),
  5613.     ("event", ctypes.c_void_p, 1),],
  5614.     ctypes.c_int )
  5615.  
  5616. WM_gesture_straightline_modal = _c_external_function(       "WM_gesture_straightline_modal", [
  5617.     ("C", ctypes.c_void_p, 1),
  5618.     ("op", ctypes.c_void_p, 1),
  5619.     ("event", ctypes.c_void_p, 1),],
  5620.     ctypes.c_int )
  5621.  
  5622. WM_OT_tweak_gesture = _c_external_function(     "WM_OT_tweak_gesture", [
  5623.     ("ot", ctypes.c_void_p, 1),],
  5624.     ctypes.c_void_p )
  5625.  
  5626. WM_gesture_new = _c_external_function(      "WM_gesture_new", [
  5627.     ("C", ctypes.c_void_p, 1),
  5628.     ("event", ctypes.c_void_p, 1),
  5629.     ("type", ctypes.c_int, 1),],
  5630.     ctypes.c_void_p )
  5631.  
  5632. WM_gesture_end = _c_external_function(      "WM_gesture_end", [
  5633.     ("C", ctypes.c_void_p, 1),
  5634.     ("gesture", ctypes.c_void_p, 1),],
  5635.     ctypes.c_void_p )
  5636.  
  5637. WM_gestures_remove = _c_external_function(      "WM_gestures_remove", [
  5638.     ("C", ctypes.c_void_p, 1),],
  5639.     ctypes.c_void_p )
  5640.  
  5641. WM_radial_control_invoke = _c_external_function(        "WM_radial_control_invoke", [
  5642.     ("C", ctypes.c_void_p, 1),
  5643.     ("op", ctypes.c_void_p, 1),
  5644.     ("event", ctypes.c_void_p, 1),],
  5645.     ctypes.c_int )
  5646.  
  5647. WM_radial_control_modal = _c_external_function(     "WM_radial_control_modal", [
  5648.     ("C", ctypes.c_void_p, 1),
  5649.     ("op", ctypes.c_void_p, 1),
  5650.     ("event", ctypes.c_void_p, 1),],
  5651.     ctypes.c_int )
  5652.  
  5653. WM_OT_radial_control_partial = _c_external_function(        "WM_OT_radial_control_partial", [
  5654.     ("ot", ctypes.c_void_p, 1),],
  5655.     ctypes.c_void_p )
  5656.  
  5657. WM_radial_control_string = _c_external_function(        "WM_radial_control_string", [
  5658.     ("op", ctypes.c_void_p, 1),
  5659.     ("str", ctypes.c_char, 1),
  5660.     ("maxlen", ctypes.c_int, 1),],
  5661.     ctypes.c_void_p )
  5662.  
  5663. WM_event_add_fileselect = _c_external_function(     "WM_event_add_fileselect", [
  5664.     ("C", ctypes.c_void_p, 1),
  5665.     ("op", ctypes.c_void_p, 1),],
  5666.     ctypes.c_void_p )
  5667.  
  5668. WM_event_fileselect_event = _c_external_function(       "WM_event_fileselect_event", [
  5669.     ("C", ctypes.c_void_p, 1),
  5670.     ("ophandle", ctypes.POINTER( ctypes.c_void_p ), 1),
  5671.     ("eventval", ctypes.c_int, 1),],
  5672.     ctypes.c_void_p )
  5673.  
  5674. WM_event_start_drag = _c_external_function(     "WM_event_start_drag", [
  5675.     ("C", ctypes.c_void_p, 1),
  5676.     ("icon", ctypes.c_int, 1),
  5677.     ("type", ctypes.c_int, 1),
  5678.     ("poin", ctypes.POINTER( ctypes.c_void_p ), 1),
  5679.     ("value", ctypes.c_double, 1),],
  5680.     ctypes.c_void_p )
  5681.  
  5682. WM_event_drag_image = _c_external_function(     "WM_event_drag_image", [
  5683.     ("wmDrag", ctypes.c_void_p, 1),
  5684.     ("ImBuf", ctypes.c_void_p, 1),
  5685.     ("scale", ctypes.c_float, 1),
  5686.     ("sx", ctypes.c_int, 1),
  5687.     ("sy", ctypes.c_int, 1),],
  5688.     ctypes.c_void_p )
  5689.  
  5690. WM_dropbox_add = _c_external_function(      "WM_dropbox_add", [
  5691.     ("lb", ctypes.c_void_p, 1),
  5692.     ("idname", ctypes.c_char_p, 1),
  5693.     ("poll", ctypes.c_void_p, 1),
  5694.     ("copy", ctypes.c_void_p, 1),],
  5695.     ctypes.c_void_p )
  5696.  
  5697. WM_dropboxmap_find = _c_external_function(      "WM_dropboxmap_find", [
  5698.     ("idname", ctypes.c_char_p, 1),
  5699.     ("spaceid", ctypes.c_int, 1),
  5700.     ("regionid", ctypes.c_int, 1),],
  5701.     ctypes.c_void_p )
  5702.  
  5703. wmSubWindowSet = _c_external_function(      "wmSubWindowSet", [
  5704.     ("win", ctypes.c_void_p, 1),
  5705.     ("swinid", ctypes.c_int, 1),],
  5706.     ctypes.c_void_p )
  5707.  
  5708. wmSubWindowScissorSet = _c_external_function(       "wmSubWindowScissorSet", [
  5709.     ("win", ctypes.c_void_p, 1),
  5710.     ("swinid", ctypes.c_int, 1),
  5711.     ("srct", ctypes.c_void_p, 1),],
  5712.     ctypes.c_void_p )
  5713.  
  5714. wmFrustum = _c_external_function(       "wmFrustum", [
  5715.     ("x1", ctypes.c_float, 1),
  5716.     ("x2", ctypes.c_float, 1),
  5717.     ("y1", ctypes.c_float, 1),
  5718.     ("y2", ctypes.c_float, 1),
  5719.     ("n", ctypes.c_float, 1),
  5720.     ("f", ctypes.c_float, 1),],
  5721.     ctypes.c_void_p )
  5722.  
  5723. wmOrtho = _c_external_function(     "wmOrtho", [
  5724.     ("x1", ctypes.c_float, 1),
  5725.     ("x2", ctypes.c_float, 1),
  5726.     ("y1", ctypes.c_float, 1),
  5727.     ("y2", ctypes.c_float, 1),
  5728.     ("n", ctypes.c_float, 1),
  5729.     ("f", ctypes.c_float, 1),],
  5730.     ctypes.c_void_p )
  5731.  
  5732. wmOrtho2 = _c_external_function(        "wmOrtho2", [
  5733.     ("x1", ctypes.c_float, 1),
  5734.     ("x2", ctypes.c_float, 1),
  5735.     ("y1", ctypes.c_float, 1),
  5736.     ("y2", ctypes.c_float, 1),],
  5737.     ctypes.c_void_p )
  5738.  
  5739. WM_set_framebuffer_index_color = _c_external_function(      "WM_set_framebuffer_index_color", [
  5740.     ("index", ctypes.c_int, 1),],
  5741.     ctypes.c_void_p )
  5742.  
  5743. WM_framebuffer_to_index = _c_external_function(     "WM_framebuffer_to_index", [
  5744.     ("col", ctypes.c_int, 1),],
  5745.     ctypes.c_int )
  5746.  
  5747. WM_jobs_get = _c_external_function(     "WM_jobs_get", [
  5748.     ("wm", ctypes.c_void_p, 1),
  5749.     ("win", ctypes.c_void_p, 1),
  5750.     ("owner", ctypes.POINTER( ctypes.c_void_p ), 1),
  5751.     ("name", ctypes.c_char_p, 1),
  5752.     ("flag", ctypes.c_int, 1),],
  5753.     ctypes.c_void_p )
  5754.  
  5755. WM_jobs_test = _c_external_function(        "WM_jobs_test", [
  5756.     ("wm", ctypes.c_void_p, 1),
  5757.     ("owner", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5758.     ctypes.c_int )
  5759.  
  5760. WM_jobs_progress = _c_external_function(        "WM_jobs_progress", [
  5761.     ("wm", ctypes.c_void_p, 1),
  5762.     ("owner", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5763.     ctypes.c_float )
  5764.  
  5765. WM_jobs_name = _c_external_function(        "WM_jobs_name", [
  5766.     ("wm", ctypes.c_void_p, 1),
  5767.     ("owner", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5768.     ctypes.c_char )
  5769.  
  5770. WM_jobs_customdata = _c_external_function(      "WM_jobs_customdata", [
  5771.     ("wmJob", ctypes.c_void_p, 1),
  5772.     ("customdata", ctypes.POINTER( ctypes.c_void_p ), 1),
  5773.     ("free", ctypes.c_void_p, 1),],
  5774.     ctypes.c_void_p )
  5775.  
  5776. WM_jobs_timer = _c_external_function(       "WM_jobs_timer", [
  5777.     ("wmJob", ctypes.c_void_p, 1),
  5778.     ("timestep", ctypes.c_double, 1),
  5779.     ("note", ctypes.c_int, 1),
  5780.     ("endnote", ctypes.c_int, 1),],
  5781.     ctypes.c_void_p )
  5782.  
  5783. WM_jobs_callbacks = _c_external_function(       "WM_jobs_callbacks", [
  5784.     ("wmJob", ctypes.c_void_p, 1),
  5785.     ("startjob", ctypes.c_void_p, 1),
  5786.     ("initjob", ctypes.c_void_p, 1),
  5787.     ("update", ctypes.c_void_p, 1),
  5788.     ("endjob", ctypes.c_void_p, 1),],
  5789.     ctypes.c_void_p )
  5790.  
  5791. WM_jobs_start = _c_external_function(       "WM_jobs_start", [
  5792.     ("wm", ctypes.c_void_p, 1),
  5793.     ("wmJob", ctypes.c_void_p, 1),],
  5794.     ctypes.c_void_p )
  5795.  
  5796. WM_jobs_stop = _c_external_function(        "WM_jobs_stop", [
  5797.     ("wm", ctypes.c_void_p, 1),
  5798.     ("owner", ctypes.POINTER( ctypes.c_void_p ), 1),
  5799.     ("startjob", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5800.     ctypes.c_void_p )
  5801.  
  5802. WM_jobs_kill = _c_external_function(        "WM_jobs_kill", [
  5803.     ("wm", ctypes.c_void_p, 1),
  5804.     ("owner", ctypes.POINTER( ctypes.c_void_p ), 1),
  5805.     ("startjob", ctypes.POINTER( ctypes.c_void_p ), 1),],
  5806.     ctypes.c_void_p )
  5807.  
  5808. WM_jobs_stop_all = _c_external_function(        "WM_jobs_stop_all", [
  5809.     ("wm", ctypes.c_void_p, 1),],
  5810.     ctypes.c_void_p )
  5811.  
  5812. WM_clipboard_text_get = _c_external_function(       "WM_clipboard_text_get", [
  5813.     ("selection", ctypes.c_int, 1),],
  5814.     ctypes.c_char )
  5815.  
  5816. WM_clipboard_text_set = _c_external_function(       "WM_clipboard_text_set", [
  5817.     ("buf", ctypes.c_char_p, 1),
  5818.     ("selection", ctypes.c_int, 1),],
  5819.     ctypes.c_void_p )
  5820.  
  5821. WM_progress_set = _c_external_function(     "WM_progress_set", [
  5822.     ("win", ctypes.c_void_p, 1),
  5823.     ("progress", ctypes.c_float, 1),],
  5824.     ctypes.c_void_p )
  5825.  
  5826. WM_progress_clear = _c_external_function(       "WM_progress_clear", [
  5827.     ("win", ctypes.c_void_p, 1),],
  5828.     ctypes.c_void_p )
  5829.  
  5830. RNA_create = _c_external_function(      "RNA_create", [],
  5831.     ctypes.c_void_p )
  5832.  
  5833. RNA_define_free = _c_external_function(     "RNA_define_free", [
  5834.     ("brna", ctypes.c_void_p, 1),],
  5835.     ctypes.c_void_p )
  5836.  
  5837. RNA_free = _c_external_function(        "RNA_free", [
  5838.     ("brna", ctypes.c_void_p, 1),],
  5839.     ctypes.c_void_p )
  5840.  
  5841. RNA_define_verify_sdna = _c_external_function(      "RNA_define_verify_sdna", [
  5842.     ("verify", ctypes.c_int, 1),],
  5843.     ctypes.c_void_p )
  5844.  
  5845. RNA_init = _c_external_function(        "RNA_init", [],
  5846.     ctypes.c_void_p )
  5847.  
  5848. RNA_exit = _c_external_function(        "RNA_exit", [],
  5849.     ctypes.c_void_p )
  5850.  
  5851. RNA_def_struct = _c_external_function(      "RNA_def_struct", [
  5852.     ("brna", ctypes.c_void_p, 1),
  5853.     ("identifier", ctypes.c_char_p, 1),
  5854.     ("from", ctypes.c_char_p, 1),],
  5855.     ctypes.c_void_p )
  5856.  
  5857. RNA_def_struct_sdna = _c_external_function(     "RNA_def_struct_sdna", [
  5858.     ("srna", ctypes.c_void_p, 1),
  5859.     ("structname", ctypes.c_char_p, 1),],
  5860.     ctypes.c_void_p )
  5861.  
  5862. RNA_def_struct_sdna_from = _c_external_function(        "RNA_def_struct_sdna_from", [
  5863.     ("srna", ctypes.c_void_p, 1),
  5864.     ("structname", ctypes.c_char_p, 1),
  5865.     ("propname", ctypes.c_char_p, 1),],
  5866.     ctypes.c_void_p )
  5867.  
  5868. RNA_def_struct_name_property = _c_external_function(        "RNA_def_struct_name_property", [
  5869.     ("srna", ctypes.c_void_p, 1),
  5870.     ("prop", ctypes.c_void_p, 1),],
  5871.     ctypes.c_void_p )
  5872.  
  5873. RNA_def_struct_nested = _c_external_function(       "RNA_def_struct_nested", [
  5874.     ("brna", ctypes.c_void_p, 1),
  5875.     ("srna", ctypes.c_void_p, 1),
  5876.     ("structname", ctypes.c_char_p, 1),],
  5877.     ctypes.c_void_p )
  5878.  
  5879. RNA_def_struct_flag = _c_external_function(     "RNA_def_struct_flag", [
  5880.     ("srna", ctypes.c_void_p, 1),
  5881.     ("flag", ctypes.c_int, 1),],
  5882.     ctypes.c_void_p )
  5883.  
  5884. RNA_def_struct_clear_flag = _c_external_function(       "RNA_def_struct_clear_flag", [
  5885.     ("srna", ctypes.c_void_p, 1),
  5886.     ("flag", ctypes.c_int, 1),],
  5887.     ctypes.c_void_p )
  5888.  
  5889. RNA_def_struct_refine_func = _c_external_function(      "RNA_def_struct_refine_func", [
  5890.     ("srna", ctypes.c_void_p, 1),
  5891.     ("refine", ctypes.c_char_p, 1),],
  5892.     ctypes.c_void_p )
  5893.  
  5894. RNA_def_struct_idprops_func = _c_external_function(     "RNA_def_struct_idprops_func", [
  5895.     ("srna", ctypes.c_void_p, 1),
  5896.     ("refine", ctypes.c_char_p, 1),],
  5897.     ctypes.c_void_p )
  5898.  
  5899. RNA_def_struct_register_funcs = _c_external_function(       "RNA_def_struct_register_funcs", [
  5900.     ("srna", ctypes.c_void_p, 1),
  5901.     ("reg", ctypes.c_char_p, 1),
  5902.     ("unreg", ctypes.c_char_p, 1),],
  5903.     ctypes.c_void_p )
  5904.  
  5905. RNA_def_struct_path_func = _c_external_function(        "RNA_def_struct_path_func", [
  5906.     ("srna", ctypes.c_void_p, 1),
  5907.     ("path", ctypes.c_char_p, 1),],
  5908.     ctypes.c_void_p )
  5909.  
  5910. RNA_def_struct_identifier = _c_external_function(       "RNA_def_struct_identifier", [
  5911.     ("srna", ctypes.c_void_p, 1),
  5912.     ("identifier", ctypes.c_char_p, 1),],
  5913.     ctypes.c_void_p )
  5914.  
  5915. RNA_def_struct_ui_text = _c_external_function(      "RNA_def_struct_ui_text", [
  5916.     ("srna", ctypes.c_void_p, 1),
  5917.     ("name", ctypes.c_char_p, 1),
  5918.     ("description", ctypes.c_char_p, 1),],
  5919.     ctypes.c_void_p )
  5920.  
  5921. RNA_def_struct_ui_icon = _c_external_function(      "RNA_def_struct_ui_icon", [
  5922.     ("srna", ctypes.c_void_p, 1),
  5923.     ("icon", ctypes.c_int, 1),],
  5924.     ctypes.c_void_p )
  5925.  
  5926. RNA_struct_free_extension = _c_external_function(       "RNA_struct_free_extension", [
  5927.     ("srna", ctypes.c_void_p, 1),
  5928.     ("ext", ctypes.c_void_p, 1),],
  5929.     ctypes.c_void_p )
  5930.  
  5931. RNA_struct_free = _c_external_function(     "RNA_struct_free", [
  5932.     ("brna", ctypes.c_void_p, 1),
  5933.     ("srna", ctypes.c_void_p, 1),],
  5934.     ctypes.c_void_p )
  5935.  
  5936. #StructOrFunctionRNA                            <TypeDecl=void>
  5937. RNA_def_boolean = _c_external_function(     "RNA_def_boolean", [
  5938.     ("cont", ctypes.c_void_p, 1),
  5939.     ("identifier", ctypes.c_char_p, 1),
  5940.     ("default_value", ctypes.c_int, 1),
  5941.     ("ui_name", ctypes.c_char_p, 1),
  5942.     ("ui_description", ctypes.c_char_p, 1),],
  5943.     ctypes.c_void_p )
  5944.  
  5945. RNA_def_boolean_array = _c_external_function(       "RNA_def_boolean_array", [
  5946.     ("cont", ctypes.c_void_p, 1),
  5947.     ("identifier", ctypes.c_char_p, 1),
  5948.     ("len", ctypes.c_int, 1),
  5949.     ("default_value", ctypes.POINTER( ctypes.c_int ), 1),
  5950.     ("ui_name", ctypes.c_char_p, 1),
  5951.     ("ui_description", ctypes.c_char_p, 1),],
  5952.     ctypes.c_void_p )
  5953.  
  5954. RNA_def_boolean_layer = _c_external_function(       "RNA_def_boolean_layer", [
  5955.     ("cont", ctypes.c_void_p, 1),
  5956.     ("identifier", ctypes.c_char_p, 1),
  5957.     ("len", ctypes.c_int, 1),
  5958.     ("default_value", ctypes.POINTER( ctypes.c_int ), 1),
  5959.     ("ui_name", ctypes.c_char_p, 1),
  5960.     ("ui_description", ctypes.c_char_p, 1),],
  5961.     ctypes.c_void_p )
  5962.  
  5963. RNA_def_boolean_layer_member = _c_external_function(        "RNA_def_boolean_layer_member", [
  5964.     ("cont", ctypes.c_void_p, 1),
  5965.     ("identifier", ctypes.c_char_p, 1),
  5966.     ("len", ctypes.c_int, 1),
  5967.     ("default_value", ctypes.POINTER( ctypes.c_int ), 1),
  5968.     ("ui_name", ctypes.c_char_p, 1),
  5969.     ("ui_description", ctypes.c_char_p, 1),],
  5970.     ctypes.c_void_p )
  5971.  
  5972. RNA_def_boolean_vector = _c_external_function(      "RNA_def_boolean_vector", [
  5973.     ("cont", ctypes.c_void_p, 1),
  5974.     ("identifier", ctypes.c_char_p, 1),
  5975.     ("len", ctypes.c_int, 1),
  5976.     ("default_value", ctypes.POINTER( ctypes.c_int ), 1),
  5977.     ("ui_name", ctypes.c_char_p, 1),
  5978.     ("ui_description", ctypes.c_char_p, 1),],
  5979.     ctypes.c_void_p )
  5980.  
  5981. RNA_def_int = _c_external_function(     "RNA_def_int", [
  5982.     ("cont", ctypes.c_void_p, 1),
  5983.     ("identifier", ctypes.c_char_p, 1),
  5984.     ("default_value", ctypes.c_int, 1),
  5985.     ("hardmin", ctypes.c_int, 1),
  5986.     ("hardmax", ctypes.c_int, 1),
  5987.     ("ui_name", ctypes.c_char_p, 1),
  5988.     ("ui_description", ctypes.c_char_p, 1),
  5989.     ("softmin", ctypes.c_int, 1),
  5990.     ("softmax", ctypes.c_int, 1),],
  5991.     ctypes.c_void_p )
  5992.  
  5993. RNA_def_int_vector = _c_external_function(      "RNA_def_int_vector", [
  5994.     ("cont", ctypes.c_void_p, 1),
  5995.     ("identifier", ctypes.c_char_p, 1),
  5996.     ("len", ctypes.c_int, 1),
  5997.     ("default_value", ctypes.POINTER( ctypes.c_int ), 1),
  5998.     ("hardmin", ctypes.c_int, 1),
  5999.     ("hardmax", ctypes.c_int, 1),
  6000.     ("ui_name", ctypes.c_char_p, 1),
  6001.     ("ui_description", ctypes.c_char_p, 1),
  6002.     ("softmin", ctypes.c_int, 1),
  6003.     ("softmax", ctypes.c_int, 1),],
  6004.     ctypes.c_void_p )
  6005.  
  6006. RNA_def_int_array = _c_external_function(       "RNA_def_int_array", [
  6007.     ("cont", ctypes.c_void_p, 1),
  6008.     ("identifier", ctypes.c_char_p, 1),
  6009.     ("len", ctypes.c_int, 1),
  6010.     ("default_value", ctypes.POINTER( ctypes.c_int ), 1),
  6011.     ("hardmin", ctypes.c_int, 1),
  6012.     ("hardmax", ctypes.c_int, 1),
  6013.     ("ui_name", ctypes.c_char_p, 1),
  6014.     ("ui_description", ctypes.c_char_p, 1),
  6015.     ("softmin", ctypes.c_int, 1),
  6016.     ("softmax", ctypes.c_int, 1),],
  6017.     ctypes.c_void_p )
  6018.  
  6019. RNA_def_string = _c_external_function(      "RNA_def_string", [
  6020.     ("cont", ctypes.c_void_p, 1),
  6021.     ("identifier", ctypes.c_char_p, 1),
  6022.     ("default_value", ctypes.c_char_p, 1),
  6023.     ("maxlen", ctypes.c_int, 1),
  6024.     ("ui_name", ctypes.c_char_p, 1),
  6025.     ("ui_description", ctypes.c_char_p, 1),],
  6026.     ctypes.c_void_p )
  6027.  
  6028. RNA_def_string_file_path = _c_external_function(        "RNA_def_string_file_path", [
  6029.     ("cont", ctypes.c_void_p, 1),
  6030.     ("identifier", ctypes.c_char_p, 1),
  6031.     ("default_value", ctypes.c_char_p, 1),
  6032.     ("maxlen", ctypes.c_int, 1),
  6033.     ("ui_name", ctypes.c_char_p, 1),
  6034.     ("ui_description", ctypes.c_char_p, 1),],
  6035.     ctypes.c_void_p )
  6036.  
  6037. RNA_def_string_dir_path = _c_external_function(     "RNA_def_string_dir_path", [
  6038.     ("cont", ctypes.c_void_p, 1),
  6039.     ("identifier", ctypes.c_char_p, 1),
  6040.     ("default_value", ctypes.c_char_p, 1),
  6041.     ("maxlen", ctypes.c_int, 1),
  6042.     ("ui_name", ctypes.c_char_p, 1),
  6043.     ("ui_description", ctypes.c_char_p, 1),],
  6044.     ctypes.c_void_p )
  6045.  
  6046. RNA_def_string_file_name = _c_external_function(        "RNA_def_string_file_name", [
  6047.     ("cont", ctypes.c_void_p, 1),
  6048.     ("identifier", ctypes.c_char_p, 1),
  6049.     ("default_value", ctypes.c_char_p, 1),
  6050.     ("maxlen", ctypes.c_int, 1),
  6051.     ("ui_name", ctypes.c_char_p, 1),
  6052.     ("ui_description", ctypes.c_char_p, 1),],
  6053.     ctypes.c_void_p )
  6054.  
  6055. RNA_def_enum = _c_external_function(        "RNA_def_enum", [
  6056.     ("cont", ctypes.c_void_p, 1),
  6057.     ("identifier", ctypes.c_char_p, 1),
  6058.     ("items", ctypes.c_void_p, 1),
  6059.     ("default_value", ctypes.c_int, 1),
  6060.     ("ui_name", ctypes.c_char_p, 1),
  6061.     ("ui_description", ctypes.c_char_p, 1),],
  6062.     ctypes.c_void_p )
  6063.  
  6064. RNA_def_enum_funcs = _c_external_function(      "RNA_def_enum_funcs", [
  6065.     ("prop", ctypes.c_void_p, 1),
  6066.     ("itemfunc", ctypes.c_void_p, 1),],
  6067.     ctypes.c_void_p )
  6068.  
  6069. RNA_def_float = _c_external_function(       "RNA_def_float", [
  6070.     ("cont", ctypes.c_void_p, 1),
  6071.     ("identifier", ctypes.c_char_p, 1),
  6072.     ("default_value", ctypes.c_float, 1),
  6073.     ("hardmin", ctypes.c_float, 1),
  6074.     ("hardmax", ctypes.c_float, 1),
  6075.     ("ui_name", ctypes.c_char_p, 1),
  6076.     ("ui_description", ctypes.c_char_p, 1),
  6077.     ("softmin", ctypes.c_float, 1),
  6078.     ("softmax", ctypes.c_float, 1),],
  6079.     ctypes.c_void_p )
  6080.  
  6081. RNA_def_float_vector = _c_external_function(        "RNA_def_float_vector", [
  6082.     ("cont", ctypes.c_void_p, 1),
  6083.     ("identifier", ctypes.c_char_p, 1),
  6084.     ("len", ctypes.c_int, 1),
  6085.     ("default_value", ctypes.POINTER( ctypes.c_float ), 1),
  6086.     ("hardmin", ctypes.c_float, 1),
  6087.     ("hardmax", ctypes.c_float, 1),
  6088.     ("ui_name", ctypes.c_char_p, 1),
  6089.     ("ui_description", ctypes.c_char_p, 1),
  6090.     ("softmin", ctypes.c_float, 1),
  6091.     ("softmax", ctypes.c_float, 1),],
  6092.     ctypes.c_void_p )
  6093.  
  6094. RNA_def_float_vector_xyz = _c_external_function(        "RNA_def_float_vector_xyz", [
  6095.     ("cont", ctypes.c_void_p, 1),
  6096.     ("identifier", ctypes.c_char_p, 1),
  6097.     ("len", ctypes.c_int, 1),
  6098.     ("default_value", ctypes.POINTER( ctypes.c_float ), 1),
  6099.     ("hardmin", ctypes.c_float, 1),
  6100.     ("hardmax", ctypes.c_float, 1),
  6101.     ("ui_name", ctypes.c_char_p, 1),
  6102.     ("ui_description", ctypes.c_char_p, 1),
  6103.     ("softmin", ctypes.c_float, 1),
  6104.     ("softmax", ctypes.c_float, 1),],
  6105.     ctypes.c_void_p )
  6106.  
  6107. RNA_def_float_color = _c_external_function(     "RNA_def_float_color", [
  6108.     ("cont", ctypes.c_void_p, 1),
  6109.     ("identifier", ctypes.c_char_p, 1),
  6110.     ("len", ctypes.c_int, 1),
  6111.     ("default_value", ctypes.POINTER( ctypes.c_float ), 1),
  6112.     ("hardmin", ctypes.c_float, 1),
  6113.     ("hardmax", ctypes.c_float, 1),
  6114.     ("ui_name", ctypes.c_char_p, 1),
  6115.     ("ui_description", ctypes.c_char_p, 1),
  6116.     ("softmin", ctypes.c_float, 1),
  6117.     ("softmax", ctypes.c_float, 1),],
  6118.     ctypes.c_void_p )
  6119.  
  6120. RNA_def_float_matrix = _c_external_function(        "RNA_def_float_matrix", [
  6121.     ("cont", ctypes.c_void_p, 1),
  6122.     ("identifier", ctypes.c_char_p, 1),
  6123.     ("rows", ctypes.c_int, 1),
  6124.     ("columns", ctypes.c_int, 1),
  6125.     ("default_value", ctypes.POINTER( ctypes.c_float ), 1),
  6126.     ("hardmin", ctypes.c_float, 1),
  6127.     ("hardmax", ctypes.c_float, 1),
  6128.     ("ui_name", ctypes.c_char_p, 1),
  6129.     ("ui_description", ctypes.c_char_p, 1),
  6130.     ("softmin", ctypes.c_float, 1),
  6131.     ("softmax", ctypes.c_float, 1),],
  6132.     ctypes.c_void_p )
  6133.  
  6134. RNA_def_float_rotation = _c_external_function(      "RNA_def_float_rotation", [
  6135.     ("cont", ctypes.c_void_p, 1),
  6136.     ("identifier", ctypes.c_char_p, 1),
  6137.     ("len", ctypes.c_int, 1),
  6138.     ("default_value", ctypes.POINTER( ctypes.c_float ), 1),
  6139.     ("hardmin", ctypes.c_float, 1),
  6140.     ("hardmax", ctypes.c_float, 1),
  6141.     ("ui_name", ctypes.c_char_p, 1),
  6142.     ("ui_description", ctypes.c_char_p, 1),
  6143.     ("softmin", ctypes.c_float, 1),
  6144.     ("softmax", ctypes.c_float, 1),],
  6145.     ctypes.c_void_p )
  6146.  
  6147. RNA_def_float_array = _c_external_function(     "RNA_def_float_array", [
  6148.     ("cont", ctypes.c_void_p, 1),
  6149.     ("identifier", ctypes.c_char_p, 1),
  6150.     ("len", ctypes.c_int, 1),
  6151.     ("default_value", ctypes.POINTER( ctypes.c_float ), 1),
  6152.     ("hardmin", ctypes.c_float, 1),
  6153.     ("hardmax", ctypes.c_float, 1),
  6154.     ("ui_name", ctypes.c_char_p, 1),
  6155.     ("ui_description", ctypes.c_char_p, 1),
  6156.     ("softmin", ctypes.c_float, 1),
  6157.     ("softmax", ctypes.c_float, 1),],
  6158.     ctypes.c_void_p )
  6159.  
  6160. RNA_def_float_percentage = _c_external_function(        "RNA_def_float_percentage", [
  6161.     ("cont", ctypes.c_void_p, 1),
  6162.     ("identifier", ctypes.c_char_p, 1),
  6163.     ("default_value", ctypes.c_float, 1),
  6164.     ("hardmin", ctypes.c_float, 1),
  6165.     ("hardmax", ctypes.c_float, 1),
  6166.     ("ui_name", ctypes.c_char_p, 1),
  6167.     ("ui_description", ctypes.c_char_p, 1),
  6168.     ("softmin", ctypes.c_float, 1),
  6169.     ("softmax", ctypes.c_float, 1),],
  6170.     ctypes.c_void_p )
  6171.  
  6172. RNA_def_float_factor = _c_external_function(        "RNA_def_float_factor", [
  6173.     ("cont", ctypes.c_void_p, 1),
  6174.     ("identifier", ctypes.c_char_p, 1),
  6175.     ("default_value", ctypes.c_float, 1),
  6176.     ("hardmin", ctypes.c_float, 1),
  6177.     ("hardmax", ctypes.c_float, 1),
  6178.     ("ui_name", ctypes.c_char_p, 1),
  6179.     ("ui_description", ctypes.c_char_p, 1),
  6180.     ("softmin", ctypes.c_float, 1),
  6181.     ("softmax", ctypes.c_float, 1),],
  6182.     ctypes.c_void_p )
  6183.  
  6184. RNA_def_pointer = _c_external_function(     "RNA_def_pointer", [
  6185.     ("cont", ctypes.c_void_p, 1),
  6186.     ("identifier", ctypes.c_char_p, 1),
  6187.     ("type", ctypes.c_char_p, 1),
  6188.     ("ui_name", ctypes.c_char_p, 1),
  6189.     ("ui_description", ctypes.c_char_p, 1),],
  6190.     ctypes.c_void_p )
  6191.  
  6192. RNA_def_pointer_runtime = _c_external_function(     "RNA_def_pointer_runtime", [
  6193.     ("cont", ctypes.c_void_p, 1),
  6194.     ("identifier", ctypes.c_char_p, 1),
  6195.     ("type", ctypes.c_void_p, 1),
  6196.     ("ui_name", ctypes.c_char_p, 1),
  6197.     ("ui_description", ctypes.c_char_p, 1),],
  6198.     ctypes.c_void_p )
  6199.  
  6200. RNA_def_collection = _c_external_function(      "RNA_def_collection", [
  6201.     ("cont", ctypes.c_void_p, 1),
  6202.     ("identifier", ctypes.c_char_p, 1),
  6203.     ("type", ctypes.c_char_p, 1),
  6204.     ("ui_name", ctypes.c_char_p, 1),
  6205.     ("ui_description", ctypes.c_char_p, 1),],
  6206.     ctypes.c_void_p )
  6207.  
  6208. RNA_def_collection_runtime = _c_external_function(      "RNA_def_collection_runtime", [
  6209.     ("cont", ctypes.c_void_p, 1),
  6210.     ("identifier", ctypes.c_char_p, 1),
  6211.     ("type", ctypes.c_void_p, 1),
  6212.     ("ui_name", ctypes.c_char_p, 1),
  6213.     ("ui_description", ctypes.c_char_p, 1),],
  6214.     ctypes.c_void_p )
  6215.  
  6216. RNA_def_property = _c_external_function(        "RNA_def_property", [
  6217.     ("cont", ctypes.c_void_p, 1),
  6218.     ("identifier", ctypes.c_char_p, 1),
  6219.     ("type", ctypes.c_int, 1),
  6220.     ("subtype", ctypes.c_int, 1),],
  6221.     ctypes.c_void_p )
  6222.  
  6223. RNA_def_property_boolean_sdna = _c_external_function(       "RNA_def_property_boolean_sdna", [
  6224.     ("prop", ctypes.c_void_p, 1),
  6225.     ("structname", ctypes.c_char_p, 1),
  6226.     ("propname", ctypes.c_char_p, 1),
  6227.     ("bit", ctypes.c_int, 1),],
  6228.     ctypes.c_void_p )
  6229.  
  6230. RNA_def_property_boolean_negative_sdna = _c_external_function(      "RNA_def_property_boolean_negative_sdna", [
  6231.     ("prop", ctypes.c_void_p, 1),
  6232.     ("structname", ctypes.c_char_p, 1),
  6233.     ("propname", ctypes.c_char_p, 1),
  6234.     ("bit", ctypes.c_int, 1),],
  6235.     ctypes.c_void_p )
  6236.  
  6237. RNA_def_property_int_sdna = _c_external_function(       "RNA_def_property_int_sdna", [
  6238.     ("prop", ctypes.c_void_p, 1),
  6239.     ("structname", ctypes.c_char_p, 1),
  6240.     ("propname", ctypes.c_char_p, 1),],
  6241.     ctypes.c_void_p )
  6242.  
  6243. RNA_def_property_float_sdna = _c_external_function(     "RNA_def_property_float_sdna", [
  6244.     ("prop", ctypes.c_void_p, 1),
  6245.     ("structname", ctypes.c_char_p, 1),
  6246.     ("propname", ctypes.c_char_p, 1),],
  6247.     ctypes.c_void_p )
  6248.  
  6249. RNA_def_property_string_sdna = _c_external_function(        "RNA_def_property_string_sdna", [
  6250.     ("prop", ctypes.c_void_p, 1),
  6251.     ("structname", ctypes.c_char_p, 1),
  6252.     ("propname", ctypes.c_char_p, 1),],
  6253.     ctypes.c_void_p )
  6254.  
  6255. RNA_def_property_enum_sdna = _c_external_function(      "RNA_def_property_enum_sdna", [
  6256.     ("prop", ctypes.c_void_p, 1),
  6257.     ("structname", ctypes.c_char_p, 1),
  6258.     ("propname", ctypes.c_char_p, 1),],
  6259.     ctypes.c_void_p )
  6260.  
  6261. RNA_def_property_enum_bitflag_sdna = _c_external_function(      "RNA_def_property_enum_bitflag_sdna", [
  6262.     ("prop", ctypes.c_void_p, 1),
  6263.     ("structname", ctypes.c_char_p, 1),
  6264.     ("propname", ctypes.c_char_p, 1),],
  6265.     ctypes.c_void_p )
  6266.  
  6267. RNA_def_property_pointer_sdna = _c_external_function(       "RNA_def_property_pointer_sdna", [
  6268.     ("prop", ctypes.c_void_p, 1),
  6269.     ("structname", ctypes.c_char_p, 1),
  6270.     ("propname", ctypes.c_char_p, 1),],
  6271.     ctypes.c_void_p )
  6272.  
  6273. RNA_def_property_collection_sdna = _c_external_function(        "RNA_def_property_collection_sdna", [
  6274.     ("prop", ctypes.c_void_p, 1),
  6275.     ("structname", ctypes.c_char_p, 1),
  6276.     ("propname", ctypes.c_char_p, 1),
  6277.     ("lengthpropname", ctypes.c_char_p, 1),],
  6278.     ctypes.c_void_p )
  6279.  
  6280. RNA_def_property_flag = _c_external_function(       "RNA_def_property_flag", [
  6281.     ("prop", ctypes.c_void_p, 1),
  6282.     ("flag", ctypes.c_int, 1),],
  6283.     ctypes.c_void_p )
  6284.  
  6285. RNA_def_property_clear_flag = _c_external_function(     "RNA_def_property_clear_flag", [
  6286.     ("prop", ctypes.c_void_p, 1),
  6287.     ("flag", ctypes.c_int, 1),],
  6288.     ctypes.c_void_p )
  6289.  
  6290. RNA_def_property_array = _c_external_function(      "RNA_def_property_array", [
  6291.     ("prop", ctypes.c_void_p, 1),
  6292.     ("length", ctypes.c_int, 1),],
  6293.     ctypes.c_void_p )
  6294.  
  6295. RNA_def_property_multi_array = _c_external_function(        "RNA_def_property_multi_array", [
  6296.     ("prop", ctypes.c_void_p, 1),
  6297.     ("dimension", ctypes.c_int, 1),
  6298.     ("length", ctypes.c_int, 1),],
  6299.     ctypes.c_void_p )
  6300.  
  6301. RNA_def_property_range = _c_external_function(      "RNA_def_property_range", [
  6302.     ("prop", ctypes.c_void_p, 1),
  6303.     ("min", ctypes.c_double, 1),
  6304.     ("max", ctypes.c_double, 1),],
  6305.     ctypes.c_void_p )
  6306.  
  6307. RNA_def_property_enum_items = _c_external_function(     "RNA_def_property_enum_items", [
  6308.     ("prop", ctypes.c_void_p, 1),
  6309.     ("item", ctypes.c_void_p, 1),],
  6310.     ctypes.c_void_p )
  6311.  
  6312. RNA_def_property_string_maxlength = _c_external_function(       "RNA_def_property_string_maxlength", [
  6313.     ("prop", ctypes.c_void_p, 1),
  6314.     ("maxlength", ctypes.c_int, 1),],
  6315.     ctypes.c_void_p )
  6316.  
  6317. RNA_def_property_struct_type = _c_external_function(        "RNA_def_property_struct_type", [
  6318.     ("prop", ctypes.c_void_p, 1),
  6319.     ("type", ctypes.c_char_p, 1),],
  6320.     ctypes.c_void_p )
  6321.  
  6322. RNA_def_property_struct_runtime = _c_external_function(     "RNA_def_property_struct_runtime", [
  6323.     ("prop", ctypes.c_void_p, 1),
  6324.     ("type", ctypes.c_void_p, 1),],
  6325.     ctypes.c_void_p )
  6326.  
  6327. RNA_def_property_boolean_default = _c_external_function(        "RNA_def_property_boolean_default", [
  6328.     ("prop", ctypes.c_void_p, 1),
  6329.     ("value", ctypes.c_int, 1),],
  6330.     ctypes.c_void_p )
  6331.  
  6332. RNA_def_property_boolean_array_default = _c_external_function(      "RNA_def_property_boolean_array_default", [
  6333.     ("prop", ctypes.c_void_p, 1),
  6334.     ("array", ctypes.POINTER( ctypes.c_int ), 1),],
  6335.     ctypes.c_void_p )
  6336.  
  6337. RNA_def_property_int_default = _c_external_function(        "RNA_def_property_int_default", [
  6338.     ("prop", ctypes.c_void_p, 1),
  6339.     ("value", ctypes.c_int, 1),],
  6340.     ctypes.c_void_p )
  6341.  
  6342. RNA_def_property_int_array_default = _c_external_function(      "RNA_def_property_int_array_default", [
  6343.     ("prop", ctypes.c_void_p, 1),
  6344.     ("array", ctypes.POINTER( ctypes.c_int ), 1),],
  6345.     ctypes.c_void_p )
  6346.  
  6347. RNA_def_property_float_default = _c_external_function(      "RNA_def_property_float_default", [
  6348.     ("prop", ctypes.c_void_p, 1),
  6349.     ("value", ctypes.c_float, 1),],
  6350.     ctypes.c_void_p )
  6351.  
  6352. RNA_def_property_float_array_default = _c_external_function(        "RNA_def_property_float_array_default", [
  6353.     ("prop", ctypes.c_void_p, 1),
  6354.     ("array", ctypes.POINTER( ctypes.c_float ), 1),],
  6355.     ctypes.c_void_p )
  6356.  
  6357. RNA_def_property_enum_default = _c_external_function(       "RNA_def_property_enum_default", [
  6358.     ("prop", ctypes.c_void_p, 1),
  6359.     ("value", ctypes.c_int, 1),],
  6360.     ctypes.c_void_p )
  6361.  
  6362. RNA_def_property_string_default = _c_external_function(     "RNA_def_property_string_default", [
  6363.     ("prop", ctypes.c_void_p, 1),
  6364.     ("value", ctypes.c_char_p, 1),],
  6365.     ctypes.c_void_p )
  6366.  
  6367. RNA_def_property_ui_text = _c_external_function(        "RNA_def_property_ui_text", [
  6368.     ("prop", ctypes.c_void_p, 1),
  6369.     ("name", ctypes.c_char_p, 1),
  6370.     ("description", ctypes.c_char_p, 1),],
  6371.     ctypes.c_void_p )
  6372.  
  6373. RNA_def_property_ui_range = _c_external_function(       "RNA_def_property_ui_range", [
  6374.     ("prop", ctypes.c_void_p, 1),
  6375.     ("min", ctypes.c_double, 1),
  6376.     ("max", ctypes.c_double, 1),
  6377.     ("step", ctypes.c_double, 1),
  6378.     ("precision", ctypes.c_int, 1),],
  6379.     ctypes.c_void_p )
  6380.  
  6381. RNA_def_property_ui_icon = _c_external_function(        "RNA_def_property_ui_icon", [
  6382.     ("prop", ctypes.c_void_p, 1),
  6383.     ("icon", ctypes.c_int, 1),
  6384.     ("consecutive", ctypes.c_int, 1),],
  6385.     ctypes.c_void_p )
  6386.  
  6387. RNA_def_property_update = _c_external_function(     "RNA_def_property_update", [
  6388.     ("prop", ctypes.c_void_p, 1),
  6389.     ("noteflag", ctypes.c_int, 1),
  6390.     ("updatefunc", ctypes.c_char_p, 1),],
  6391.     ctypes.c_void_p )
  6392.  
  6393. RNA_def_property_editable_func = _c_external_function(      "RNA_def_property_editable_func", [
  6394.     ("prop", ctypes.c_void_p, 1),
  6395.     ("editable", ctypes.c_char_p, 1),],
  6396.     ctypes.c_void_p )
  6397.  
  6398. RNA_def_property_editable_array_func = _c_external_function(        "RNA_def_property_editable_array_func", [
  6399.     ("prop", ctypes.c_void_p, 1),
  6400.     ("editable", ctypes.c_char_p, 1),],
  6401.     ctypes.c_void_p )
  6402.  
  6403. RNA_def_property_dynamic_array_funcs = _c_external_function(        "RNA_def_property_dynamic_array_funcs", [
  6404.     ("prop", ctypes.c_void_p, 1),
  6405.     ("getlength", ctypes.c_char_p, 1),],
  6406.     ctypes.c_void_p )
  6407.  
  6408. RNA_def_property_boolean_funcs = _c_external_function(      "RNA_def_property_boolean_funcs", [
  6409.     ("prop", ctypes.c_void_p, 1),
  6410.     ("get", ctypes.c_char_p, 1),
  6411.     ("set", ctypes.c_char_p, 1),],
  6412.     ctypes.c_void_p )
  6413.  
  6414. RNA_def_property_int_funcs = _c_external_function(      "RNA_def_property_int_funcs", [
  6415.     ("prop", ctypes.c_void_p, 1),
  6416.     ("get", ctypes.c_char_p, 1),
  6417.     ("set", ctypes.c_char_p, 1),
  6418.     ("range", ctypes.c_char_p, 1),],
  6419.     ctypes.c_void_p )
  6420.  
  6421. RNA_def_property_float_funcs = _c_external_function(        "RNA_def_property_float_funcs", [
  6422.     ("prop", ctypes.c_void_p, 1),
  6423.     ("get", ctypes.c_char_p, 1),
  6424.     ("set", ctypes.c_char_p, 1),
  6425.     ("range", ctypes.c_char_p, 1),],
  6426.     ctypes.c_void_p )
  6427.  
  6428. RNA_def_property_enum_funcs = _c_external_function(     "RNA_def_property_enum_funcs", [
  6429.     ("prop", ctypes.c_void_p, 1),
  6430.     ("get", ctypes.c_char_p, 1),
  6431.     ("set", ctypes.c_char_p, 1),
  6432.     ("item", ctypes.c_char_p, 1),],
  6433.     ctypes.c_void_p )
  6434.  
  6435. RNA_def_property_string_funcs = _c_external_function(       "RNA_def_property_string_funcs", [
  6436.     ("prop", ctypes.c_void_p, 1),
  6437.     ("get", ctypes.c_char_p, 1),
  6438.     ("length", ctypes.c_char_p, 1),
  6439.     ("set", ctypes.c_char_p, 1),],
  6440.     ctypes.c_void_p )
  6441.  
  6442. RNA_def_property_pointer_funcs = _c_external_function(      "RNA_def_property_pointer_funcs", [
  6443.     ("prop", ctypes.c_void_p, 1),
  6444.     ("get", ctypes.c_char_p, 1),
  6445.     ("set", ctypes.c_char_p, 1),
  6446.     ("typef", ctypes.c_char_p, 1),
  6447.     ("poll", ctypes.c_char_p, 1),],
  6448.     ctypes.c_void_p )
  6449.  
  6450. RNA_def_property_collection_funcs = _c_external_function(       "RNA_def_property_collection_funcs", [
  6451.     ("prop", ctypes.c_void_p, 1),
  6452.     ("begin", ctypes.c_char_p, 1),
  6453.     ("next", ctypes.c_char_p, 1),
  6454.     ("end", ctypes.c_char_p, 1),
  6455.     ("get", ctypes.c_char_p, 1),
  6456.     ("length", ctypes.c_char_p, 1),
  6457.     ("lookupint", ctypes.c_char_p, 1),
  6458.     ("lookupstring", ctypes.c_char_p, 1),],
  6459.     ctypes.c_void_p )
  6460.  
  6461. RNA_def_property_srna = _c_external_function(       "RNA_def_property_srna", [
  6462.     ("prop", ctypes.c_void_p, 1),
  6463.     ("type", ctypes.c_char_p, 1),],
  6464.     ctypes.c_void_p )
  6465.  
  6466. RNA_def_function = _c_external_function(        "RNA_def_function", [
  6467.     ("srna", ctypes.c_void_p, 1),
  6468.     ("identifier", ctypes.c_char_p, 1),
  6469.     ("call", ctypes.c_char_p, 1),],
  6470.     ctypes.c_void_p )
  6471.  
  6472. RNA_def_function_runtime = _c_external_function(        "RNA_def_function_runtime", [
  6473.     ("srna", ctypes.c_void_p, 1),
  6474.     ("identifier", ctypes.c_char_p, 1),
  6475.     ("call", ctypes.c_void_p, 1),],
  6476.     ctypes.c_void_p )
  6477.  
  6478. RNA_def_function_return = _c_external_function(     "RNA_def_function_return", [
  6479.     ("func", ctypes.c_void_p, 1),
  6480.     ("ret", ctypes.c_void_p, 1),],
  6481.     ctypes.c_void_p )
  6482.  
  6483. RNA_def_function_output = _c_external_function(     "RNA_def_function_output", [
  6484.     ("func", ctypes.c_void_p, 1),
  6485.     ("ret", ctypes.c_void_p, 1),],
  6486.     ctypes.c_void_p )
  6487.  
  6488. RNA_def_function_flag = _c_external_function(       "RNA_def_function_flag", [
  6489.     ("func", ctypes.c_void_p, 1),
  6490.     ("flag", ctypes.c_int, 1),],
  6491.     ctypes.c_void_p )
  6492.  
  6493. RNA_def_function_ui_description = _c_external_function(     "RNA_def_function_ui_description", [
  6494.     ("func", ctypes.c_void_p, 1),
  6495.     ("description", ctypes.c_char_p, 1),],
  6496.     ctypes.c_void_p )
  6497.  
  6498. RNA_enum_item_add = _c_external_function(       "RNA_enum_item_add", [
  6499.     ("items", ctypes.c_void_p, 1),
  6500.     ("totitem", ctypes.POINTER( ctypes.c_int ), 1),
  6501.     ("item", ctypes.c_void_p, 1),],
  6502.     ctypes.c_void_p )
  6503.  
  6504. RNA_enum_item_add_separator = _c_external_function(     "RNA_enum_item_add_separator", [
  6505.     ("items", ctypes.c_void_p, 1),
  6506.     ("totitem", ctypes.POINTER( ctypes.c_int ), 1),],
  6507.     ctypes.c_void_p )
  6508.  
  6509. RNA_enum_items_add = _c_external_function(      "RNA_enum_items_add", [
  6510.     ("items", ctypes.c_void_p, 1),
  6511.     ("totitem", ctypes.POINTER( ctypes.c_int ), 1),
  6512.     ("item", ctypes.c_void_p, 1),],
  6513.     ctypes.c_void_p )
  6514.  
  6515. RNA_enum_items_add_value = _c_external_function(        "RNA_enum_items_add_value", [
  6516.     ("items", ctypes.c_void_p, 1),
  6517.     ("totitem", ctypes.POINTER( ctypes.c_int ), 1),
  6518.     ("item", ctypes.c_void_p, 1),
  6519.     ("value", ctypes.c_int, 1),],
  6520.     ctypes.c_void_p )
  6521.  
  6522. RNA_enum_item_end = _c_external_function(       "RNA_enum_item_end", [
  6523.     ("items", ctypes.c_void_p, 1),
  6524.     ("totitem", ctypes.POINTER( ctypes.c_int ), 1),],
  6525.     ctypes.c_void_p )
  6526.  
  6527. RNA_def_struct_duplicate_pointers = _c_external_function(       "RNA_def_struct_duplicate_pointers", [
  6528.     ("srna", ctypes.c_void_p, 1),],
  6529.     ctypes.c_void_p )
  6530.  
  6531. RNA_def_struct_free_pointers = _c_external_function(        "RNA_def_struct_free_pointers", [
  6532.     ("srna", ctypes.c_void_p, 1),],
  6533.     ctypes.c_void_p )
  6534.  
  6535. RNA_def_func_duplicate_pointers = _c_external_function(     "RNA_def_func_duplicate_pointers", [
  6536.     ("func", ctypes.c_void_p, 1),],
  6537.     ctypes.c_void_p )
  6538.  
  6539. RNA_def_func_free_pointers = _c_external_function(      "RNA_def_func_free_pointers", [
  6540.     ("func", ctypes.c_void_p, 1),],
  6541.     ctypes.c_void_p )
  6542.  
  6543. RNA_def_property_duplicate_pointers = _c_external_function(     "RNA_def_property_duplicate_pointers", [
  6544.     ("cont_", ctypes.c_void_p, 1),
  6545.     ("prop", ctypes.c_void_p, 1),],
  6546.     ctypes.c_void_p )
  6547.  
  6548. RNA_def_property_free_pointers = _c_external_function(      "RNA_def_property_free_pointers", [
  6549.     ("prop", ctypes.c_void_p, 1),],
  6550.     ctypes.c_void_p )
  6551.  
  6552. RNA_def_property_free_identifier = _c_external_function(        "RNA_def_property_free_identifier", [
  6553.     ("cont_", ctypes.c_void_p, 1),
  6554.     ("identifier", ctypes.c_char_p, 1),],
  6555.     ctypes.c_int )
  6556.  
  6557. #class Image(ctypes.Structure): pass        # typedef or forward reference #
  6558. #class ImageUser(ctypes.Structure): pass        # typedef or forward reference #
  6559. #class MTFace(ctypes.Structure): pass       # typedef or forward reference #
  6560. #class Object(ctypes.Structure): pass       # typedef or forward reference #
  6561. #class Scene(ctypes.Structure): pass        # typedef or forward reference #
  6562. #class View3D(ctypes.Structure): pass       # typedef or forward reference #
  6563. #class RegionView3D(ctypes.Structure): pass     # typedef or forward reference #
  6564. #class SmokeModifierData(ctypes.Structure): pass        # typedef or forward reference #
  6565. GPU_state_init = _c_external_function(      "GPU_state_init", [],
  6566.     ctypes.c_void_p )
  6567.  
  6568. GPU_state_print = _c_external_function(     "GPU_state_print", [],
  6569.     ctypes.c_void_p )
  6570.  
  6571. GPU_begin_object_materials = _c_external_function(      "GPU_begin_object_materials", [
  6572.     ("v3d", ctypes.c_void_p, 1),
  6573.     ("rv3d", ctypes.c_void_p, 1),
  6574.     ("scene", ctypes.c_void_p, 1),
  6575.     ("ob", ctypes.c_void_p, 1),
  6576.     ("glsl", ctypes.c_int, 1),
  6577.     ("do_alpha_pass", ctypes.POINTER( ctypes.c_int ), 1),],
  6578.     ctypes.c_void_p )
  6579.  
  6580. GPU_end_object_materials = _c_external_function(        "GPU_end_object_materials", [],
  6581.     ctypes.c_void_p )
  6582.  
  6583. GPU_enable_material = _c_external_function(     "GPU_enable_material", [
  6584.     ("nr", ctypes.c_int, 1),
  6585.     ("attribs", ctypes.POINTER( ctypes.c_void_p ), 1),],
  6586.     ctypes.c_int )
  6587.  
  6588. GPU_disable_material = _c_external_function(        "GPU_disable_material", [],
  6589.     ctypes.c_void_p )
  6590.  
  6591. GPU_set_material_blend_mode = _c_external_function(     "GPU_set_material_blend_mode", [
  6592.     ("blendmode", ctypes.c_int, 1),],
  6593.     ctypes.c_void_p )
  6594.  
  6595. GPU_get_material_blend_mode = _c_external_function(     "GPU_get_material_blend_mode", [],
  6596.     ctypes.c_int )
  6597.  
  6598. GPU_set_tpage = _c_external_function(       "GPU_set_tpage", [
  6599.     ("tface", ctypes.c_void_p, 1),
  6600.     ("mipmap", ctypes.c_int, 1),],
  6601.     ctypes.c_int )
  6602.  
  6603. GPU_default_lights = _c_external_function(      "GPU_default_lights", [],
  6604.     ctypes.c_int )
  6605.  
  6606. GPU_scene_object_lights = _c_external_function(     "GPU_scene_object_lights", [
  6607.     ("scene", ctypes.c_void_p, 1),
  6608.     ("ob", ctypes.c_void_p, 1),
  6609.     ("lay", ctypes.c_int, 1),
  6610.     ("viewmat", ctypes.c_float, 1),
  6611.     ("ortho", ctypes.c_int, 1),],
  6612.     ctypes.c_int )
  6613.  
  6614. GPU_render_text = _c_external_function(     "GPU_render_text", [
  6615.     ("tface", ctypes.c_void_p, 1),
  6616.     ("mode", ctypes.c_int, 1),
  6617.     ("textstr", ctypes.c_char_p, 1),
  6618.     ("textlen", ctypes.c_int, 1),
  6619.     ("col", ctypes.POINTER( ctypes.c_int ), 1),
  6620.     ("v1", ctypes.POINTER( ctypes.c_float ), 1),
  6621.     ("v2", ctypes.POINTER( ctypes.c_float ), 1),
  6622.     ("v3", ctypes.POINTER( ctypes.c_float ), 1),
  6623.     ("v4", ctypes.POINTER( ctypes.c_float ), 1),
  6624.     ("glattrib", ctypes.c_int, 1),],
  6625.     ctypes.c_void_p )
  6626.  
  6627. GPU_set_mipmap = _c_external_function(      "GPU_set_mipmap", [
  6628.     ("mipmap", ctypes.c_int, 1),],
  6629.     ctypes.c_void_p )
  6630.  
  6631. GPU_set_linear_mipmap = _c_external_function(       "GPU_set_linear_mipmap", [
  6632.     ("linear", ctypes.c_int, 1),],
  6633.     ctypes.c_void_p )
  6634.  
  6635. GPU_paint_set_mipmap = _c_external_function(        "GPU_paint_set_mipmap", [
  6636.     ("mipmap", ctypes.c_int, 1),],
  6637.     ctypes.c_void_p )
  6638.  
  6639. GPU_paint_update_image = _c_external_function(      "GPU_paint_update_image", [
  6640.     ("ima", ctypes.c_void_p, 1),
  6641.     ("x", ctypes.c_int, 1),
  6642.     ("y", ctypes.c_int, 1),
  6643.     ("w", ctypes.c_int, 1),
  6644.     ("h", ctypes.c_int, 1),
  6645.     ("mipmap", ctypes.c_int, 1),],
  6646.     ctypes.c_void_p )
  6647.  
  6648. GPU_update_images_framechange = _c_external_function(       "GPU_update_images_framechange", [],
  6649.     ctypes.c_void_p )
  6650.  
  6651. GPU_update_image_time = _c_external_function(       "GPU_update_image_time", [
  6652.     ("ima", ctypes.c_void_p, 1),
  6653.     ("time", ctypes.c_double, 1),],
  6654.     ctypes.c_int )
  6655.  
  6656. GPU_verify_image = _c_external_function(        "GPU_verify_image", [
  6657.     ("ima", ctypes.c_void_p, 1),
  6658.     ("iuser", ctypes.c_void_p, 1),
  6659.     ("tftile", ctypes.c_int, 1),
  6660.     ("tfmode", ctypes.c_int, 1),
  6661.     ("compare", ctypes.c_int, 1),
  6662.     ("mipmap", ctypes.c_int, 1),],
  6663.     ctypes.c_int )
  6664.  
  6665. GPU_free_image = _c_external_function(      "GPU_free_image", [
  6666.     ("ima", ctypes.c_void_p, 1),],
  6667.     ctypes.c_void_p )
  6668.  
  6669. GPU_free_images = _c_external_function(     "GPU_free_images", [],
  6670.     ctypes.c_void_p )
  6671.  
  6672. GPU_free_images_anim = _c_external_function(        "GPU_free_images_anim", [],
  6673.     ctypes.c_void_p )
  6674.  
  6675. GPU_free_smoke = _c_external_function(      "GPU_free_smoke", [
  6676.     ("smd", ctypes.c_void_p, 1),],
  6677.     ctypes.c_void_p )
  6678.  
  6679. GPU_create_smoke = _c_external_function(        "GPU_create_smoke", [
  6680.     ("smd", ctypes.c_void_p, 1),
  6681.     ("highres", ctypes.c_int, 1),],
  6682.     ctypes.c_void_p )
  6683.  
  6684. GPU_free_unused_buffers = _c_external_function(     "GPU_free_unused_buffers", [],
  6685.     ctypes.c_void_p )
  6686.  
  6687. #class Image(ctypes.Structure): pass        # typedef or forward reference #
  6688. #class ImageUser(ctypes.Structure): pass        # typedef or forward reference #
  6689. #class GPUTexture(ctypes.Structure): pass       # typedef or forward reference #
  6690. #class GPUTexture(ctypes.Structure): pass       # typedef or forward reference #
  6691. #class GPUFrameBuffer(ctypes.Structure): pass       # typedef or forward reference #
  6692. #class GPUFrameBuffer(ctypes.Structure): pass       # typedef or forward reference #
  6693. #class GPUOffScreen(ctypes.Structure): pass     # typedef or forward reference #
  6694. #class GPUOffScreen(ctypes.Structure): pass     # typedef or forward reference #
  6695. #class GPUShader(ctypes.Structure): pass        # typedef or forward reference #
  6696. #class GPUShader(ctypes.Structure): pass        # typedef or forward reference #
  6697. GPU_extensions_disable = _c_external_function(      "GPU_extensions_disable", [],
  6698.     ctypes.c_void_p )
  6699.  
  6700. GPU_extensions_init = _c_external_function(     "GPU_extensions_init", [],
  6701.     ctypes.c_void_p )
  6702.  
  6703. GPU_extensions_exit = _c_external_function(     "GPU_extensions_exit", [],
  6704.     ctypes.c_void_p )
  6705.  
  6706. GPU_print_error = _c_external_function(     "GPU_print_error", [
  6707.     ("str", ctypes.c_char_p, 1),],
  6708.     ctypes.c_int )
  6709.  
  6710. GPU_glsl_support = _c_external_function(        "GPU_glsl_support", [],
  6711.     ctypes.c_int )
  6712.  
  6713. GPU_non_power_of_two_support = _c_external_function(        "GPU_non_power_of_two_support", [],
  6714.     ctypes.c_int )
  6715.  
  6716. GPU_color_depth = _c_external_function(     "GPU_color_depth", [],
  6717.     ctypes.c_int )
  6718.  
  6719. GPUDeviceType = {
  6720.     "GPU_DEVICE_NVIDIA" : 1,
  6721.     "GPU_DEVICE_ATI" : 2,
  6722.     "GPU_DEVICE_INTEL" : 4,
  6723.     "GPU_DEVICE_SOFTWARE" : 8,
  6724.     "GPU_DEVICE_UNKNOWN" : 16,
  6725.     "GPU_DEVICE_ANY" : 255,
  6726. }
  6727.  
  6728. GPUOSType = {
  6729.     "GPU_OS_WIN" : 256,
  6730.     "GPU_OS_MAC" : 512,
  6731.     "GPU_OS_UNIX" : 65536,
  6732.     "GPU_OS_ANY" : 65280,
  6733. }
  6734.  
  6735. GPUDriverType = {
  6736.     "GPU_DRIVER_OFFICIAL" : 4194304,
  6737.     "GPU_DRIVER_OPENSOURCE" : 8388608,
  6738.     "GPU_DRIVER_SOFTWARE" : 16777216,
  6739.     "GPU_DRIVER_ANY" : 16711680,
  6740. }
  6741.  
  6742. GPU_type_matches = _c_external_function(        "GPU_type_matches", [
  6743.     ("device", ctypes.c_void_p, 1),
  6744.     ("os", ctypes.c_void_p, 1),
  6745.     ("driver", ctypes.c_void_p, 1),],
  6746.     ctypes.c_int )
  6747.  
  6748. GPU_texture_create_1D = _c_external_function(       "GPU_texture_create_1D", [
  6749.     ("w", ctypes.c_int, 1),
  6750.     ("pixels", ctypes.POINTER( ctypes.c_float ), 1),],
  6751.     ctypes.c_void_p )
  6752.  
  6753. GPU_texture_create_2D = _c_external_function(       "GPU_texture_create_2D", [
  6754.     ("w", ctypes.c_int, 1),
  6755.     ("h", ctypes.c_int, 1),
  6756.     ("pixels", ctypes.POINTER( ctypes.c_float ), 1),],
  6757.     ctypes.c_void_p )
  6758.  
  6759. GPU_texture_create_3D = _c_external_function(       "GPU_texture_create_3D", [
  6760.     ("w", ctypes.c_int, 1),
  6761.     ("h", ctypes.c_int, 1),
  6762.     ("depth", ctypes.c_int, 1),
  6763.     ("fpixels", ctypes.POINTER( ctypes.c_float ), 1),],
  6764.     ctypes.c_void_p )
  6765.  
  6766. GPU_texture_create_depth = _c_external_function(        "GPU_texture_create_depth", [
  6767.     ("w", ctypes.c_int, 1),
  6768.     ("h", ctypes.c_int, 1),],
  6769.     ctypes.c_void_p )
  6770.  
  6771. GPU_texture_from_blender = _c_external_function(        "GPU_texture_from_blender", [
  6772.     ("ima", ctypes.c_void_p, 1),
  6773.     ("iuser", ctypes.c_void_p, 1),
  6774.     ("time", ctypes.c_double, 1),
  6775.     ("mipmap", ctypes.c_int, 1),],
  6776.     ctypes.c_void_p )
  6777.  
  6778. GPU_texture_free = _c_external_function(        "GPU_texture_free", [
  6779.     ("tex", ctypes.c_void_p, 1),],
  6780.     ctypes.c_void_p )
  6781.  
  6782. GPU_texture_ref = _c_external_function(     "GPU_texture_ref", [
  6783.     ("tex", ctypes.c_void_p, 1),],
  6784.     ctypes.c_void_p )
  6785.  
  6786. GPU_texture_bind = _c_external_function(        "GPU_texture_bind", [
  6787.     ("tex", ctypes.c_void_p, 1),
  6788.     ("number", ctypes.c_int, 1),],
  6789.     ctypes.c_void_p )
  6790.  
  6791. GPU_texture_unbind = _c_external_function(      "GPU_texture_unbind", [
  6792.     ("tex", ctypes.c_void_p, 1),],
  6793.     ctypes.c_void_p )
  6794.  
  6795. GPU_texture_framebuffer = _c_external_function(     "GPU_texture_framebuffer", [
  6796.     ("tex", ctypes.c_void_p, 1),],
  6797.     ctypes.c_void_p )
  6798.  
  6799. GPU_texture_target = _c_external_function(      "GPU_texture_target", [
  6800.     ("tex", ctypes.c_void_p, 1),],
  6801.     ctypes.c_int )
  6802.  
  6803. GPU_texture_opengl_width = _c_external_function(        "GPU_texture_opengl_width", [
  6804.     ("tex", ctypes.c_void_p, 1),],
  6805.     ctypes.c_int )
  6806.  
  6807. GPU_texture_opengl_height = _c_external_function(       "GPU_texture_opengl_height", [
  6808.     ("tex", ctypes.c_void_p, 1),],
  6809.     ctypes.c_int )
  6810.  
  6811. GPU_framebuffer_create = _c_external_function(      "GPU_framebuffer_create", [],
  6812.     ctypes.c_void_p )
  6813.  
  6814. GPU_framebuffer_texture_attach = _c_external_function(      "GPU_framebuffer_texture_attach", [
  6815.     ("fb", ctypes.c_void_p, 1),
  6816.     ("tex", ctypes.c_void_p, 1),],
  6817.     ctypes.c_int )
  6818.  
  6819. GPU_framebuffer_texture_detach = _c_external_function(      "GPU_framebuffer_texture_detach", [
  6820.     ("fb", ctypes.c_void_p, 1),
  6821.     ("tex", ctypes.c_void_p, 1),],
  6822.     ctypes.c_void_p )
  6823.  
  6824. GPU_framebuffer_texture_bind = _c_external_function(        "GPU_framebuffer_texture_bind", [
  6825.     ("fb", ctypes.c_void_p, 1),
  6826.     ("tex", ctypes.c_void_p, 1),],
  6827.     ctypes.c_void_p )
  6828.  
  6829. GPU_framebuffer_texture_unbind = _c_external_function(      "GPU_framebuffer_texture_unbind", [
  6830.     ("fb", ctypes.c_void_p, 1),
  6831.     ("tex", ctypes.c_void_p, 1),],
  6832.     ctypes.c_void_p )
  6833.  
  6834. GPU_framebuffer_free = _c_external_function(        "GPU_framebuffer_free", [
  6835.     ("fb", ctypes.c_void_p, 1),],
  6836.     ctypes.c_void_p )
  6837.  
  6838. GPU_framebuffer_restore = _c_external_function(     "GPU_framebuffer_restore", [],
  6839.     ctypes.c_void_p )
  6840.  
  6841. GPU_offscreen_create = _c_external_function(        "GPU_offscreen_create", [
  6842.     ("width", ctypes.c_int, 1),
  6843.     ("height", ctypes.c_int, 1),],
  6844.     ctypes.c_void_p )
  6845.  
  6846. GPU_offscreen_free = _c_external_function(      "GPU_offscreen_free", [
  6847.     ("ofs", ctypes.c_void_p, 1),],
  6848.     ctypes.c_void_p )
  6849.  
  6850. GPU_offscreen_bind = _c_external_function(      "GPU_offscreen_bind", [
  6851.     ("ofs", ctypes.c_void_p, 1),],
  6852.     ctypes.c_void_p )
  6853.  
  6854. GPU_offscreen_unbind = _c_external_function(        "GPU_offscreen_unbind", [
  6855.     ("ofs", ctypes.c_void_p, 1),],
  6856.     ctypes.c_void_p )
  6857.  
  6858. GPU_shader_create = _c_external_function(       "GPU_shader_create", [
  6859.     ("vertexcode", ctypes.c_char_p, 1),
  6860.     ("fragcode", ctypes.c_char_p, 1),
  6861.     ("libcode", ctypes.c_char_p, 1),],
  6862.     ctypes.c_void_p )
  6863.  
  6864. GPU_shader_free = _c_external_function(     "GPU_shader_free", [
  6865.     ("shader", ctypes.c_void_p, 1),],
  6866.     ctypes.c_void_p )
  6867.  
  6868. GPU_shader_bind = _c_external_function(     "GPU_shader_bind", [
  6869.     ("shader", ctypes.c_void_p, 1),],
  6870.     ctypes.c_void_p )
  6871.  
  6872. GPU_shader_unbind = _c_external_function(       "GPU_shader_unbind", [],
  6873.     ctypes.c_void_p )
  6874.  
  6875. GPU_shader_get_uniform = _c_external_function(      "GPU_shader_get_uniform", [
  6876.     ("shader", ctypes.c_void_p, 1),
  6877.     ("name", ctypes.c_char_p, 1),],
  6878.     ctypes.c_int )
  6879.  
  6880. GPU_shader_uniform_vector = _c_external_function(       "GPU_shader_uniform_vector", [
  6881.     ("shader", ctypes.c_void_p, 1),
  6882.     ("location", ctypes.c_int, 1),
  6883.     ("length", ctypes.c_int, 1),
  6884.     ("arraysize", ctypes.c_int, 1),
  6885.     ("value", ctypes.POINTER( ctypes.c_float ), 1),],
  6886.     ctypes.c_void_p )
  6887.  
  6888. GPU_shader_uniform_texture = _c_external_function(      "GPU_shader_uniform_texture", [
  6889.     ("shader", ctypes.c_void_p, 1),
  6890.     ("location", ctypes.c_int, 1),
  6891.     ("tex", ctypes.c_void_p, 1),],
  6892.     ctypes.c_void_p )
  6893.  
  6894. GPU_shader_get_attribute = _c_external_function(        "GPU_shader_get_attribute", [
  6895.     ("shader", ctypes.c_void_p, 1),
  6896.     ("name", ctypes.c_char_p, 1),],
  6897.     ctypes.c_int )
  6898.  
  6899. class GPUVertexAttribs(ctypes.Structure): _fields_=[
  6900.     ( "layer", ctypes.c_void_p ),
  6901.     ( "totlayer", ctypes.c_int ),]
  6902.  
  6903. class SYS_SystemHandle__(ctypes.Structure): _fields_=[
  6904.     ( "unused", ctypes.c_int ),]
  6905.  
  6906. SYS_GetSystem = _c_external_function(       "SYS_GetSystem", [],
  6907.     ctypes.c_void_p )
  6908.  
  6909. SYS_DeleteSystem = _c_external_function(        "SYS_DeleteSystem", [
  6910.     ("sys", ctypes.c_void_p, 1),],
  6911.     ctypes.c_void_p )
  6912.  
  6913. SYS_GetCommandLineInt = _c_external_function(       "SYS_GetCommandLineInt", [
  6914.     ("sys", ctypes.c_void_p, 1),
  6915.     ("paramname", ctypes.c_char_p, 1),
  6916.     ("defaultvalue", ctypes.c_int, 1),],
  6917.     ctypes.c_int )
  6918.  
  6919. SYS_GetCommandLineFloat = _c_external_function(     "SYS_GetCommandLineFloat", [
  6920.     ("sys", ctypes.c_void_p, 1),
  6921.     ("paramname", ctypes.c_char_p, 1),
  6922.     ("defaultvalue", ctypes.c_float, 1),],
  6923.     ctypes.c_float )
  6924.  
  6925. SYS_GetCommandLineString = _c_external_function(        "SYS_GetCommandLineString", [
  6926.     ("sys", ctypes.c_void_p, 1),
  6927.     ("paramname", ctypes.c_char_p, 1),
  6928.     ("defaultvalue", ctypes.c_char_p, 1),],
  6929.     ctypes.c_char )
  6930.  
  6931. SYS_WriteCommandLineInt = _c_external_function(     "SYS_WriteCommandLineInt", [
  6932.     ("sys", ctypes.c_void_p, 1),
  6933.     ("paramname", ctypes.c_char_p, 1),
  6934.     ("value", ctypes.c_int, 1),],
  6935.     ctypes.c_void_p )
  6936.  
  6937. SYS_WriteCommandLineFloat = _c_external_function(       "SYS_WriteCommandLineFloat", [
  6938.     ("sys", ctypes.c_void_p, 1),
  6939.     ("paramname", ctypes.c_char_p, 1),
  6940.     ("value", ctypes.c_float, 1),],
  6941.     ctypes.c_void_p )
  6942.  
  6943. SYS_WriteCommandLineString = _c_external_function(      "SYS_WriteCommandLineString", [
  6944.     ("sys", ctypes.c_void_p, 1),
  6945.     ("paramname", ctypes.c_char_p, 1),
  6946.     ("value", ctypes.c_char_p, 1),],
  6947.     ctypes.c_void_p )
  6948.  
  6949. print_help = _c_external_function(      "print_help", [
  6950.     ("argc", ctypes.c_int, 1),
  6951.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  6952.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  6953.     ctypes.c_int )
  6954.  
  6955. print_version = _c_external_function(       "print_version", [
  6956.     ("argc", ctypes.c_int, 1),
  6957.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  6958.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  6959.     ctypes.c_int )
  6960.  
  6961. pluginapi_force_ref = _c_external_function(     "pluginapi_force_ref", [],
  6962.     ctypes.c_int )
  6963.  
  6964. #bprogname                          <TypeDecl=char>
  6965. #btempdir                           <TypeDecl=char>
  6966. setCallbacks = _c_external_function(        "setCallbacks", [],
  6967.     ctypes.c_void_p )
  6968.  
  6969. fpe_handler = _c_external_function(     "fpe_handler", [
  6970.     ("sig", ctypes.c_int, 1),],
  6971.     ctypes.c_void_p )
  6972.  
  6973. blender_esc = _c_external_function(     "blender_esc", [
  6974.     ("sig", ctypes.c_int, 1),],
  6975.     ctypes.c_void_p )
  6976.  
  6977. print_version = _c_external_function(       "print_version", [
  6978.     ("argc", ctypes.c_int, 1),
  6979.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  6980.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  6981.     ctypes.c_int )
  6982.  
  6983. print_help = _c_external_function(      "print_help", [
  6984.     ("argc", ctypes.c_int, 1),
  6985.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  6986.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  6987.     ctypes.c_int )
  6988.  
  6989. PIL_check_seconds_timer = _c_external_function(     "PIL_check_seconds_timer", [],
  6990.     ctypes.c_double )
  6991.  
  6992. end_arguments = _c_external_function(       "end_arguments", [
  6993.     ("argc", ctypes.c_int, 1),
  6994.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  6995.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  6996.     ctypes.c_int )
  6997.  
  6998. enable_python = _c_external_function(       "enable_python", [
  6999.     ("argc", ctypes.c_int, 1),
  7000.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7001.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7002.     ctypes.c_int )
  7003.  
  7004. disable_python = _c_external_function(      "disable_python", [
  7005.     ("argc", ctypes.c_int, 1),
  7006.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7007.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7008.     ctypes.c_int )
  7009.  
  7010. background_mode = _c_external_function(     "background_mode", [
  7011.     ("argc", ctypes.c_int, 1),
  7012.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7013.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7014.     ctypes.c_int )
  7015.  
  7016. debug_mode = _c_external_function(      "debug_mode", [
  7017.     ("argc", ctypes.c_int, 1),
  7018.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7019.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7020.     ctypes.c_int )
  7021.  
  7022. set_fpe = _c_external_function(     "set_fpe", [
  7023.     ("argc", ctypes.c_int, 1),
  7024.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7025.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7026.     ctypes.c_int )
  7027.  
  7028. playback_mode = _c_external_function(       "playback_mode", [
  7029.     ("argc", ctypes.c_int, 1),
  7030.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7031.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7032.     ctypes.c_int )
  7033.  
  7034. prefsize = _c_external_function(        "prefsize", [
  7035.     ("argc", ctypes.c_int, 1),
  7036.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7037.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7038.     ctypes.c_int )
  7039.  
  7040. with_borders = _c_external_function(        "with_borders", [
  7041.     ("argc", ctypes.c_int, 1),
  7042.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7043.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7044.     ctypes.c_int )
  7045.  
  7046. without_borders = _c_external_function(     "without_borders", [
  7047.     ("argc", ctypes.c_int, 1),
  7048.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7049.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7050.     ctypes.c_int )
  7051.  
  7052. register_extension = _c_external_function(      "register_extension", [
  7053.     ("argc", ctypes.c_int, 1),
  7054.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7055.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7056.     ctypes.c_int )
  7057.  
  7058. no_joystick = _c_external_function(     "no_joystick", [
  7059.     ("argc", ctypes.c_int, 1),
  7060.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7061.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7062.     ctypes.c_int )
  7063.  
  7064. no_glsl = _c_external_function(     "no_glsl", [
  7065.     ("argc", ctypes.c_int, 1),
  7066.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7067.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7068.     ctypes.c_int )
  7069.  
  7070. no_audio = _c_external_function(        "no_audio", [
  7071.     ("argc", ctypes.c_int, 1),
  7072.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7073.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7074.     ctypes.c_int )
  7075.  
  7076. set_audio = _c_external_function(       "set_audio", [
  7077.     ("argc", ctypes.c_int, 1),
  7078.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7079.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7080.     ctypes.c_int )
  7081.  
  7082. set_output = _c_external_function(      "set_output", [
  7083.     ("argc", ctypes.c_int, 1),
  7084.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7085.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7086.     ctypes.c_int )
  7087.  
  7088. set_engine = _c_external_function(      "set_engine", [
  7089.     ("argc", ctypes.c_int, 1),
  7090.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7091.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7092.     ctypes.c_int )
  7093.  
  7094. set_image_type = _c_external_function(      "set_image_type", [
  7095.     ("argc", ctypes.c_int, 1),
  7096.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7097.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7098.     ctypes.c_int )
  7099.  
  7100. set_threads = _c_external_function(     "set_threads", [
  7101.     ("argc", ctypes.c_int, 1),
  7102.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7103.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7104.     ctypes.c_int )
  7105.  
  7106. set_extension = _c_external_function(       "set_extension", [
  7107.     ("argc", ctypes.c_int, 1),
  7108.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7109.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7110.     ctypes.c_int )
  7111.  
  7112. set_ge_parameters = _c_external_function(       "set_ge_parameters", [
  7113.     ("argc", ctypes.c_int, 1),
  7114.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7115.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7116.     ctypes.c_int )
  7117.  
  7118. render_frame = _c_external_function(        "render_frame", [
  7119.     ("argc", ctypes.c_int, 1),
  7120.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7121.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7122.     ctypes.c_int )
  7123.  
  7124. render_animation = _c_external_function(        "render_animation", [
  7125.     ("argc", ctypes.c_int, 1),
  7126.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7127.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7128.     ctypes.c_int )
  7129.  
  7130. set_scene = _c_external_function(       "set_scene", [
  7131.     ("argc", ctypes.c_int, 1),
  7132.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7133.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7134.     ctypes.c_int )
  7135.  
  7136. set_start_frame = _c_external_function(     "set_start_frame", [
  7137.     ("argc", ctypes.c_int, 1),
  7138.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7139.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7140.     ctypes.c_int )
  7141.  
  7142. set_end_frame = _c_external_function(       "set_end_frame", [
  7143.     ("argc", ctypes.c_int, 1),
  7144.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7145.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7146.     ctypes.c_int )
  7147.  
  7148. set_skip_frame = _c_external_function(      "set_skip_frame", [
  7149.     ("argc", ctypes.c_int, 1),
  7150.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7151.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7152.     ctypes.c_int )
  7153.  
  7154. run_python = _c_external_function(      "run_python", [
  7155.     ("argc", ctypes.c_int, 1),
  7156.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7157.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7158.     ctypes.c_int )
  7159.  
  7160. run_python_console = _c_external_function(      "run_python_console", [
  7161.     ("argc", ctypes.c_int, 1),
  7162.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7163.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7164.     ctypes.c_int )
  7165.  
  7166. load_file = _c_external_function(       "load_file", [
  7167.     ("argc", ctypes.c_int, 1),
  7168.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),
  7169.     ("data", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7170.     ctypes.c_int )
  7171.  
  7172. setupArguments = _c_external_function(      "setupArguments", [
  7173.     ("C", ctypes.c_void_p, 1),
  7174.     ("ba", ctypes.c_void_p, 1),
  7175.     ("syshandle", ctypes.c_void_p, 1),],
  7176.     ctypes.c_void_p )
  7177.  
  7178. main = _c_external_function(        "main", [
  7179.     ("argc", ctypes.c_int, 1),
  7180.     ("argv", ctypes.POINTER( ctypes.c_char_p ), 1),],
  7181.     ctypes.c_int )
  7182.  
  7183. error_cb = _c_external_function(        "error_cb", [
  7184.     ("err", ctypes.c_char_p, 1),],
  7185.     ctypes.c_void_p )
  7186.  
  7187. mem_error_cb = _c_external_function(        "mem_error_cb", [
  7188.     ("errorStr", ctypes.c_char_p, 1),],
  7189.     ctypes.c_void_p )
  7190.  
  7191. setCallbacks = _c_external_function(        "setCallbacks", [],
  7192.     ctypes.c_void_p )
  7193.  
  7194. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  7195. #class wmEvent(ctypes.Structure): pass      # typedef or forward reference #
  7196. #class wmWindowManager(ctypes.Structure): pass      # typedef or forward reference #
  7197. #class uiLayout(ctypes.Structure): pass     # typedef or forward reference #
  7198. #class wmOperator(ctypes.Structure): pass       # typedef or forward reference #
  7199. #class ImBuf(ctypes.Structure): pass        # typedef or forward reference #
  7200. wm_init_cursor_data = _c_external_function(     "wm_init_cursor_data", [],
  7201.     ctypes.c_void_p )
  7202.  
  7203. #None                           <ast=Decl>
  7204. class BCursor(ctypes.Structure): _fields_=[
  7205.     ( "small_bm", ctypes.c_char_p ),
  7206.     ( "small_mask", ctypes.c_char_p ),
  7207.     ( "small_sizex", ctypes.c_char ),
  7208.     ( "small_sizey", ctypes.c_char ),
  7209.     ( "small_hotx", ctypes.c_char ),
  7210.     ( "small_hoty", ctypes.c_char ),
  7211.     ( "big_bm", ctypes.c_char_p ),
  7212.     ( "big_mask", ctypes.c_char_p ),
  7213.     ( "big_sizex", ctypes.c_char ),
  7214.     ( "big_sizey", ctypes.c_char ),
  7215.     ( "big_hotx", ctypes.c_char ),
  7216.     ( "big_hoty", ctypes.c_char ),
  7217.     ( "fg_color", ctypes.c_char ),
  7218.     ( "bg_color", ctypes.c_char ),]
  7219.  
  7220. #None                           <ast=Decl>
  7221. #None                           <ast=Decl>
  7222. #None                           <ast=Decl>
  7223. wmUIHandlerFunc = _c_external_function(     "wmUIHandlerFunc", [
  7224.     ("C", ctypes.c_void_p, 1),
  7225.     ("event", ctypes.c_void_p, 1),
  7226.     ("userdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7227.     ctypes.c_int )
  7228.  
  7229. wmUIHandlerRemoveFunc = _c_external_function(       "wmUIHandlerRemoveFunc", [
  7230.     ("C", ctypes.c_void_p, 1),
  7231.     ("userdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7232.     ctypes.c_void_p )
  7233.  
  7234. class wmNotifier(ctypes.Structure): _fields_=[
  7235.     ( "next", ctypes.c_void_p ),
  7236.     ( "prev", ctypes.c_void_p ),
  7237.     ( "wm", ctypes.c_void_p ),
  7238.     ( "window", ctypes.c_void_p ),
  7239.     ( "swinid", ctypes.c_int ),
  7240.     ( "category", ctypes.c_int ),
  7241.     ( "data", ctypes.c_int ),
  7242.     ( "subtype", ctypes.c_int ),
  7243.     ( "action", ctypes.c_int ),
  7244.     ( "reference", ctypes.POINTER( ctypes.c_void_p ) ),]
  7245.  
  7246. class wmGesture(ctypes.Structure): _fields_=[
  7247.     ( "next", ctypes.c_void_p ),
  7248.     ( "prev", ctypes.c_void_p ),
  7249.     ( "event_type", ctypes.c_int ),
  7250.     ( "mode", ctypes.c_int ),
  7251.     ( "type", ctypes.c_int ),
  7252.     ( "swinid", ctypes.c_int ),
  7253.     ( "points", ctypes.c_int ),
  7254.     ( "size", ctypes.c_int ),
  7255.     ( "customdata", ctypes.POINTER( ctypes.c_void_p ) ),]
  7256.  
  7257. class wmEvent(ctypes.Structure): _fields_=[
  7258.     ( "next", ctypes.c_void_p ),
  7259.     ( "prev", ctypes.c_void_p ),
  7260.     ( "type", ctypes.c_short ),
  7261.     ( "val", ctypes.c_short ),
  7262.     ( "x", ctypes.c_short ),
  7263.     ( "y", ctypes.c_short ),
  7264.     ( "mval", ctypes.c_short ),
  7265.     ( "unicode", ctypes.c_short ),
  7266.     ( "ascii", ctypes.c_char ),
  7267.     ( "pad", ctypes.c_char ),
  7268.     ( "prevtype", ctypes.c_short ),
  7269.     ( "prevval", ctypes.c_short ),
  7270.     ( "prevx", ctypes.c_short ),
  7271.     ( "prevy", ctypes.c_short ),
  7272.     ( "prevclicktime", ctypes.c_double ),
  7273.     ( "prevclickx", ctypes.c_short ),
  7274.     ( "prevclicky", ctypes.c_short ),
  7275.     ( "shift", ctypes.c_short ),
  7276.     ( "ctrl", ctypes.c_short ),
  7277.     ( "alt", ctypes.c_short ),
  7278.     ( "oskey", ctypes.c_short ),
  7279.     ( "keymodifier", ctypes.c_short ),
  7280.     ( "pad1", ctypes.c_short ),
  7281.     ( "keymap_idname", ctypes.c_char_p ),
  7282.     ( "custom", ctypes.c_short ),
  7283.     ( "customdatafree", ctypes.c_short ),
  7284.     ( "pad2", ctypes.c_int ),
  7285.     ( "customdata", ctypes.POINTER( ctypes.c_void_p ) ),]
  7286.  
  7287. class wmTabletData(ctypes.Structure): _fields_=[
  7288.     ( "Active", ctypes.c_int ),
  7289.     ( "Pressure", ctypes.c_float ),
  7290.     ( "Xtilt", ctypes.c_float ),
  7291.     ( "Ytilt", ctypes.c_float ),]
  7292.  
  7293. class wmTimer(ctypes.Structure): _fields_=[
  7294.     ( "next", ctypes.c_void_p ),
  7295.     ( "prev", ctypes.c_void_p ),
  7296.     ( "win", ctypes.c_void_p ),
  7297.     ( "timestep", ctypes.c_double ),
  7298.     ( "event_type", ctypes.c_int ),
  7299.     ( "customdata", ctypes.POINTER( ctypes.c_void_p ) ),
  7300.     ( "duration", ctypes.c_double ),
  7301.     ( "delta", ctypes.c_double ),
  7302.     ( "ltime", ctypes.c_double ),
  7303.     ( "ntime", ctypes.c_double ),
  7304.     ( "stime", ctypes.c_double ),
  7305.     ( "sleep", ctypes.c_int ),]
  7306.  
  7307. class wmOperatorType(ctypes.Structure): _fields_=[
  7308.     ( "next", ctypes.c_void_p ),
  7309.     ( "prev", ctypes.c_void_p ),
  7310.     ( "name", ctypes.c_char_p ),
  7311.     ( "idname", ctypes.c_char_p ),
  7312.     ( "description", ctypes.c_char_p ),
  7313.     ( "exec", ctypes.c_void_p ),
  7314.     ( "check", ctypes.c_void_p ),
  7315.     ( "invoke", ctypes.c_void_p ),
  7316.     ( "cancel", ctypes.c_void_p ),
  7317.     ( "modal", ctypes.c_void_p ),
  7318.     ( "poll", ctypes.c_void_p ),
  7319.     ( "ui", ctypes.c_void_p ),
  7320.     ( "srna", ctypes.c_void_p ),
  7321.     ( "prop", ctypes.c_void_p ),
  7322.     ( "macro", ctypes.c_void_p ),
  7323.     ( "flag", ctypes.c_short ),
  7324.     ( "modalkeymap", ctypes.c_void_p ),
  7325.     ( "pyop_data", ctypes.POINTER( ctypes.c_void_p ) ),
  7326.     ( "pyop_poll", ctypes.c_void_p ),
  7327.     ( "ext", ctypes.c_void_p ),]
  7328.  
  7329. wmPaintCursorDraw = _c_external_function(       "wmPaintCursorDraw", [
  7330.     ("C", ctypes.c_void_p, 1),
  7331.     ("None", ctypes.c_int, 1),
  7332.     ("None", ctypes.c_int, 1),
  7333.     ("customdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7334.     ctypes.c_void_p )
  7335.  
  7336. #None                           <ast=Decl>
  7337. class wmReport(ctypes.Structure): _fields_=[
  7338.     ( "next", ctypes.c_void_p ),
  7339.     ( "prev", ctypes.c_void_p ),
  7340.     ( "type", ctypes.c_int ),
  7341.     ( "typestr", ctypes.c_char_p ),
  7342.     ( "message", ctypes.c_char_p ),]
  7343.  
  7344. class wmDrag(ctypes.Structure): _fields_=[
  7345.     ( "next", ctypes.c_void_p ),
  7346.     ( "prev", ctypes.c_void_p ),
  7347.     ( "icon", ctypes.c_int ),
  7348.     ( "type", ctypes.c_int ),
  7349.     ( "poin", ctypes.POINTER( ctypes.c_void_p ) ),
  7350.     ( "path", ctypes.c_char ),
  7351.     ( "value", ctypes.c_double ),
  7352.     ( "imb", ctypes.c_void_p ),
  7353.     ( "scale", ctypes.c_float ),
  7354.     ( "sx", ctypes.c_short ),
  7355.     ( "sy", ctypes.c_short ),
  7356.     ( "opname", ctypes.c_char ),]
  7357.  
  7358. class wmDropBox(ctypes.Structure): _fields_=[
  7359.     ( "next", ctypes.c_void_p ),
  7360.     ( "prev", ctypes.c_void_p ),
  7361.     ( "poll", ctypes.c_void_p ),
  7362.     ( "copy", ctypes.c_void_p ),
  7363.     ( "ot", ctypes.c_void_p ),
  7364.     ( "properties", ctypes.c_void_p ),
  7365.     ( "ptr", ctypes.c_void_p ),]
  7366.  
  7367. class RecentFile(ctypes.Structure): _fields_=[
  7368.     ( "next", ctypes.c_void_p ),
  7369.     ( "prev", ctypes.c_void_p ),
  7370.     ( "filepath", ctypes.c_char_p ),]
  7371.  
  7372. #class bScreen(ctypes.Structure): pass      # typedef or forward reference #
  7373. #class wmOperator(ctypes.Structure): pass       # typedef or forward reference #
  7374. wm_ghost_init = _c_external_function(       "wm_ghost_init", [
  7375.     ("C", ctypes.c_void_p, 1),],
  7376.     ctypes.c_void_p )
  7377.  
  7378. wm_ghost_exit = _c_external_function(       "wm_ghost_exit", [],
  7379.     ctypes.c_void_p )
  7380.  
  7381. wm_get_screensize = _c_external_function(       "wm_get_screensize", [
  7382.     ("width_r", ctypes.POINTER( ctypes.c_int ), 1),
  7383.     ("height_r", ctypes.POINTER( ctypes.c_int ), 1),],
  7384.     ctypes.c_void_p )
  7385.  
  7386. wm_window_new = _c_external_function(       "wm_window_new", [
  7387.     ("C", ctypes.c_void_p, 1),],
  7388.     ctypes.c_void_p )
  7389.  
  7390. wm_window_free = _c_external_function(      "wm_window_free", [
  7391.     ("C", ctypes.c_void_p, 1),
  7392.     ("wm", ctypes.c_void_p, 1),
  7393.     ("win", ctypes.c_void_p, 1),],
  7394.     ctypes.c_void_p )
  7395.  
  7396. wm_window_close = _c_external_function(     "wm_window_close", [
  7397.     ("C", ctypes.c_void_p, 1),
  7398.     ("wm", ctypes.c_void_p, 1),
  7399.     ("win", ctypes.c_void_p, 1),],
  7400.     ctypes.c_void_p )
  7401.  
  7402. wm_window_title = _c_external_function(     "wm_window_title", [
  7403.     ("wm", ctypes.c_void_p, 1),
  7404.     ("win", ctypes.c_void_p, 1),],
  7405.     ctypes.c_void_p )
  7406.  
  7407. wm_window_add_ghostwindows = _c_external_function(      "wm_window_add_ghostwindows", [
  7408.     ("C", ctypes.c_void_p, 1),
  7409.     ("wm", ctypes.c_void_p, 1),],
  7410.     ctypes.c_void_p )
  7411.  
  7412. wm_window_process_events = _c_external_function(        "wm_window_process_events", [
  7413.     ("C", ctypes.c_void_p, 1),],
  7414.     ctypes.c_void_p )
  7415.  
  7416. wm_window_process_events_nosleep = _c_external_function(        "wm_window_process_events_nosleep", [
  7417.     ("C", ctypes.c_void_p, 1),],
  7418.     ctypes.c_void_p )
  7419.  
  7420. wm_window_make_drawable = _c_external_function(     "wm_window_make_drawable", [
  7421.     ("C", ctypes.c_void_p, 1),
  7422.     ("win", ctypes.c_void_p, 1),],
  7423.     ctypes.c_void_p )
  7424.  
  7425. wm_window_raise = _c_external_function(     "wm_window_raise", [
  7426.     ("win", ctypes.c_void_p, 1),],
  7427.     ctypes.c_void_p )
  7428.  
  7429. wm_window_lower = _c_external_function(     "wm_window_lower", [
  7430.     ("win", ctypes.c_void_p, 1),],
  7431.     ctypes.c_void_p )
  7432.  
  7433. wm_window_set_size = _c_external_function(      "wm_window_set_size", [
  7434.     ("win", ctypes.c_void_p, 1),
  7435.     ("width", ctypes.c_int, 1),
  7436.     ("height", ctypes.c_int, 1),],
  7437.     ctypes.c_void_p )
  7438.  
  7439. wm_window_get_size = _c_external_function(      "wm_window_get_size", [
  7440.     ("win", ctypes.c_void_p, 1),
  7441.     ("width_r", ctypes.POINTER( ctypes.c_int ), 1),
  7442.     ("height_r", ctypes.POINTER( ctypes.c_int ), 1),],
  7443.     ctypes.c_void_p )
  7444.  
  7445. wm_window_get_size_ghost = _c_external_function(        "wm_window_get_size_ghost", [
  7446.     ("win", ctypes.c_void_p, 1),
  7447.     ("width_r", ctypes.POINTER( ctypes.c_int ), 1),
  7448.     ("height_r", ctypes.POINTER( ctypes.c_int ), 1),],
  7449.     ctypes.c_void_p )
  7450.  
  7451. wm_window_get_position = _c_external_function(      "wm_window_get_position", [
  7452.     ("win", ctypes.c_void_p, 1),
  7453.     ("posx_r", ctypes.POINTER( ctypes.c_int ), 1),
  7454.     ("posy_r", ctypes.POINTER( ctypes.c_int ), 1),],
  7455.     ctypes.c_void_p )
  7456.  
  7457. wm_window_set_title = _c_external_function(     "wm_window_set_title", [
  7458.     ("win", ctypes.c_void_p, 1),
  7459.     ("title", ctypes.c_char_p, 1),],
  7460.     ctypes.c_void_p )
  7461.  
  7462. wm_window_swap_buffers = _c_external_function(      "wm_window_swap_buffers", [
  7463.     ("win", ctypes.c_void_p, 1),],
  7464.     ctypes.c_void_p )
  7465.  
  7466. wm_get_cursor_position = _c_external_function(      "wm_get_cursor_position", [
  7467.     ("win", ctypes.c_void_p, 1),
  7468.     ("x", ctypes.POINTER( ctypes.c_int ), 1),
  7469.     ("y", ctypes.POINTER( ctypes.c_int ), 1),],
  7470.     ctypes.c_void_p )
  7471.  
  7472. wm_window_copy = _c_external_function(      "wm_window_copy", [
  7473.     ("C", ctypes.c_void_p, 1),
  7474.     ("winorig", ctypes.c_void_p, 1),],
  7475.     ctypes.c_void_p )
  7476.  
  7477. wm_window_testbreak = _c_external_function(     "wm_window_testbreak", [],
  7478.     ctypes.c_void_p )
  7479.  
  7480. wm_window_duplicate_op = _c_external_function(      "wm_window_duplicate_op", [
  7481.     ("C", ctypes.c_void_p, 1),
  7482.     ("op", ctypes.c_void_p, 1),],
  7483.     ctypes.c_int )
  7484.  
  7485. wm_window_fullscreen_toggle_op = _c_external_function(      "wm_window_fullscreen_toggle_op", [
  7486.     ("C", ctypes.c_void_p, 1),
  7487.     ("op", ctypes.c_void_p, 1),],
  7488.     ctypes.c_int )
  7489.  
  7490. #class ScrArea(ctypes.Structure): pass      # typedef or forward reference #
  7491. #class ARegion(ctypes.Structure): pass      # typedef or forward reference #
  7492. class wmEventHandler(ctypes.Structure): _fields_=[
  7493.     ( "next", ctypes.c_void_p ),
  7494.     ( "prev", ctypes.c_void_p ),
  7495.     ( "type", ctypes.c_int ),
  7496.     ( "flag", ctypes.c_int ),
  7497.     ( "keymap", ctypes.c_void_p ),
  7498.     ( "bblocal", ctypes.c_void_p ),
  7499.     ( "bbwin", ctypes.c_void_p ),
  7500.     ( "op", ctypes.c_void_p ),
  7501.     ( "op_area", ctypes.c_void_p ),
  7502.     ( "op_region", ctypes.c_void_p ),
  7503.     ( "ui_handle", ctypes.c_void_p ),
  7504.     ( "ui_remove", ctypes.c_void_p ),
  7505.     ( "ui_userdata", ctypes.POINTER( ctypes.c_void_p ) ),
  7506.     ( "ui_area", ctypes.c_void_p ),
  7507.     ( "ui_region", ctypes.c_void_p ),
  7508.     ( "ui_menu", ctypes.c_void_p ),
  7509.     ( "filescreen", ctypes.c_void_p ),
  7510.     ( "dropboxes", ctypes.c_void_p ),]
  7511.  
  7512. #None                           <ast=Decl>
  7513. wm_event_add = _c_external_function(        "wm_event_add", [
  7514.     ("win", ctypes.c_void_p, 1),
  7515.     ("event_to_add", ctypes.c_void_p, 1),],
  7516.     ctypes.c_void_p )
  7517.  
  7518. wm_event_free_all = _c_external_function(       "wm_event_free_all", [
  7519.     ("win", ctypes.c_void_p, 1),],
  7520.     ctypes.c_void_p )
  7521.  
  7522. wm_event_free = _c_external_function(       "wm_event_free", [
  7523.     ("event", ctypes.c_void_p, 1),],
  7524.     ctypes.c_void_p )
  7525.  
  7526. wm_event_free_handler = _c_external_function(       "wm_event_free_handler", [
  7527.     ("handler", ctypes.c_void_p, 1),],
  7528.     ctypes.c_void_p )
  7529.  
  7530. wm_event_do_handlers = _c_external_function(        "wm_event_do_handlers", [
  7531.     ("C", ctypes.c_void_p, 1),],
  7532.     ctypes.c_void_p )
  7533.  
  7534. wm_event_add_ghostevent = _c_external_function(     "wm_event_add_ghostevent", [
  7535.     ("wm", ctypes.c_void_p, 1),
  7536.     ("win", ctypes.c_void_p, 1),
  7537.     ("type", ctypes.c_int, 1),
  7538.     ("time", ctypes.c_int, 1),
  7539.     ("customdata", ctypes.POINTER( ctypes.c_void_p ), 1),],
  7540.     ctypes.c_void_p )
  7541.  
  7542. wm_event_do_notifiers = _c_external_function(       "wm_event_do_notifiers", [
  7543.     ("C", ctypes.c_void_p, 1),],
  7544.     ctypes.c_void_p )
  7545.  
  7546. wm_dropbox_free = _c_external_function(     "wm_dropbox_free", [],
  7547.     ctypes.c_void_p )
  7548.  
  7549. wm_drags_check_ops = _c_external_function(      "wm_drags_check_ops", [
  7550.     ("C", ctypes.c_void_p, 1),
  7551.     ("event", ctypes.c_void_p, 1),],
  7552.     ctypes.c_void_p )
  7553.  
  7554. wm_drags_draw = _c_external_function(       "wm_drags_draw", [
  7555.     ("C", ctypes.c_void_p, 1),
  7556.     ("win", ctypes.c_void_p, 1),
  7557.     ("rect", ctypes.c_void_p, 1),],
  7558.     ctypes.c_void_p )
  7559.  
  7560. #class bContext(ctypes.Structure): pass     # typedef or forward reference #
  7561. #class wmWindow(ctypes.Structure): pass     # typedef or forward reference #
  7562. #class ARegion(ctypes.Structure): pass      # typedef or forward reference #
  7563. wm_draw_update = _c_external_function(      "wm_draw_update", [
  7564.     ("C", ctypes.c_void_p, 1),],
  7565.     ctypes.c_void_p )
  7566.  
  7567. wm_draw_window_clear = _c_external_function(        "wm_draw_window_clear", [
  7568.     ("win", ctypes.c_void_p, 1),],
  7569.     ctypes.c_void_p )
  7570.  
  7571. wm_draw_region_clear = _c_external_function(        "wm_draw_region_clear", [
  7572.     ("win", ctypes.c_void_p, 1),
  7573.     ("ar", ctypes.c_void_p, 1),],
  7574.     ctypes.c_void_p )
  7575.  
  7576. wm_tag_redraw_overlay = _c_external_function(       "wm_tag_redraw_overlay", [
  7577.     ("win", ctypes.c_void_p, 1),
  7578.     ("ar", ctypes.c_void_p, 1),],
  7579.     ctypes.c_void_p )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement