Created
September 17, 2010 21:53
-
-
Save bbrowning/585023 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def setup(lib_path=nil) | |
| # Setup the path to the C library | |
| lib_path ||= "/Applications/VirtualBox.app/Contents/MacOS/VBoxXPCOMC.dylib" | |
| # Attach to the interface | |
| ffi_lib lib_path | |
| attach_function :VBoxGetXPCOMCFunctions, [:uint], :pointer | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment