/* * Copyright (C) 2007 Ruby-GNOME2 Project Team * * This file is part of Ruby/GStreamer. * * Ruby/GStreamer is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * Ruby/GStreamer is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Ruby/GStreamer; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "rbgst.h" /* Class: Gst::Message * Lightweight objects to signal the application of pipeline events. */ #define SELF(obj) (RVAL2GST_MSG(obj)) static VALUE rb_gst_message_get_type(VALUE self) { return GENUM2RVAL(GST_MESSAGE_TYPE(SELF(self)), GST_TYPE_MESSAGE_TYPE); } void Init_gst_message(void) { VALUE rb_cGstMessage; rb_cGstMessage = G_DEF_CLASS(GST_TYPE_MESSAGE, "Message", mGst); rb_define_method(rb_cGstMessage, "type", rb_gst_message_get_type, 0); G_DEF_CLASS(GST_TYPE_MESSAGE_TYPE, "Type", rb_cGstMessage); G_DEF_CONSTANTS(rb_cGstMessage, GST_TYPE_MESSAGE_TYPE, "GST_MESSAGE_"); }