/* * Return the code (type) of a Fam::Event object. * * Note: see the file doc/event_codes.txt for a brief description of * each event code. * * Examples: * code = ev.code * */ static VALUE fam_ev_code(VALUE self) { FAMEvent *ev; Data_Get_Struct(self, FAMEvent, ev); return INT2FIX(ev->code); }