import pygst
pygst.require('0.10')
import gst
import gobject

class TrucElement(gst.Element):
    __gstdetails__ = ("Python test element",
                      "Debug",
                      "An element to test the python plugin loader",
                      "Edward Hervey <edward@fluendo.com>")

#needed to have a GType created
gobject.type_register(TrucElement)

#structure read during registry parsing
__gstelementfactory__ = (
    "truc",
    gst.RANK_MARGINAL,
    TrucElement
    )
