parameters: (idl, fd, filename)
docstring: Generate the typelib.
docstring_summary: Generate the typelib.
docstring_tokens: Generate the typelib .
function: def write_typelib(idl, fd, filename):
      """ Generate the typelib. """
  
      # We only care about interfaces
      ifaces = []
      for p in idl.productions:
          if p.kind == 'interface':
              ifaces.append(build_interface(p, ifaces))
  
      typelib = xpt.Typelib(interfaces=ifaces)
      typelib.writefd(fd)
function_tokens: def write_typelib ( idl , fd , filename ) : # We only care about interfaces ifaces = [ ] for p in idl . productions : if p . kind == 'interface' : ifaces . append ( build_interface ( p , ifaces ) ) typelib = xpt . Typelib ( interfaces = ifaces ) typelib . writefd ( fd )