/* * Class method: version * * Gets the version number of the GStreamer library, in an array * of 3 fixnums, which represent major, minor and macro numbers. * * # Prints GStreamer version in a String 'major.minor.macro' * p Gst.version.join('.') * * Returns: an Array of 3 fixnums (major, minor and macro numbers). */ static VALUE rb_gst_version (VALUE self) { guint major, minor, micro; VALUE arr; gst_version (&major, &minor, µ); arr = rb_ary_new (); rb_ary_push (arr, INT2FIX (major)); rb_ary_push (arr, INT2FIX (minor)); rb_ary_push (arr, INT2FIX (micro)); return arr; }