ruby/trema/port-mod.c in trema-0.3.4 vs ruby/trema/port-mod.c in trema-0.3.5
- old
+ new
@@ -203,9 +203,10 @@
}
void
Init_port_mod() {
+ mTrema = rb_define_module( "Trema" );
cPortMod = rb_define_class_under( mTrema, "PortMod", rb_cObject );
rb_define_alloc_func( cPortMod, port_mod_alloc );
rb_define_method( cPortMod, "initialize", port_mod_init, -1 );
rb_define_method( cPortMod, "transaction_id", port_mod_transaction_id, 0 );
rb_alias( cPortMod, rb_intern( "xid" ), rb_intern( "transaction_id" ) );