Commit 41e2b770 authored by Edward Hervey's avatar Edward Hervey 🤘

Move GstIterator ArgType definition and usage for the codegenerator to...

Move GstIterator ArgType definition and usage for the codegenerator to gst/arg-types.py. It has nothing to do in the ...

Original commit message from CVS:
* codegen/argtypes.py:
* gst/arg-types.py:
Move GstIterator ArgType definition and usage for the codegenerator
to gst/arg-types.py. It has nothing to do in the codegenerator code.
parent fb23b775
2006-12-16 Edward Hervey <edward@fluendo.com>
* codegen/argtypes.py:
* gst/arg-types.py:
Move GstIterator ArgType definition and usage for the codegenerator
to gst/arg-types.py. It has nothing to do in the codegenerator code.
2006-12-15 Thomas Vander Stichele <thomas at apestaart dot org>
* Makefile.am:
......
......@@ -974,11 +974,6 @@ class ArgMatcher:
if not self.argtypes.has_key(otype): return 0
return self.object_is_a(self.get(otype).parent, parent)
class GstIteratorArg(ArgType):
def write_return(self, ptype, ownsreturn, info):
info.varlist.add('GstIterator', '*ret')
info.codeafter.append(' return pygst_iterator_new(ret);')
matcher = ArgMatcher()
arg = NoneArg()
......@@ -1058,8 +1053,6 @@ matcher.register('gfloat', arg)
arg = FileArg()
matcher.register('FILE*', arg)
matcher.register('GstIterator*', GstIteratorArg())
# enums, flags, objects
matcher.register('GdkAtom', AtomArg())
......
......@@ -140,6 +140,11 @@ class GstCapsArg(ArgType):
raise RuntimeError, "write_return not implemented for %s" % ptype
info.codeafter.append(' return pyg_boxed_new (GST_TYPE_CAPS, ret, '+copyval+', TRUE);')
class GstIteratorArg(ArgType):
def write_return(self, ptype, ownsreturn, info):
info.varlist.add('GstIterator', '*ret')
info.codeafter.append(' return pygst_iterator_new(ret);')
class GstMiniObjectParam(Parameter):
def get_c_type(self):
......@@ -319,6 +324,7 @@ matcher.register('xmlDocPtr', XmlDocArg())
matcher.register('GstCaps', GstCapsArg()) #FIXME: does this work?
matcher.register('GstCaps*', GstCapsArg()) #FIXME: does this work?
matcher.register('const-GstCaps*', GstCapsArg())
matcher.register('GstIterator*', GstIteratorArg())
arg = PointerArg('gpointer', 'G_TYPE_POINTER')
matcher.register('GstClockID', arg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment