summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2005-06-26 12:36:24 +0000
committerEdward Hervey <bilboed@bilboed.com>2005-06-26 12:36:24 +0000
commitfebd74992df7b3024c042e066b72128c5f16fa4a (patch)
tree733c0ec76959e6ef8a80df7910343b5fcd506f39 /codegen
parent038f11fafb3a0c72ec4e10248a774fd5375c5c21 (diff)
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()
Diffstat (limited to 'codegen')
-rw-r--r--codegen/defsconvert.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/codegen/defsconvert.py b/codegen/defsconvert.py
index 365a507..c25dcfb 100644
--- a/codegen/defsconvert.py
+++ b/codegen/defsconvert.py
@@ -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