A fork of the excellent wiringPi library by Gordon Henderson (http://wiringpi.com/)
I've added a new function called wiringPiISRWithArg, which is the same as wiringPiISR except that it takes an additional argument to use in the callback.
Installation just involves doing
cd wiringPi
./build