mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
codegen/: Updated codegen to support miniobject
Original commit message from CVS: * codegen/argtypes.py: * codegen/codegen.py: * codegen/definitions.py: * codegen/defsparser.py: * codegen/defsconvert.py: * codegen/docgen.py: Updated codegen to support miniobject * gst/Makefile.am: Use the included (and modified) codegen for code generation. * gst/pygstminiobject.c: * gst/pygstminiobject.h: * gst/pygstminiobject-private.h: New GstMiniObject inspired from pygobject.[ch] code * gst/common.h: * gst/gst-types.defs: * gst/gst.override: * gst/gstbuffer.override: * gst/gstcaps.override: * gst/gstmodule.c: * gst/gstpad.override: Modifications to support MiniObject * gst/gst.defs: Allow null second parameter for ElementFactory.create() and gst.element_factory_make()
This commit is contained in:
parent
038f11fafb
commit
febd74992d
2 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
* codegen/codegen.py:
|
||||
* codegen/definitions.py:
|
||||
* codegen/defsparser.py:
|
||||
* codegen/defsconvert.py:
|
||||
* codegen/docgen.py:
|
||||
Updated codegen to support miniobject
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ STATE_ENUM = 4
|
|||
STATE_FLAGS = 5
|
||||
STATE_METHOD = 6
|
||||
STATE_FUNCTION = 7
|
||||
STATE_MINIOBJECT = 8
|
||||
|
||||
def convert(infp=sys.stdin, outfp=sys.stdout):
|
||||
state = STATE_START
|
||||
|
@ -40,6 +41,10 @@ def convert(infp=sys.stdin, outfp=sys.stdout):
|
|||
state = STATE_OBJECT
|
||||
seen_params = 0
|
||||
outfp.write('(define-object ' + line[8:])
|
||||
elif line[:13] == '(mini-object ':
|
||||
state = STATE_MINI_OBJECT
|
||||
seen_params = 0
|
||||
outfp.write('(define mini-object ' + line[13:])
|
||||
elif line[:11] == '(interface ':
|
||||
state = STATE_INTERFACE
|
||||
seen_params = 0
|
||||
|
|
Loading…
Reference in a new issue