What do you call C functions from MacRuby?

I would like to try using MacRuby with CoreAudio on OS X, but most of these APIs are C functions. Should I use Ruby DL, or does MacRuby offer a different way?

+3
source share
1 answer

According to the Macruby website, you should be able to directly execute C functions

Static API Access

Many Mac OS X front-end APIs are not introspective because they are static, but thanks to the BridgeSupport project from MacRuby, you can invoke static APIs.

The following API types are available:

  • List item
  • Types of CoreFoundation (CFType) Structures
  • C
  • C opaque types
  • C listing
  • C Objective-C ( , )
  • C ( )
  • Objective-C

http://www.macruby.org/documentation/tutorial.html

+4

Source: https://habr.com/ru/post/1782319/


All Articles