Subject: Re: [ruby-ffi] Behavior of ffi_lib with Arrays (Was: lists only one lib?) |
From: Stephen Bannasch |
Date: 1/8/10 5:39 PM |
To: ruby-ffi@googlegroups.com |
At 8:56 AM +0100 12/22/09, Vladimir Sizikov wrote:
Hi Jon, If memory serves, Wayne tweaked ffi_lib behavior in such a way that: a) doing ffil_lib 'one', 'two', 'three' would load up all three libraries, or fail if any of them couldn't be found for some reason b) doing ffi_lib ['var1', 'var2', 'var3'] would load some variant of the same library c) doing ffi_lib 'lib1', 'lib2', ['lib3-1', 'lib3-2', 'lib3-3'] would load lib1, lib2 and one variant of lib3 from the array of alternatives. Thanks, --Vladimir
I took Vladimir's explanation and made a page on the wiki: http://wiki.github.com/ffi/ffi/using-multiple-and-alternate-libraries I'd appreciate it if someone who knows ffi better could review it. Also I'd shorten the page name to "Mulitple and Alternate Libraries" but am not sure how.