mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
fb23b775cc
commit
41e2b77060
3 changed files with 13 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue