third_party/xcbproto/src/xcbgen/xtypes.py
def make_member_of(self, module, complex_type, field_type, field_name, visible, wire, auto, enum=None, is_fd=False):
        '''
        Default method for making a data type a member of a structure.
        Extend this if the data type needs to add an additional length field or something.

        module is the global module object.
        complex_type is the structure object.
        see Field for the meaning of the other parameters.
        '''
        new_field = Field(self, field_type, field_name, visible, wire, auto, enum, is_fd)

        # We dump the _placeholder_byte if any fields are added.
        for (idx, field) in enumerate(complex_type.fields):
            if field == _placeholder_byte:
                complex_type.fields[idx] = new_field
                return

        complex_type.fields.append(new_field)
        new_field.parent = complex_type

        Default method for making a data type a member of a structure.
        Extend this if the data type needs to add an additional length field or something.

        module is the global module object.
        complex_type is the structure object.
        see Field for the meaning of the other parameters.
        
Default method for making a data type a member of a structure.
Extend this if the data type needs to add an additional length field or something.

module is the global module object.
complex_type is the structure object.
see Field for the meaning of the other parameters.
Default method for making a data type a member of a structure . Extend this if the data type needs to add an additional length field or something . module is the global module object . complex_type is the structure object . see Field for the meaning of the other parameters .
def make_member_of(self, module, complex_type, field_type, field_name, visible, wire, auto, enum=None, is_fd=False):
        new_field = Field(self, field_type, field_name, visible, wire, auto, enum, is_fd)
        for (idx, field) in enumerate(complex_type.fields):
            if field == _placeholder_byte:
                complex_type.fields[idx] = new_field
                return
        complex_type.fields.append(new_field)
        new_field.parent = complex_type
def make_member_of ( self , module , complex_type , field_type , field_name , visible , wire , auto , enum = None , is_fd = False ) : new_field = Field ( self , field_type , field_name , visible , wire , auto , enum , is_fd ) for ( idx , field ) in enumerate ( complex_type . fields ) : if field == _placeholder_byte : complex_type . fields [ idx ] = new_field return complex_type . fields . append ( new_field ) new_field . parent = complex_type
Default method for making a data type a member of a structure.
Default method for making a data type a member of a structure .
'''
        Default method for making a data type a member of a structure.
        Extend this if the data type needs to add an additional length field or something.

        module is the global module object.
        complex_type is the structure object.
        see Field for the meaning of the other parameters.
        ''' # We dump the _placeholder_byte if any fields are added.
self
module
complex_type
field_type
field_name
visible
wire
auto
enum
is_fd