--- a/bindings/ruby/rblm-connection.c Wed Apr 09 23:40:46 2008 +0200
+++ b/bindings/ruby/rblm-connection.c Wed Apr 09 23:44:01 2008 +0200
@@ -213,8 +213,7 @@
{
LmConnection *conn = rb_lm_connection_from_ruby_object (self);
- /* TODO: FIXME */
- return Qnil;
+ return INT2FIX (lm_connection_get_state (conn));
}
void
--- a/bindings/ruby/rblm-message.c Wed Apr 09 23:40:46 2008 +0200
+++ b/bindings/ruby/rblm-message.c Wed Apr 09 23:44:01 2008 +0200
@@ -52,11 +52,11 @@
if (NIL_P (sub_type)) {
/* Without sub_type */
- m = lm_message_new (to_str, NUM2INT (type));
+ m = lm_message_new (to_str, FIX2INT (type));
} else {
m = lm_message_new_with_sub_type (to_str,
- NUM2INT (type),
- NUM2INT (sub_type));
+ FIX2INT (type),
+ FIX2INT (sub_type));
}
DATA_PTR (self) = m;
@@ -69,7 +69,7 @@
{
LmMessage *m = rb_lm_message_from_ruby_object (self);
- return INT2NUM (lm_message_get_type (m));
+ return INT2FIX (lm_message_get_type (m));
}
VALUE
@@ -77,7 +77,7 @@
{
LmMessage *m = rb_lm_message_from_ruby_object (self);
- return INT2NUM (lm_message_get_sub_type (m));
+ return INT2FIX (lm_message_get_sub_type (m));
}
VALUE