ruby/trema/set-config.c in trema-0.3.15 vs ruby/trema/set-config.c in trema-0.3.16
- old
+ new
@@ -143,12 +143,15 @@
uint16_t miss_send_len = ntohs( ( ( struct ofp_switch_config * ) ( set_config->data ) )->miss_send_len );
return UINT2NUM( miss_send_len );
}
+/*
+ * Document-class: Trema::SetConfig
+ */
void
Init_set_config() {
- mTrema = rb_define_module( "Trema" );
+ mTrema = rb_eval_string( "Trema" );
cSetConfig = rb_define_class_under( mTrema, "SetConfig", rb_cObject );
rb_define_alloc_func( cSetConfig, set_config_alloc );
rb_define_const( cSetConfig, "OFPC_FRAG_NORMAL", INT2NUM( OFPC_FRAG_NORMAL ) );
rb_define_const( cSetConfig, "OFPC_FRAG_DROP", INT2NUM( OFPC_FRAG_DROP ) );
rb_define_const( cSetConfig, "OFPC_FRAG_REASM", INT2NUM( OFPC_FRAG_REASM ) );