+static VALUE c_data_get (VALUE self, VALUE key)
+{
+ const char *s;
+
+ GET_OBJ (self, RbEdje, e);
+
+ Check_Type (key, T_STRING);
+
+ s = edje_object_data_get (e->real.real, StringValuePtr (key));
+
+ return s ? rb_str_new2 (s) : Qnil;
+}
+
+static VALUE c_send_message (VALUE self, VALUE msg)
+{
+ VALUE m;
+ Edje_Message_Type type;
+ int id;
+
+ GET_OBJ (self, RbEdje, e);
+
+ CHECK_CLASS (msg, cMsg);
+
+ type = NUM2INT (rb_iv_get (msg, "@type"));
+ id = NUM2INT (rb_iv_get (msg, "@id"));
+ m = rb_funcall (msg, rb_intern ("serialize"), 0, NULL);
+
+ edje_object_message_send (e->real.real, type, id, (void *) m);
+
+ return Qnil;
+}
+