class Attribute(object):
def __init__(self, **argkw):
+ self.definition = argkw.get('definition')
self.name = argkw.get('name')
self.type = argkw.get('type')
self.typeId = argkw.get('typeId')
class CompositeType():
def __init__(self, **argkw):
self.category = 'composite'
+ self.definition = argkw.get('definition')
self.name = argkw.get('name')
self.Id = argkw.get('Id')
self.active = argkw.get('active', False)
t_brief = self._get_brief_description(brief_node)
details_node = node.xpath('./detaileddescription')[0]
t_detailed = self._get_detailed_description(details_node)
+ # remove macros
+ t_definition = re.sub('KRB5_CALLCONV_C', '', t_definition)
+ t_definition = re.sub('KRB5_CALLCONV', '', t_definition)
+ # handle fp
+ if t_type[1].find('(') >= 0:
+ t_type = (t_type[0],None)
typedef_descr = {'category': 'composite',
+ 'definition': t_definition,
'name': t_name,
'Id': t_Id,
'type': t_type[1],
v_brief = self._get_brief_description(brief_node)
details_node = node.xpath('./detaileddescription')[0]
detailed_description = self._get_detailed_description(details_node)
+ # remove macros
+ v_definition = re.sub('KRB5_CALLCONV_C', '', v_definition)
+ v_definition = re.sub('KRB5_CALLCONV', '', v_definition)
variable_descr = {'category': 'variable',
+ 'definition': v_definition,
'name': v_name,
'Id': v_Id,
'type': v_type[1],
.. c:type:: $composite.name
..
-$composite.long_description
+Declaration
+------------
+
+$composite.definition
+$composite.long_description
+
-#if $composite.Id is not None and $composite.name is not 'krb5_trace_callback'
+#if $composite.Id is not None
#if len($composite.attributes)
Members
---------
-#else
-
-#if $composite.type is not None
-typedef :c:type:`$composite.type` $composite.name
-#end if
-
#end if
#for $attr in $composite.attributes: