# Binding a new fundamental type

**URL:** <https://www.ruby-forum.com/t/binding-a-new-fundamental-type/83939>\
**Category:** Ruby-Gnome 2\
**Created:** [March 19, 2006, 3:31pm UTC](https://www.ruby-forum.com/t/binding-a-new-fundamental-type/83939 "2006-03-19T15:31:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 19, 2006, 3:31pm UTC](https://www.ruby-forum.com/t/binding-a-new-fundamental-type/83939/1 "2006-03-19T15:31:13Z")

</div>

Hi,

I recently had a go at upgrading the ruby gstreamer bindings from  
gstreamer  
0.8 to gstreamer 0.10. After gutting out all the methods that don’t  
exist  
anymore i ended with something good enough to create pipelines  
(yeah!)…

After that ofcourse the real work started and i hit a big problem  
quite soon.  
Gstreamer 0.10 introduces a new fundamental type, the gst-miniobject,  
which  
is used for things such as events. The fundamental types that ruby  
glib binds are hard coded and don’t really allow adding a new one  
programatically.

What would be the best way to solve this? Imho the best way would be  
to add a  
small api on the glib bindings to define new fundamental type, but i  
guess  
that that would require some big changes… Opinions?

## Sjoerd

What is algebra, exactly? Is it one of those three-cornered things?  
– J. M. Barrie

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)
