SAKAI Masahiro - ruby-ffcall Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

= ruby-ffcall

((<RAA:ruby-ffcall>))

== Introduction

ruby-ffcall is an experimental library for extending ruby-dl using ((<ffcall|URL:http://www.haible.de/bruno/packages-ffcall.html>)) library. With ruby-ffcall you can use arbitary number of callback functions.

ruby-dlで使えるコールバック関数の数に制限があるのが嫌だったので、((<ffcall|URL:http://www.haible.de/bruno/packages-ffcall.html>))を使って、コールバック関数を動的に作成することで、この制限を無くす拡張ライブラリを作ってみました。

== Download

* 0.0.2
  * ((<ruby-ffcall-0.0.2.tar.gz|files:ruby-ffcall-0.0.2.tar.gz>)) (Ruby's license)
  * ((<ruby-ffcall-0.0.2-1-msvcrt-1.8.tar.gz|files:ruby-ffcall-0.0.2-1-msvcrt-1.8.tar.gz>)) (GPL)
  * ((<ruby-ffcall-0.0.2-1-cygwin-1.8.tar.gz|files:ruby-ffcall-0.0.2-1-cygwin-1.8.tar.gz>)) (GPL)
* 0.0.1
  * ((<ruby-ffcall-0.0.1.tar.gz|files:ruby-ffcall-0.0.1.tar.gz>))

== Usage

--- sym = FFCall.callback(cbtype){|args| ... }
--- sym = FFCall.callback(cbtype, proc)

    The same as DL.callback

You can replace DL.callback, DL.define_callback and DL.remove_callback by
requireing 'dl/ffcall-callback'.

== Links

* ((<RAA:ruby-dl>))
* ((<ffcall|URL:http://www.haible.de/bruno/packages-ffcall.html>))
* ((<URL:ftp://ftp.gnustep.org/pub/gnustep/libs/ffcall-1.8d.tar.gz>))