sbus_codegen revision b699c4d7f85a5404be1d1ee9450331aea869b886
536ac52055722b168e4482f612302fa754dc4f72cilix# Stef Walter <stefw@redhat.com>
536ac52055722b168e4482f612302fa754dc4f72cilix# Copyright (C) 2014 Red Hat
536ac52055722b168e4482f612302fa754dc4f72cilix# This program is free software; you can redistribute it and/or modify
536ac52055722b168e4482f612302fa754dc4f72cilix# it under the terms of the GNU General Public License as published by
536ac52055722b168e4482f612302fa754dc4f72cilix# the Free Software Foundation; either version 3 of the License, or
536ac52055722b168e4482f612302fa754dc4f72cilix# (at your option) any later version.
536ac52055722b168e4482f612302fa754dc4f72cilix# This program is distributed in the hope that it will be useful,
536ac52055722b168e4482f612302fa754dc4f72cilix# but WITHOUT ANY WARRANTY; without even the implied warranty of
536ac52055722b168e4482f612302fa754dc4f72cilix# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
536ac52055722b168e4482f612302fa754dc4f72cilix# GNU General Public License for more details.
536ac52055722b168e4482f612302fa754dc4f72cilix# You should have received a copy of the GNU General Public License
536ac52055722b168e4482f612302fa754dc4f72cilix# along with this program. If not, see <http://www.gnu.org/licenses/>.
536ac52055722b168e4482f612302fa754dc4f72cilix# Some parser code from GLib
536ac52055722b168e4482f612302fa754dc4f72cilix# Copyright (C) 2008-2011 Red Hat, Inc.
536ac52055722b168e4482f612302fa754dc4f72cilix# This library is free software; you can redistribute it and/or
536ac52055722b168e4482f612302fa754dc4f72cilix# modify it under the terms of the GNU Lesser General Public
536ac52055722b168e4482f612302fa754dc4f72cilix# License as published by the Free Software Foundation; either
536ac52055722b168e4482f612302fa754dc4f72cilix# version 2 of the License, or (at your option) any later version.
536ac52055722b168e4482f612302fa754dc4f72cilix# This library is distributed in the hope that it will be useful,
# http://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format
# DBus interface. For many examples see /usr/share/dbus-1/interfaces/ on a
elif self.file:
return message
self.args = []
self.methods = []
self.signals = []
self.properties = []
for sig in iface.signals:
if sig.args:
if sig.args:
for prop in properties:
elif prop.readable:
elif prop.writable:
if iface.methods:
if iface.signals:
if iface.properties:
if iface.methods:
if iface.signals:
if iface.properties:
self.state_stack = []
try:
if self.state == STATE_IGNORED:
elif self.cur_object and name == STATE_ANNOTATION:
elif self.state == STATE_TOP:
if name == STATE_NODE:
elif self.state == STATE_NODE:
if name == STATE_INTERFACE:
elif self.state == STATE_INTERFACE:
if name == STATE_METHOD:
elif name == STATE_SIGNAL:
elif name == STATE_PROPERTY:
elif self.state == STATE_METHOD:
elif self.state == STATE_SIGNAL:
elif self.state == STATE_PROPERTY:
elif self.state == STATE_ARG:
if options.output:
if options.output:
try: