Sha256: 21ff877d2f078f795b62c0520d50c23594cf827c7e53e580bc2b4b156e81be78
Contents?: true
Size: 1.9 KB
Versions: 8
Compression:
Stored size: 1.9 KB
Contents
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /* * 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::StaticPadTemplate */ #define SELF(self) RVAL2GST_STATIC_PAD_TEMPLATE(self) static VALUE get_name(VALUE self) { return CSTR2RVAL(SELF(self)->name_template); } static VALUE get_presence(VALUE self) { return GENUM2RVAL(SELF(self)->presence, GST_TYPE_PAD_PRESENCE); } static VALUE get_direction(VALUE self) { return GENUM2RVAL(SELF(self)->direction, GST_TYPE_PAD_DIRECTION); } static VALUE get_caps(VALUE self) { return GST_STATIC_CAPS2RVAL(gst_static_pad_template_get_caps(SELF(self))); } void Init_gst_static_pad_template (void) { VALUE cGstStaticPadTemplate; cGstStaticPadTemplate = G_DEF_CLASS(GST_TYPE_STATIC_PAD_TEMPLATE, "StaticPadTemplate", mGst); rb_define_method(cGstStaticPadTemplate, "name", get_name, 0); rb_define_method(cGstStaticPadTemplate, "presence", get_presence, 0); rb_define_method(cGstStaticPadTemplate, "direction", get_direction, 0); rb_define_method(cGstStaticPadTemplate, "caps", get_caps, 0); }
Version data entries
8 entries across 8 versions & 1 rubygems