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.
This commit is contained in:
Edward Hervey 2006-12-16 14:41:21 +00:00
parent fb23b775cc
commit 41e2b77060
3 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,10 @@
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:

View file

@ -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())

View file

@ -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)