From: "Erik Bågfors" Date: 2001-05-16T17:08:39+09:00 Subject: [ruby-talk:15259] c-api-question. Hi all. Here is a ruby-api newbies question. I am trying to wrap a c-function that takes _two_ pointers to other functions as parameters. Later (from yet another function) one or the other of those functions are called. If it was only one pointer to a function I would use the block-form for that, but that's not possible here I guess.. So. To summarize (_psedu_ C) void *funcA, *funcB; void A(void *funcOne, void *funcTwo) { funcA = funcOne; funcB = funcTwo; } void B() { if (something) funcA(param); else funcB(param); } So. How would I call A in ruby and how would the ruby-api-wrapping look?? Would it include Proc objects? Thankfull for any help. /Erik -- Erik B�gfors | http://erik.bagfors.nu/ erik@bagfors.nu | Erik.Bagfors@engohol.se Supporter of free software | GSM +46 733 279 273 fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32