+static VALUE m_new_event_type (VALUE self, VALUE klass)
+{
+ VALUE num;
+
+ num = INT2FIX (ecore_event_type_new());
+ rb_hash_aset (event_classes, num, klass);
+
+ return num;
+}
+
+static void free_ruby_event (void *data, void *event)
+{
+ /* do nothing */
+}
+
+static VALUE m_add_event (VALUE self, VALUE type, VALUE event)
+{
+ Check_Type (type, T_FIXNUM);
+
+ ecore_event_add (FIX2INT (type), (void *) event, free_ruby_event, NULL);
+
+ return Qnil;
+}
+