mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
685c434a03
Original commit message from CVS: * codegen/argtypes.py: * codegen/codegen.py: * codegen/definitions.py: * codegen/defsparser.py: * codegen/h2def.py: * codegen/mergedefs.py: * codegen/reversewrapper.py: Backport pygtk 2.6.2 codegen * gst/gst-types.defs: Added fields for Buffer, Event, Message and Query Added pre-roll for enum ElementStateReturn * gst/gst.defs: Added (define-method for gst_structure_nth_field_name() * gst/gstelement.override: Added override for gst_element_get_state * gst/gstcaps.override: re-enabled structure functions
25 lines
679 B
Python
Executable file
25 lines
679 B
Python
Executable file
#!/usr/bin/env python
|
|
# -*- Mode: Python; py-indent-offset: 4 -*-
|
|
|
|
import sys
|
|
import defsparser
|
|
from optparse import OptionParser
|
|
|
|
parser = OptionParser(usage="usage: %prog [options] generated-defs old-defs")
|
|
parser.add_option("-p", "--merge-parameters",
|
|
help="Merge changes in function/methods parameter lists",
|
|
action="store_true", dest="parmerge", default=False)
|
|
(options, args) = parser.parse_args()
|
|
|
|
if len(args) != 2:
|
|
parser.error("wrong number of arguments")
|
|
|
|
newp = defsparser.DefsParser(args[0])
|
|
oldp = defsparser.DefsParser(args[1])
|
|
|
|
newp.startParsing()
|
|
oldp.startParsing()
|
|
|
|
newp.merge(oldp, options.parmerge)
|
|
|
|
newp.write_defs()
|